How to fix Mysql table crashes

Whenever you enconter this:

  1. Please use mysql_upgrade to fix this error.

or using  mysql_upgrade -u root -p says:
  1. Looking for 'mysql' as: mysql
  2. Looking for 'mysqlcheck' as: mysqlcheck
  3. Error: Failed while fetching Server version! Could be due to unauthorized access.
  4. FATAL ERROR: Upgrade failed

you can try this:
  1. chown -R mysql /var/lib/mysql
  2. mysql_upgrade -u root -p





原文地址:https://www.cnblogs.com/jins-note/p/9513381.html