mysql问题: 1805 - Column count of mysql.user is wrong. Expected 45, found 43.
Posted 醇氧
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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了。
以上是关于mysql问题: 1805 - Column count of mysql.user is wrong. Expected 45, found 43.的主要内容,如果未能解决你的问题,请参考以下文章
mysql问题: 1805 - Column count of mysql.user is wrong. Expected 45, found 43.
如何在 MariaDB/MySQL 工作台中获取 SELECT 语句的输出,以“table.column”格式命名列,而不仅仅是“column”?