mysql: Character set ‘utf8‘ is not a compiled character set and is not specified in the ‘C:\Program

错误产生环境

在window10中登录mysql5.7产生

错误描述

mysql: Character set 'utf8' is not a compiled character set and is not specified in the 'C:\Program Files\MySQL\MySQL Server 5.7\share\charsets\Index.xml' file

在这里插入图片描述

错误原因

my.imi文件的default-character-set=utf8 造成的

解决办法

把default-character-set=utf8注释掉或者删除掉
在这里插入图片描述
登录成功
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_42025798/article/details/114272778