MySQL Command Line Client打不开时报错
或者cmd进入数据库报错
错误提示为mysql: Character set 'utf8;' is not a compiled character set and is not specified in the 'C:\mysql\\share\charsets\Index.xml' file.
解决方法为找到my.ini文件
我的文件位置为C:\Program Files (x86)\MySQL\MySQL Server 5.0
找不到文件的朋友
点击对号即可 ,点击也没有自己创建一个
打开my.ini
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
default-character-set=utf8
改成这样就可以打开了
切记改成utf-8 切记不要在后面加分号