Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

Status
Not open for further replies.

krerbellor68

New Member
Messages
5
Reaction score
0
Points
0
Hello,

I have an SMF forum. Everything was working fine until approximately 8am on 8/3/11.

Since then I have been getting intermittent proper page loading with many of the following pageload errors:
"Connection Problems

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later."


I checked all the SMF CSS coding and settings all appear correct on the SMF end of things.

I ran http://lucsoc.x10.mx/test.php and found the following:

"
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/gig4wtx/public_html/test.php on line 5
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) "

Do you know what steps I should take next?

Thanks,

John Yost
217-801-1905

---------- Post added at 11:08 PM ---------- Previous post was at 11:00 PM ----------

If I click refresh on test.php I also get this code:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'gig4wtx_1'@'int.web6.vital.x10hosting.com' (using password: NO) in /home/gig4wtx/public_html/test.php on line 5
Access denied for user 'gig4wtx_1'@'int.web6.vital.x10hosting.com' (using password: NO)
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (1

I have fixed your test script, you were using db_pass instead of db_passwd
 

krerbellor68

New Member
Messages
5
Reaction score
0
Points
0
Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (1

Hello,

Thanks SO MUCH! Your changes resolved the issue.

I am very grateful for your prompt response!!!

Best wishes,

John


I have fixed your test script, you were using db_pass instead of db_passwd
 
Status
Not open for further replies.
Top