<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Byumut &#187; Php ile veritabanı boşalt</title>
	<atom:link href="http://www.byumut.com/tag/php-ile-veritabani-bosalt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.byumut.com</link>
	<description>&#34; En büyük risk, risk almamaktır.... &#34;</description>
	<lastBuildDate>Thu, 09 Feb 2012 22:12:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Php ile veritabanı boşaltmak</title>
		<link>http://www.byumut.com/php-ile-veritabani-bosaltmak/</link>
		<comments>http://www.byumut.com/php-ile-veritabani-bosaltmak/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 08:11:53 +0000</pubDate>
		<dc:creator>byumut</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[DROP TABLE]]></category>
		<category><![CDATA[Php ile veritabanı boşalt]]></category>
		<category><![CDATA[php ile veritabanındaki tabloları silmek]]></category>
		<category><![CDATA[SHOW TABLES]]></category>
		<category><![CDATA[veritabanı boşatlmak]]></category>

		<guid isPermaLink="false">http://www.byumut.com/?p=461</guid>
		<description><![CDATA[Geçenlerde bir internet sitesi için sql importer yapmaya çalışıyordum fakat türkçe karekter problemi yüzünden her seferinde tüm veritabanını boşlatmaya çalışıyor ve bu boşalttığım veritabanına tekrar farklı yöntemler denedikten sonra olmadıysa tekrar veritabanını boşaltıyordum . Tabi ben bir kodu üretmeden önce o koda ihtiyaç duymam gerekiyor işte yine ihtiyaç duyduğum zamanda ortaya çıkmış güzel bir kod [...]]]></description>
			<content:encoded><![CDATA[<p>Geçenlerde bir internet sitesi için sql importer yapmaya çalışıyordum fakat türkçe karekter problemi yüzünden her seferinde tüm veritabanını boşlatmaya çalışıyor ve bu boşalttığım veritabanına tekrar farklı yöntemler denedikten sonra olmadıysa tekrar veritabanını boşaltıyordum . Tabi ben bir kodu üretmeden önce o koda ihtiyaç duymam gerekiyor işte yine ihtiyaç duyduğum zamanda ortaya çıkmış güzel bir kod parçasını sizlerle paylaşmak istiyorum . Kod php ile veritabanındaki tüm tabloları , kaldırır , tüm verileri siler . Buyrun php ile veritabanındaki tüm veritabanını boşaltma kodum : </p>
<p><span id="more-461"></span></p>
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$sql</span> = <span style="color:#FF0000;">"SHOW TABLES FROM $dbname"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$result</span> = <a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$sql</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">while</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span> = <a href="http://www.php.net/mysql_fetch_row"><span style="color:#000066;">mysql_fetch_row</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Tablo: {$row[0]}&lt;br&gt; "</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"DROP TABLE $row[0]"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/mysql_free_result"><span style="color:#000066;">mysql_free_result</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>

<p class="sayac_bilgi">37 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.byumut.com/php-ile-veritabani-bosaltmak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

