Can't connect to MySQL?
Hi - I'm having trouble connecting to the server - getting this error:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/hsphere/local/home/dnaladmin/dnal.co.uk/cms/Connections/localhost.php on line 9 Fatal error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/hsphere/local/home/dnaladmin/dnal.co.uk/cms/Connections/localhost.php on line 9
I thought it might be the 'pconnect' so I changed it to a 'connect' ( non persisent) which has worked in the past but no joy. I have triple checked server names/users/passwords - could it be a flag needs setting on the server .ini file?
thanks
Jim