<?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>Mohsin Sumar &#187; Backup MySQL</title>
	<atom:link href="http://www.mohsinsumar.com/tag/backup-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mohsinsumar.com</link>
	<description>Zend Certified Engineer, PHP Professional, Designer &#38; Web Developer</description>
	<lastBuildDate>Thu, 22 Jul 2010 23:07:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to backup MySQL server?</title>
		<link>http://www.mohsinsumar.com/mysql/how-to-backup-mysql-server/</link>
		<comments>http://www.mohsinsumar.com/mysql/how-to-backup-mysql-server/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 21:57:56 +0000</pubDate>
		<dc:creator>Mohsin Sumar</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Backup MySQL]]></category>
		<category><![CDATA[Backup MySQL to .sql]]></category>
		<category><![CDATA[mysqldump]]></category>

		<guid isPermaLink="false">http://mohsinsumar.com/?p=7</guid>
		<description><![CDATA[Recently, I bought a new laptop and was challenged to move my development sites over. Copying files and sites is all pretty easy, however, if you do not backup your MySQL server correctly - you will face quite a hassle recreating all the databases and privileges.
I came across the following way that was pretty easy [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Recently, I bought a new laptop and was challenged to move my development sites over. Copying files and sites is all pretty easy, however, if you do not backup your MySQL server correctly - you will face quite a hassle recreating all the databases and privileges.</p>
<p style="text-align: justify;">I came across the following way that was pretty easy to move around 150 databases with their privileges swiftly.</p>
<p style="text-align: justify;">Please note that the following procedures require command line access and is assuming you are the administrator of the computer.</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Step 1:</strong></span><br />
Open up command line.<br />
Start &gt; Run &gt; Type 'cmd' &gt; Enter</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Step 2:</strong></span><br />
Change directory to your MySQL bin folder. This can be C:\Program Files\MySQL\MySQL 4.1 Server\bin -- or C:\xampp\mysql\bin depending on what your setup is like. You can do so by the 'cd' command as follows:</p>
<p style="text-align: justify;">cd C:\xampp\mysql\bin</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Step 3:</strong></span><br />
Type in the following command to dump all databases into an sql file.</p>
<p style="text-align: justify;">mysqldump --all-databases &gt; db_backup.sql</p>
<p style="text-align: justify;">This can take several minutes depending on the size of your databases. Once done, check your bin folder for db_backup.sql file which contains SQL queries of your entire MySQL server.</p>
<p style="text-align: justify;">You may want to see my other post regarding restoring MySQL server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohsinsumar.com/mysql/how-to-backup-mysql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
