MySQL中设置库管理员报错
程序员文章站
2022-06-01 14:05:32
...
mysql> grant all on blog.* to aaa@qq.com identified by '123.com';
报错内容如下:
ERROR 1558 (HY000): Column count of mysql.user is wrong. Expected 43, found 42. Created with MySQL 50565, now running 50648. Please use mysql_upgrade to fix this error
原因:可能是因为升级更高版本的mysql数据库时,没有升级好导致的。
解决方法:
[aaa@qq.com ~]# mysql_upgrade -uroot -pqinziteng