<?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://cocobear.info/blog/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://cocobear.info/blog</link>
	<description>K.I.S.S</description>
	<lastBuildDate>Sat, 10 Dec 2011 16:11:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>处理了下网站</title>
		<link>http://cocobear.info/blog/2008/08/15/deal-with-wes/</link>
		<comments>http://cocobear.info/blog/2008/08/15/deal-with-wes/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 09:57:53 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=305</guid>
		<description><![CDATA[改了info域名后网站以前里很多页面里有cocobear.cn，连一些图片也显示不出来，今天就处理了一下： 把网站里一些文件做替换，先备份一下： grep cocobear.cn ./cocobear.info/ -R -l &#8211;binary-files=without-match&#124;xargs -i cp &#8211;parents {} bk/ 然后全部替换： grep cocobear.cn ./cocobear.info/ -R -l &#8211;binary-files=without-match &#124; xargs sed -i &#8216;s/cocobear\.cn[^@]/cocobear\.info/g&#8217; 剩下就是数据库里的内容了，主要是wp_posts表中的post_content字段，还有guid字段，还有wp_comments中的comment_author_url，wp_postmeta中的meta_value; 操作的命令是： mysql> update wp_posts set post_content=replace(post_content,&#8221;http://www.cocobear.cn&#8221;,&#8221;http://cocobear.info&#8221;); 当然在进行数据库操作时一定要记得先备份一下： mysqldump -h mysql.1g50.cn -u cocobear -p cocobear > 0808151.sql 使用 mysqldump -h mysql.1g50.cn -u cocobear -p cocobear < 0808151.sql恢复似乎不太好，还是进mysql里使用source ~/0808151.sql进行恢复。]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/08/15/deal-with-wes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>F7中启动Mysql出错</title>
		<link>http://cocobear.info/blog/2007/07/25/fedora-mysql-error/</link>
		<comments>http://cocobear.info/blog/2007/07/25/fedora-mysql-error/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 01:33:27 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/2007/07/25/f7%e4%b8%ad%e5%90%af%e5%8a%a8mysql%e5%87%ba%e9%94%99/</guid>
		<description><![CDATA[F7在默认安装Mysql后启动时会出错： 使用mysqld_safe启动： [cocobear@cocobear mysql]$ sudo mysqld_safe nohup: ignoring input and redirecting stderr to stdout Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/lib/mysql/cocobear.pid 070725 09:27:34 mysqld ended 使用service启动： [cocobear@cocobear mysql]$ sudo service mysqld start Timeout error occurred trying to start MySQL Daemon. 启动 MySQL： [失败] 这种情况下mysql.log出错提示为： 070725 09:28:59 mysqld started 070725 [...]]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2007/07/25/fedora-mysql-error/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

