I have an Apache server and I can not start MYSQL after restarting the server. When I apply "service mysql start" or "service mysql restart" I receive this error on SSH :
MySQL server PID file could not be found! [FAILED]
Starting MySQL.The server quit without updating PID file (/var/lib/mysql/server.xxx.org.pid). [FAILED]
I checked error log and errors are below :
2018-08-20 15:43:44 8511 [ERROR] /usr/sbin/mysqld: Table './mysql/db' is marked as crashed and should be repaired
2018-08-20 15:43:44 8511 [ERROR] Fatal error: Can't open and lock privilege tables: Table './mysql/db' is marked as crashed and should be repaired
How can I fix this problem?