MySQL更改数据库字符编码的方法:
1、win+R,调出“运行”,输入cmd,回车
2、mysql 更改数据库字符编码的方法
登录数据库,
3、查看数据库
4、查看数据库字符编码
5、通过MySQL命令行修改:(编码可选)
mysql> set character_set_client=utf8; mysql> set character_set_connection=utf8; mysql> set character_set_database=utf8; mysql> set character_set_results=utf8; mysql> set character_set_server=utf8; mysql> set character_set_system=utf8; mysql> set collation_connection=utf8; mysql> set collation_database=utf8; mysql> set collation_server=utf8;
6、当然还有:
修改数据库的字符集mysql>use mydb
mysql>alter database mydb character set utf8;
7、创建数据库指定数据库的字符集
mysql>create database mydb character set utf8;