Jump to content

Archived

This topic is now archived and is closed to further replies.

TheDarkSide

error 111 with web server

Recommended Posts

Hello,
I have installed mysql 5.0.24 and php 5.1.4. I can connect to mysql through command prompt without any problems, but when i try through php it fails. In error_log i get  this :
PHP Warning:  mysql_connect() [<a ref=function.mysql-connect>function.mysql-connect</a>]: Cant connect to local MySQL server through socket /var/lib/mysql/mysql.sock (111)
I have /var/lib/mysql/mysql.sock and everything seems ok but ..
I hope you'll help or give me an advice.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.