MYSQL随笔七 Column count of mysql.user is wrong

【MYSQL随笔七 Column count of mysql.user is wrong】弓背霞明剑照霜,秋风走马出咸阳。这篇文章主要讲述MYSQL随笔七 Column count of mysql.user is wrong相关的知识,希望能为你提供帮助。

Column count of mysql.user is wrong. Expected 45, found 43. Created with MySQL 5

错误是由于你曾经升级过数据库,升级完后没有使用mysql_upgrade升级数据结构造成的。
mysql_upgrade -u root -p


    推荐阅读