我无法转储我的 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>