[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help : php cannot connect to local mysql server
I have a problem when I make my php scripts connecting to the local mysql server.
When the php scripts running, it returns that:
MySQL said: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
But if I use the 'mysql' command in consol mode, I can connect to the local server. So the server itself is running. And what's more, I checked that there exists a file named '/var/run/mysql/mysql.sock'. So I am puzzled what the problem here ?
I am using the latest OpenBSD version with MYSQL package installed.
I am expecting your suggestions. Thanks in advance ...