Cannot start MySQL

Posted by Mohamed Nour El-Din on Server Fault See other posts from Server Fault or by Mohamed Nour El-Din
Published on 2010-11-01T04:59:08Z Indexed on 2012/09/05 15:40 UTC
Read the original article Hit count: 403

Filed under:
|

I used this command from shell to repair all Databases

mysqlcheck -u root -p --auto-repair --check --optimize --all-databases

and after that I restarted the server

when it came back alive again I tried to open my vBulletin forum but I recived Database error message.

and also tried to open phpMyAdmin but I received this error :

#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured).

I checked the services list and found that the MySQL Service is not listed, so I tried to start it from shell I receive this error :

Starting MySQL.Manager of pid-file quit without updating fi[FAILED]

could anyone help me in that ?

thanks in advance.


update

I found these lines in the log file

101101 01:36:01 mysqld started
101101 1:36:01 [Warning] Asked for 196608 thread stack, but got 126976
101101 1:36:01 [ERROR] /usr/sbin/mysqld: Table './mysql/user' is marked as crashed and last (automatic?) repair failed
101101 1:36:01 [ERROR] /usr/sbin/mysqld: Table './mysql/user' is marked as crashed and last (automatic?) repair failed
101101 1:36:01 [ERROR] Fatal error: Can't open and lock privilege tables: Table './mysql/user' is marked as crashed and last (automatic?) repair failed
101101 01:36:01 mysqld ended

What should I do then ?

© Server Fault or respective owner

Related posts about mysql

Related posts about start