PDA

View Full Version : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)


TheInsaneManiac
09-11-2008, 02:02 PM
I'm getting this error during the early morning and late at night. These are usually times when no one, but google is online. However when I get this error, it causes the forums to remain offline until I restart them.

Lynne
09-11-2008, 03:01 PM
<a href="http://www.vbulletin.com/docs/html/cantconnect" target="_blank">http://www.vbulletin.com/docs/html/cantconnect</a>

TheInsaneManiac
09-11-2008, 03:22 PM
Yea, but I don't ALWAYS get those this error.

Lynne
09-11-2008, 03:28 PM
OK, then maybe mysql crashed and was restarted. Check your mysql logs to see. Or, send a copy of the error to your host and perhaps they can change your mysql settings.

TheInsaneManiac
09-11-2008, 07:29 PM
OK, then maybe mysql crashed and was restarted. Check your mysql logs to see. Or, send a copy of the error to your host and perhaps they can change your mysql settings.
I kind of dont have full root access, so how would I go about checking the MYSQL logs?

Lynne
09-11-2008, 07:52 PM
I go to see mine in /var/lib/mysql but I have no idea where yours are. You may have to talk to your host about this issue.

Angel-Wings
09-11-2008, 10:06 PM
I kind of dont have full root access, so how would I go about checking the MYSQL logs?

Without Root Access there's usually no need searching for them, except your Host's filesystem permissions are very wrong set.

Can you connect to MySQL manually with the user / password from your board's config.php ?
Something like:

mysql --user ... --password ...

If not - dunno about your hosting interface but maybe check if the User given in the config.php file exists and has the permissions to access the board database. If not - create a new one and try with that one.

If there's still an error - recommend as well contacting your hoster about this issue

TheInsaneManiac
09-12-2008, 01:52 AM
Without Root Access there's usually no need searching for them, except your Host's filesystem permissions are very wrong set.

Can you connect to MySQL manually with the user / password from your board's config.php ?
Something like:

mysql --user ... --password ...

If not - dunno about your hosting interface but maybe check if the User given in the config.php file exists and has the permissions to access the board database. If not - create a new one and try with that one.

If there's still an error - recommend as well contacting your hoster about this issue
I can connect fine, it just randomly happens at times when no one is usually on.