mysql默認編碼設置 mysql默認安裝的編碼可能是: Server characterset: latin1 Db characterset: latin1 Client characterset: utf8 Conn. characterset: utf8 下面我們設置mysql 字符集 charset vi /etc/my.cnf 在[mysqld]下面加入一行 character_set_server = utf8 在[mysql]下面加入一行 default-character-set = utf8 server mysqld restart mysql -uroot -p mysql>status; Server characterset: utf8 Db characterset: utf8 Client characterset: utf8 Conn. characterset: utf8