PHP Problems with Mysql
Hi
I just installed PHP and Mysql with apache as usual, I have a problem
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
origiinally my mysql.sock was in /tmp so i created a symbolic link to /var/lib/mysql and still the same error. I've tried everything and the sock file is definately there, but php can't get a connection from it. I try running the mysql client program using the --socket option and that works through either socket so the socket definatley points to the connection.
Does anyone know why this wouldn't work through php when it works through the command line client. PHP is recognising the mysql commands, but just not connecting.
I tried changing the permissions on the file and directory, still no luck. Anyone got any suggestions would be really appreciates
thanks
Matt Johnson
|