mysql乱码
Mysql目录下的my.ini文件
default-character-set=gbk
(两处)
修改database的charset:alter database database名字 character set gbk;
然后 在mysql中执行
SHOW VARIABLES LIKE 'character%';
查看 编码
设置语句如下:
SET character_set_server = gbk ;
SET character_set_client = gbk ;
SET character_set_database = gbk ;
SET character_set_results = gbk ;
SET character_set_connection = gbk ;