MySQL Forums
Forum List  »  PHP

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)
Posted by: Nil Nik
Date: July 29, 2015 10:30PM

Hello,

I have PHP site hosted locally with MYSQL. With normal load its working fine but error occurring in case of heavy load with mysql: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)

The OS error code 11 means 'Resource temporarily unavailable'.

I am using Fedora13 & MYSQL version: 5.1.52
My.conf is as below:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=null
pid-file=/var/run/mysqld/mysqld.pid

Please help me for further diagnose.

Options: ReplyQuote


Subject
Written By
Posted
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)
July 29, 2015 10:30PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.