Ubuntu – MySQL running but not responding

MySQLUbuntu

I had a crash on a machine and rebooted and restarted mysql. Mysql loaded fine, I can connect with 'mysql -p' and do simple commands like "show tables;". However, real DB operations (e.g., "select […]") just hang. Is there any idea on what is going on?

Best Answer

Try:

mysqlcheck -u root -pPASSWORD -A --check
mysqlcheck -u root -pPASSWORD -A --auto-repair
mysqlcheck -u root -pPASSWORD -A --optimize