Web Hosting Talk







View Full Version : Connect to MySQL failed (ASAP please!)


andrewfayor
03-21-2002, 12:09 AM
Hi there,

I have problem to connect my phpcode with MySQL database.
You can see in http://www.sriwijaya.com/tes.php to know the problem.

It told that it failed to connect to /tmp/mysql.sock. I dont know how to fix it.

Anybody can help me?

Beside that i have a problem to create password for root to connect MySQL. i tried to change .pid file but it failed. Please give how to change it.

Does this problem has connected with my problem above?

By the way, i use Cobat RAQ4.

I really need this information ASAP and thank you very much.

driverdave
03-21-2002, 02:39 AM
<sarcasm>Wow. Your problem must be solved ASAP. You must be very important.</sarcasm>

http://www.mysql.com

Check it out.

...uuuggghhh... OK. I can't resist. MySQL is down, just like your page says. /etc/rc./init.d/mysqld start maybe?

Jedito
03-21-2002, 03:39 AM
did you deleted mysql.sock? or never has been there?
Also, can you try ?
locate mysql.sock

And paste the resoult here.

insiderhosting
03-21-2002, 04:16 AM
well from the looks of things it appears that php was not compiled in with mysql support. For some unknown reason I went to http://www.sriwijaya.com/test.php and got your phpinfo page. Send in a ticket to your host, or if you admin your server you need to recompile php with mysql support.