<?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>Ersin Acar &#187; dump</title>
	<atom:link href="http://ersinacar.com/tag/dump/feed" rel="self" type="application/rss+xml" />
	<link>http://ersinacar.com</link>
	<description>PHP and Web Technologies Freak</description>
	<lastBuildDate>Fri, 06 Jan 2012 14:19:52 +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>Mysql Dump and Restore commands</title>
		<link>http://ersinacar.com/mysql-dump-and-restore-commands_125.html</link>
		<comments>http://ersinacar.com/mysql-dump-and-restore-commands_125.html#comments</comments>
		<pubDate>Thu, 21 May 2009 17:50:55 +0000</pubDate>
		<dc:creator>Ersin Acar</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=125</guid>
		<description><![CDATA[if you want to backup and restore your big MySQL databases you need better solution than phpmyadmin So here we go; To dump all databases to a file: $ mysqldump -u dbuser -pdbpass --all-databases &#62; all-databases.sql To dump a single database to a file: $ mysqldump -u dbuser -pdbpass somedb &#62; somedb.sql Dump InnoDB in [...]]]></description>
			<content:encoded><![CDATA[<p>if you want to backup and restore your big MySQL databases you need better solution than phpmyadmin</p>
<p>So here we go;</p>
<p>To dump  all databases to a file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ mysqldump <span style="color: #660033;">-u</span> dbuser <span style="color: #660033;">-pdbpass</span> <span style="color: #660033;">--all-databases</span> <span style="color: #000000; font-weight: bold;">&gt;</span> all-databases.sql</pre></div></div>

<p>To dump  a single database to a file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ mysqldump <span style="color: #660033;">-u</span> dbuser <span style="color: #660033;">-pdbpass</span> somedb <span style="color: #000000; font-weight: bold;">&gt;</span> somedb.sql</pre></div></div>

<p>Dump InnoDB in a single transaction:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ mysqldump <span style="color: #660033;">-u</span> dbuser <span style="color: #660033;">-pdbpass</span> <span style="color: #660033;">--single-transaction</span> somedb <span style="color: #000000; font-weight: bold;">&gt;</span> somedb.sql</pre></div></div>

<p>To restore:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ mysql <span style="color: #660033;">-u</span> dbuser <span style="color: #660033;">-pdbpass</span> somedb <span style="color: #000000; font-weight: bold;">&lt;</span> somedb.sql</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/mysql-dump-and-restore-commands_125.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

