Mysql is not starting

I am new to linode.. my server was giving some mysql swapping error, so I just restarted the server, I can see apache is working, but mysql is still down.

And I can see a error in one of our site:

–----------

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in … on line 23 Fatal error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in … on line 23


Please can anyone help me to resolve this.

thanks

Sandesh

4 Replies

check your mysql logs and find out why it didn't start up on reboot.

Please can you guide me how to check the mysql log?

Take a look at /var/log/syslog

http://lmgtfy.com/?q=check+mysql+logs

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct