【发布时间】:2017-04-30 04:53:40
【问题描述】:
问题:
在尝试创建新的 mysql 用户时获取Cannot load from mysql.procs_priv. The table is probably corrupted。
平台:OSX Yosemite、Homebrew
尝试了以下所有方法,都不起作用:
- 升级中:
mysql_upgrade -uroot -p- 因此我不得不使用
--force:This installation of MySQL is already upgraded to 5.7.9, use --force if you still need to run mysql_upgrade - 接下来我不得不使用
--skip-version-check,因为:Error: Server version (5.7.18) does not match with the version of the server (5.7.9) with which this program was built/distributed. You can use --skip-version-check to skip this check. - 毕竟还是不行
- 因此我不得不使用
- 将查询减少到最明显和taking out functions:
CREATE USER 'newuser';,仍然会引发同样的错误。 - 修复 mysql.procs_priv 表
- 将
mysql.procs_priv中的所有char列更改为varchar、as suggested here。好吧,他建议更改为text,但这对于核心 mysql 表来说似乎太疯狂了。
【问题讨论】: