PDA

View Full Version : mysql connect socket error


erodrigu
1-20-04, 05:09 AM
im receiving an error when trying to connect to mySql thru
php..

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Error being invoked here..

mysql_connect($SQL_SERVER,$SQL_UNAME,$SQL_PWORD)
or die(mysql_error());

server, uname and pword correct

Thanx in advance
Cheers

HalfaBee
1-20-04, 05:25 AM
If you are using 'localhost' as your server, use the server specified in ops.
e.g mysql02.powweb.com

erodrigu
1-20-04, 05:37 AM
server im using is "mysql05.powweb.com" which is what i defined $SQL_SERVER...

HalfaBee
1-20-04, 05:48 AM
Try emailing support@powweb.com and tell them your www server and mysql server, or contact the live support if they are on.

Skunkboy
1-20-04, 06:46 AM
I don't know about your hosting account but I see your forum account is new. I know they were having some glitches with new accounts. Perhaps this is related.