无法从 mysql.proc 加载

无法从 mysql.proc 加载

我无法转储我的 MySQL 数据库,但是出现以下错误消息:

Cannot load from mysql.proc. The table is probably corrupted

mysql_upgrade 似乎也不起作用:

# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
FATAL ERROR: Upgrade failed

这意味着什么 ?

答案1

尝试以 root 身份登录 MySQL,然后重试mysql_upgrade

相似之处 Parallels Plesk 面板

# mysql_upgrade -uadmin -p`cat /etc/psa/.psa.shadow`

默认方法

# mysql_upgrade -u <username> -p <password>

相关内容