May 6, 2011

mysql設定utf8

step 1 初安裝主機就設定my.cnf
cp /usr/local/share/mysql/my-huge.cnf /etc/my.cnf

step 2 設定my.cnf,將mysql編碼全部預設為utf8 <紅色字為新增的設定值>
[client]
#password    = your_password
port     = 3306
socket   = /tmp/mysql.sock
default-character-set = utf8

[mysqld]
port     = 3306
socket   = /tmp/mysql.sock
......
......
default-character-set = utf8

0推薦此文章
Today's Visitors: 0 Total Visitors: 9
Personal Category: 上班 Topic: technology / tech info / programming
歷史上的今天:
[Trackback URL]

Reply
  • 1樓

    1樓搶頭香

    安安阿,我是小楓,逛到你家,跟你分享這個好康^^

    直接點小房子進去看囉就看的到囉^^

  • at July 13, 2012 08:22 PM comment | Homepage
Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0