PDA

View Full Version : Warning: mysql_connect() Error.


gilizama
05-11-2006, 07:35 AM
I have no idea what this error is. Can someone please help me out and explain to me what it means.

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

NancyJ
05-11-2006, 08:58 AM
It means it cannot connect to your db with the details you gave it. Try echoing out the mysql_error() it might give you more information

guelphdad
05-11-2006, 02:23 PM
That isn't it Nancy, it means that the server isn't running. if the connection details were wrong (i.e. username or password or whatever) you would get a can't connect using password NO or password YES error.

lavinpj1
05-11-2006, 05:45 PM
guelphdad is correct. When mysql stops, it deletes the .sock file and recreates it on restarting.

You will need to contact your host with an error report over this.

~Phil~