<?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>JERVIS DOT WS &#187; MySQL</title>
	<atom:link href="http://jervis.ws/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://jervis.ws</link>
	<description>A techie’s thoughts and opinions on anything &#38; everything that comes to mind</description>
	<lastBuildDate>Tue, 15 Feb 2011 20:49:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Moving a MySQL Database</title>
		<link>http://jervis.ws/2007/12/22/moving-a-mysql-database/</link>
		<comments>http://jervis.ws/2007/12/22/moving-a-mysql-database/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 16:55:04 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.jervis.ws/?p=124</guid>
		<description><![CDATA[
<p>I have moved hosting provider, and I have had to move the database too. Here are the commands I used to shift the database from one server to another.</p>
<p>To export the database:</p>
<p>mysqldump -h DBSERVER -u DBUSER -p DBNAME &#62; DBNAME.sql</p>
<p>Substituting DBSERVER with the hosts adddress, DBUSER with your MySQL username on the current server and [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I have moved hosting provider, and I have had to move the database too. Here are the commands I used to shift the database from one server to another.</p>
<p>To export the database:</p>
<p>mysqldump -h <strong>DBSERVER</strong> -u <strong>DBUSER</strong> -p <strong>DBNAME</strong> &gt; <strong>DBNAME</strong>.sql</p>
<p>Substituting <strong>DBSERVER</strong> with the hosts adddress, <strong>DBUSER</strong> with your MySQL username on the current server and <strong>DBNAME</strong> with your database name. You will be prompted for your password, after you will have a file in the current working directory called <strong>DBNAME</strong>.sql containing your entire database.</p>
<p>To import the database:</p>
<p>mysql -h <strong>DBSERVER</strong> -u <strong>DBUSER</strong> -p <strong>DBNAME</strong> &lt; <strong>DBNAME</strong>.sql</p>
<p>Again substituting <strong>DBSERVER</strong>, <strong>DBUSER</strong> and <strong>DBNAME</strong> but thistime with your new servers information. You can also change the database name and user at this point, providing the change is reflected in your web apps config.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://jervis.ws/2007/12/22/moving-a-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

