问题:
在尝试创建新的mysql用户时获取Cannot load from mysql.procs_priv. The table is probably corrupted。
平台:OSX,国产
尝试了下面的所有内容,而没有运行
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.
CREATE USER 'newuser';,仍然会引发相同的错误。mysql.procs_priv中的所有mysql.procs_priv列更改为varchar,as suggested here。嗯,他建议改为text,但对于mysql核心表来说,这似乎太疯狂了。发布于 2017-04-30 06:01:06
完全删除mysql并重新安装它(不到15分钟)。
1.从系统卸载和清除MYSQL
ps -ax | grep mysql检查进程MYSQLCOM=-YES-中删除行/etc/hostconfig2.安装MYSQL
发布于 2018-02-27 05:58:08
我认为最好这样做:
mysql_upgrade -u root -p输入您的密码并等待几秒钟。
https://stackoverflow.com/questions/43703033
复制相似问题