<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: transfer code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Mon, 06 Oct 2008 17:06:49 GMT</pubDate>
    <description>DZone Snippets: transfer code</description>
    <item>
      <title>Transfer Wordpress MySQL database to new webhost</title>
      <link>http://snippets.dzone.com/posts/show/5361</link>
      <description>// Transfer Wordpress MySQL database to new webhost in 3 steps (assumes: A. files have already been copied over, B. database created on new server, C. database user created on new server, D. wp-config.php updated on new server)&lt;br /&gt;// 1. login to old host via ssh, run this command:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;mysqldump -h DB_HOST -u DB_USER -p DB_NAME &gt; dump.sql&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;// replace DB_HOST, DB_USER, &amp; DB_NAME with info from the local wp-config.php file&lt;br /&gt;// when asked for password, enter DB_PASSWORD from the local wp-config.php file&lt;br /&gt;&lt;br /&gt;// 2. copy dump.sql to your new host using sftp&lt;br /&gt;&lt;br /&gt;// 3. login go new host via ssh, run this command:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;mysql -h DB_HOST -u DB_USER -p DB_NAME &lt; dump.sql&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;// replace DB_HOST, DB_USER, &amp; DB_NAME with info from the local wp-config.php file&lt;br /&gt;// when asked for password, enter DB_PASSWORD from the local wp-config.php file&lt;br /&gt;&lt;br /&gt;// adopted from this page: http://technosailor.com/2007/04/06/wordpress-faq-how-do-i-move-my-blog-to-a-new-host/</description>
      <pubDate>Mon, 14 Apr 2008 07:54:58 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5361</guid>
      <author>SimonDorfman (Simon Dorfman)</author>
    </item>
  </channel>
</rss>
