<?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>NiceCabbage Blog &#187; mysql</title>
	<atom:link href="http://www.nicecabbage.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicecabbage.com</link>
	<description>Life, Design, Web Application</description>
	<lastBuildDate>Mon, 07 Jun 2010 02:03:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>using UTF8 in MySQL5</title>
		<link>http://www.nicecabbage.com/2009/07/using-utf8-in-mysql5/</link>
		<comments>http://www.nicecabbage.com/2009/07/using-utf8-in-mysql5/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 02:34:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=120</guid>
		<description><![CDATA[Problem

You want to set the default character encoding to UTF8 everywhere in your MySQL

Solution

Edit my.cnf.
On Debian or Ubuntu Linux, you can find my.cnf at /etc/mysql/my.cnf. Add those lines below.


[mysqld]
default-character-set=utf8
&#160;
[mysql]
default-character-set=utf8
&#160;
[mysqldump]
default-character-set=utf8


On MacOSX, when you installed MySQL via MacPorts, you have to create one at /opt/local/etc/mysql5/my.cnf.


[mysqld]
default-character-set=utf8
socket=/opt/local/var/run/mysql5/mysqld.sock
&#160;
[mysql]
default-character-set=utf8
&#160;
[mysqldump]
default-character-set=utf8
&#160;
[client]
socket=/opt/local/var/run/mysql5/mysqld.sock

]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>
You want to set the default character encoding to UTF8 everywhere in your MySQL
</p>
<h2>Solution</h2>
<p>
Edit my.cnf.<br/><br />
On Debian or Ubuntu Linux, you can find my.cnf at /etc/mysql/my.cnf. Add those lines below.
</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[mysqld]
default-character-set=utf8
&nbsp;
[mysql]
default-character-set=utf8
&nbsp;
[mysqldump]
default-character-set=utf8</pre></div></div>

<p>
On MacOSX, when you installed MySQL via MacPorts, you have to create one at /opt/local/etc/mysql5/my.cnf.
</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[mysqld]
default-character-set=utf8
socket=/opt/local/var/run/mysql5/mysqld.sock
&nbsp;
[mysql]
default-character-set=utf8
&nbsp;
[mysqldump]
default-character-set=utf8
&nbsp;
[client]
socket=/opt/local/var/run/mysql5/mysqld.sock</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/07/using-utf8-in-mysql5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
