<?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>SickBiscuit &#187; MySQL</title>
	<atom:link href="http://sickbiscuit.com/blog/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://sickbiscuit.com/blog</link>
	<description>The personal blog of Steven Wilkin</description>
	<lastBuildDate>Sun, 20 May 2012 01:11:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migrating a WordPress database between domains</title>
		<link>http://sickbiscuit.com/blog/2010/01/05/migrating-a-wordpress-database-between-domains/</link>
		<comments>http://sickbiscuit.com/blog/2010/01/05/migrating-a-wordpress-database-between-domains/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:20:59 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=433</guid>
		<description><![CDATA[Occassionally I find myself developing a WordPress theme which will then require moving from development into production or otherwise having to move a blog between domains.
Apart from the transfer of the files, including plugins, theme and core WordPress installation, there is only 1 slightly gotcha: the database. I&#8217;ve never been quite sure why but WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>Occassionally I find myself developing a <a href="http://wordpress.org/">WordPress</a> theme which will then require moving from development into production or otherwise having to move a blog between domains.</p>
<p>Apart from the transfer of the files, including plugins, theme and core WordPress installation, there is only 1 slightly gotcha: the database. I&#8217;ve never been quite sure why but WordPress stores the URL of the blog in it&#8217;s database, not once, but twice. For the blog to be migrated the database needs a slight tweak.</p>
<p>As always, create a backup before doing anything. This can be done with phpMyAdmin or using the <em>mysqldump</em> command like so:<br />
<code><br />
$ mysqldump -uUSER -pPASSWORD DATABASE &gt; /path/to/backup.sql<br />
</code></p>
<p>If the database is to be hosted on a different machine you can then import this dump using using which ever method you&#8217;re comfortable with. Finally, run the following query on the database, subsituting your own domain name:</p>
<pre>UPDATE
	wp_options
SET
	option_value = 'http://DOMAIN.TLD'
WHERE
	option_name IN ('siteurl', 'home')<SEMI></pre>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2010/01/05/migrating-a-wordpress-database-between-domains/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

