<?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://www.isallan.com/index.php/archives/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.isallan.com</link>
	<description></description>
	<lastBuildDate>Wed, 19 May 2010 18:00:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>转帖译文</title>
		<link>http://www.isallan.com/index.php/archives/396</link>
		<comments>http://www.isallan.com/index.php/archives/396#comments</comments>
		<pubDate>Fri, 20 Nov 2009 08:11:05 +0000</pubDate>
		<dc:creator>allan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.isallan.com/?p=396</guid>
		<description><![CDATA[1. 在shell中用root登录服务器
2. 進入mysql目录 (linux Server):
代码:
cd /var/lib/mysql/
3. 利用mysql自带的mysqldump功能dump一下原有的latin1编码的数据库:
代码:
mysqldump &#8211;user=username &#8211;password=password &#8211;default-character-set=latin1  &#8211;skip-set-charset dbname > dump.sql
4. 把数据库数据从latin1转换成utf-8编码:
代碼:
      sed  -r &#8217;s/latin1/utf8/g&#8217; dump.sql > dump_utf.sql
5. 创建新的urf-8新数据库:
代码:
       mysql &#8211;user=username &#8211;password=password &#8211;execute=&#8221;DROP DATABASE dbname;  CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;&#8221;
6. 以正确编码导入转码后的数据库数据:
代码:
     [...]]]></description>
		<wfw:commentRss>http://www.isallan.com/index.php/archives/396/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
