Page 1 of 1

[SOLVED] Warning: mysql_connect(): Can't connect

Posted: Fri Jan 07, 2005 2:59 pm
by Frapster
Ok I've posted my php page to my site and have my database set up correctly. I built a smaller version of my page and tested it out at my personal hosting service but when I post the 'real' version to my company site I get teh following error.
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /var/lib/apache/websites/australiangold.com/color/quiz.php on line 7
Error connecting to mysql
Does anyone recognize this error? Any suggestions on what's wrong with a push in the right direction to fix it?

thanks

Frap

Posted: Fri Jan 07, 2005 5:04 pm
by feyd
it's quite possible the mysql server was down for maintainence or some other reasons by your host. That's where I've gotten that error before.

fixed

Posted: Tue Jan 11, 2005 1:44 pm
by Frapster
it turns out that I was using hte wrong 'host'. it works now.