操作系统:win10 x64
Server version : 5.5.46 MySQL Community Server (GPL)
mysql 修改 character_set_database 编码格式
默认编码:character_set_database=latin1
连接到服务器
cmd> mysql -h localhost -u root -p 按回车键
按提示输入密码,然后回车。
mysql>show variables like 'character_set%'; 按回车键
mysql>alter database mydb character set utf-8; 按回车键
OK
mysql>show variables like 'character_set%'; 按回车键