mysql问题: 1805 - Column count of mysql.user is wrong. Expected 45, found 43.

mysql 执行授权:

grant all on county.* to county@'%' identified by '123456';



flush privileges;

提示:

1805 - Column count of mysql.user is wrong. Expected 45, found 43. The table is probably corrupted

登录mysql 客户端 提示:mysql Unknown column 'password_lifetime' in 'field list';

联想到 数据库有过一次升级,版本由5.6 升级到5.7

解决方案:

进入mysql 安装目录:

cd /usr/local/mysql/bin

查看目录内容:

执行命令:

./mysql_upgrade -uroot -p123456  -h192.168.11.110 -P3306

 显示结果:

再次执行授权命令 提示:Ok了。 

猜你喜欢

转载自blog.csdn.net/wochunyang/article/details/126977744
今日推荐