gpt4 book ai didi

mysql - mysql.user 的列数错误。预期 42,发现 44。表可能已损坏

转载 作者:IT老高 更新时间:2023-10-28 12:59:11 25 4
gpt4 key购买 nike

目前我正在使用最新版本的 ISPConfig 3。今天我想添加一个数据库和用户。它没有用。然后我在PHPmyadmin上试了一下,还是不行。

当我尝试在 PHPMyadmin 用户面板中添加用户时,我收到以下错误消息:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* TO 'test'@'localhost'' at line 1

/var/log/mysql/error.log 的输出:

[ERROR] Column count of mysql.user is wrong. Expected 42, found 44. The table is probably corrupted

Mysql版本:5.5.55-0+deb8u1PHPMyadmin 版本:4:4.2.12-2+deb8u2

Debian Linux 8

最佳答案

当我在 Debian 8 (jessie) 中将 mysql 服务器从 5.5 更新到 5.7 时,我遇到了同样的问题。在极少数情况下,如果您直接绕过版本序列进行更新,则可能会发生这种情况。 (很多人这样做,但官方不支持此类升级)。就我而言,当我执行以下命令时它运行良好:

mysql_upgrade --force -uroot -p

希望对你有帮助

关于mysql - mysql.user 的列数错误。预期 42,发现 44。表可能已损坏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43846950/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com