首页 > 代码库 > 【MySQL报错】ERROR 1558 (HY000): Column count of mysql.user is wrong. Expected 43, found 39.

【MySQL报错】ERROR 1558 (HY000): Column count of mysql.user is wrong. Expected 43, found 39.

原文参考:http://wuzhuti.cn/2348.html

之前在centos6.4系统安装的是自带的mysql 5.1版本,后来升级到了5.6版本,执行以下命令报错

技术分享

在网上查找原因说说因为升级不当导致,执行以下命令即可正常执行命令

mysql_upgrade -uroot -p123456

技术分享

 

【MySQL报错】ERROR 1558 (HY000): Column count of mysql.user is wrong. Expected 43, found 39.