<?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>Juggling Eggs &#187; database</title>
	<atom:link href="http://sonnygill.net/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://sonnygill.net</link>
	<description>Priceless eggs, variable gravity</description>
	<lastBuildDate>Sun, 06 May 2012 19:47: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>Moving a WordPress blog to new domain</title>
		<link>http://sonnygill.net/tech/wordpress-database-domain-name-site-url/</link>
		<comments>http://sonnygill.net/tech/wordpress-database-domain-name-site-url/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 14:05:34 +0000</pubDate>
		<dc:creator>sonnygill</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sonnygill.net/?p=237</guid>
		<description><![CDATA[Instructions for moving your WordPress blog to a new domain or subdomain <a href="http://sonnygill.net/tech/wordpress-database-domain-name-site-url/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>WordPress</strong> documentation does a pretty good job of explaining the steps you have to take if you are <strong>moving your wordpress blog to a new domain</strong>.</p>
<p>See <a href="http://codex.wordpress.org/Changing_The_Site_URL#Domain_Name_Change">Changing The Site URL &#8211;    Domain Name Change</a></p>
<p>Even after you update the guid in your <strong>WordPress</strong> database&#8217;s posts table by following the instructions there, you may find that some of the images do not show up, and the image and other links are broken.</p>
<p>Run this command to see if the problem is in the post contents in the WordPress database&#8217;s posts table -</p>
<pre class="brush: plain; title: ; notranslate">
select id, post_title from wp_posts where post_content like '%exampleoldsiteurl%';
</pre>
<p>(Replace exampleoldsiteurl with the old url of your blog)</p>
<p>If this shows posts that are using the old url, you need to replace that url in the post_content just as you did for guid -</p>
<pre class="brush: plain; title: ; notranslate">
UPDATE wp_posts SET post_content = replace(post_content, 'exampleoldsiteurl','examplenewsiteurl');
</pre>
<p>Make sure to carefully read the instructions on the <strong>WordPress</strong> Codex link above, and absolutely make certain that you have a back-up of your <strong>database</strong> before you run these sql commands on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://sonnygill.net/tech/wordpress-database-domain-name-site-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

