<?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>Freddie&#039;s Ria World- WordPress更换域名方法 &#8211; Blog Title</title>
	<atom:link href="http://javaflex.net/tag/%e6%9b%b4%e6%8d%a2%e5%9f%9f%e5%90%8d/feed/" rel="self" type="application/rss+xml" />
	<link>http://javaflex.net</link>
	<description>Just another flex weblog</description>
	<lastBuildDate>Thu, 19 Aug 2010 08:28:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>zh</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress更换域名方法</title>
		<link>http://javaflex.net/opensource/wordpress-replacement-domain-methods/</link>
		<comments>http://javaflex.net/opensource/wordpress-replacement-domain-methods/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 06:51:17 +0000</pubDate>
		<dc:creator>Freddie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[开源系统]]></category>
		<category><![CDATA[更换域名]]></category>

		<guid isPermaLink="false">http://javaflex.net/?p=56</guid>
		<description><![CDATA[
今天博客换了域名，但附件仍然绑着原来的域名，需要改数据库，才能替换掉！
上次换过一次目录，对这些有点经验了，方法如下：
1、备份数据库，必备工作（不怕一万 就怕万一）。
2、查询数据库，我的只有wp_options，wp_posts 这两个表存在原来的域名。
3、表wp_options 字段值option_value和表wp_posts 字段值post_content、post_excerpt、guid存在原来的域名，原域名大多在表wp_posts字段值post_content、guid中。
4、执行SQL语句 update 表的名字 set 字段名 = replace(字段名,’旧数据’,&#8217;新数据’) 把原来域名替换掉就可以了。
WordPress程序更换目录、域名及主机都可能出现附件地址出错，改下数据库就搞定了！
本文转自http://zhiyu.org/wordpress-replacement-domain-methods/，经本人测试，非常有效~
您可能也会关注:CentOS 5.3安装WordPress 2.7.1wordpress手动升级方法wordpress gallery主题安装WordPress多语言插件:qTranslateWordPress CMS Hacks and Tricks




		
			Share this on del.icio.us
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Subscribe to the comments for this post?
		
		
			Add this to Google Bookmarks
		
		
			Add this to Google Reader
		
		
			Post on Google Buzz
		
		
			Blog this on Blogger
		
		
			Add this to DZone
		





]]></description>
			<content:encoded><![CDATA[<div>
<p>今天博客换了域名，但附件仍然绑着原来的域名，需要改数据库，才能替换掉！</p>
<p>上次换过一次目录，对这些有点经验了，方法如下：</p>
<p>1、备份数据库，必备工作（不怕一万 就怕万一）。</p>
<p>2、查询数据库，我的只有wp_options，wp_posts 这两个表存在原来的域名。</p>
<p>3、表wp_options 字段值option_value和表wp_posts 字段值post_content、post_excerpt、guid存在原来的域名，原域名大多在表wp_posts字段值post_content、guid中。</p>
<p>4、执行SQL语句 update 表的名字 set 字段名 = replace(字段名,’旧数据’,&#8217;新数据’) 把原来域名替换掉就可以了。</p>
<p>WordPress程序更换目录、域名及主机都可能出现附件地址出错，改下数据库就搞定了！</p>
<p>本文转自<a href="http://zhiyu.org/wordpress-replacement-domain-methods/">http://zhiyu.org/wordpress-replacement-domain-methods/</a>，经本人测试，非常有效~</div>
<div id="crp_related"><h3>您可能也会关注:</h3><ul><li><a href="http://javaflex.net/linux/centos-5-3-install-wordpress-2-7-1/" rel="bookmark" class="crp_title">CentOS 5.3安装WordPress 2.7.1</a></li><li><a href="http://javaflex.net/opensource/wordpress/" rel="bookmark" class="crp_title">wordpress手动升级方法</a></li><li><a href="http://javaflex.net/opensource/wordpress-gallery-theme-install/" rel="bookmark" class="crp_title">wordpress gallery主题安装</a></li><li><a href="http://javaflex.net/opensource/wordpress-opensource/zhwordpressqtranslateenmultilanguage-wordpress-plugin-qtranslate/" rel="bookmark" class="crp_title">WordPress多语言插件:qTranslate</a></li><li><a href="http://javaflex.net/opensource/wordpress-cms-hacks-and-tricks/" rel="bookmark" class="crp_title">WordPress CMS Hacks and Tricks</a></li></ul></div>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://javaflex.net/opensource/wordpress-replacement-domain-methods/&amp;title=WordPress%E6%9B%B4%E6%8D%A2%E5%9F%9F%E5%90%8D%E6%96%B9%E6%B3%95" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://javaflex.net/opensource/wordpress-replacement-domain-methods/&amp;t=WordPress%E6%9B%B4%E6%8D%A2%E5%9F%9F%E5%90%8D%E6%96%B9%E6%B3%95" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=WordPress%E6%9B%B4%E6%8D%A2%E5%9F%9F%E5%90%8D%E6%96%B9%E6%B3%95+-+http://b2l.me/q4527+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://javaflex.net/opensource/wordpress-replacement-domain-methods/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://javaflex.net/opensource/wordpress-replacement-domain-methods/&amp;title=WordPress%E6%9B%B4%E6%8D%A2%E5%9F%9F%E5%90%8D%E6%96%B9%E6%B3%95" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://javaflex.net/opensource/wordpress-replacement-domain-methods/&amp;title=WordPress%E6%9B%B4%E6%8D%A2%E5%9F%9F%E5%90%8D%E6%96%B9%E6%B3%95&amp;srcUrl=http://javaflex.net/opensource/wordpress-replacement-domain-methods/&amp;srcTitle=WordPress%E6%9B%B4%E6%8D%A2%E5%9F%9F%E5%90%8D%E6%96%B9%E6%B3%95&amp;snippet=POST_SUMMARY" rel="nofollow" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="sexy-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://javaflex.net/opensource/wordpress-replacement-domain-methods/&amp;imageurl=" rel="nofollow" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://javaflex.net/opensource/wordpress-replacement-domain-methods/&amp;n=WordPress%E6%9B%B4%E6%8D%A2%E5%9F%9F%E5%90%8D%E6%96%B9%E6%B3%95&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://javaflex.net/opensource/wordpress-replacement-domain-methods/&amp;title=WordPress%E6%9B%B4%E6%8D%A2%E5%9F%9F%E5%90%8D%E6%96%B9%E6%B3%95&amp;description=POST_SUMMARY" rel="nofollow" title="Add this to DZone">Add this to DZone</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://javaflex.net/opensource/wordpress-replacement-domain-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
