1.检查默认安装的mysql的字符集 mysql> show variables like '%char%'; +--------------------------+-----------------------------------------------------------+ | Variable_name | Value | +--------------------------+---------------------------------------------------…
查看mysql数据编码 登录MySQL服务,查看mysql数据库默认的编码 mysql> show variables like 'character%'; +--------------------------+-------------------------------------------------+ | Variable_name | Value | +--------------------------+--------------------------------------…
查看编码: show variables like 'collation_%'; show variables like 'character_set_%'; 修改: MySQL:修改默认字符集,转换字符集(MySQL 5.X) 1. 修改 MySQL 数据库默认字符集(mysql database default character set) alter database testdb default character set = gb2312; -ww…