<?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>大概是个博客 &#187; mysql</title>
	<atom:link href="http://dagai.net/archives/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://dagai.net</link>
	<description>每天进步一点点</description>
	<lastBuildDate>Sun, 05 Feb 2012 14:57:00 +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>mysql中字符串的替换</title>
		<link>http://dagai.net/archives/153</link>
		<comments>http://dagai.net/archives/153#comments</comments>
		<pubDate>Sat, 19 Apr 2008 02:25:44 +0000</pubDate>
		<dc:creator>大概是个博客</dc:creator>
				<category><![CDATA[大概关于博客的]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://dagai.net/archives/153.html</guid>
		<description><![CDATA[因为之前将域名由lostcity.cn更换为dagai.net了，LOSTCITY.CN的解析也删了，但之前很多日志里的图片路径中的地址还是LOSTCITY.CN，所以要替换成DAGAI.NET，怎么替换呢？ 之前已经安装过DBMANAGER插件，在... ]]></description>
			<content:encoded><![CDATA[<g:plusone href="http://dagai.net/archives/153"  size="small"    callback="gplus" ></g:plusone><p>因为之前将域名由lostcity.cn更换为dagai.net了，LOSTCITY.CN的解析也删了，但之前很多日志里的图片路径中的地址还是LOSTCITY.CN，所以要替换成DAGAI.NET，怎么替换呢？<br />
之前已经安装过DBMANAGER插件，在后台DATABASE中打开Run SQL Query，输入<font color="#ff0000">Update wp_posts SET post_content =REPLACE(post_content, &#8216;lostcity.cn&#8217;, &#8216;dagai.net&#8217;);</font><br />
搞定<br />
REPLACE函数的用法为REPLACE(str,from_str,to_str)， 就是将在字符串str中出现的所的字符串from_str替换成to_str<br />
当你的网站更换域名后还是很有用的</p>
]]></content:encoded>
			<wfw:commentRss>http://dagai.net/archives/153/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

