To check and modifiy the charater set of the your data_base
msql -u root -p
use database_name
show variables like 'character_set_database';
alter database bzblog CHARACTER SET utf8;
在安装跟目录下有bai个my.ini
设置MySQL的默认字du符集为utf8,找到客户端配置[client]在下面添加。zhi
default-character-set=utf8
找到服务器配置[mysqld]在下面添加
default-character-set=utf8
设定daoMySQL数据库以utf8编码运行,连接MySQL数据库时使用utf8编码
停止和重新启动MySQL
net stop mysql
net start mysql