MySql won't connect

From: Date: Thu, 19 Apr 2001 03:12:41 +0000
Subject: MySql won't connect
Groups: php.db 
Request: Send a blank email to php-db+get-8686@lists.php.net to get a copy of this message
I know that the pages that I am using worked. I created them, then had to reload my OS. I saved everything before erasing the HD. I have restored the files but now I get a warning message that says MySQL Connection Failed: Can't connect to local MySQL server through socket .... The mysql.sock does exist, there is also a pid file there pointing to the current running occurance of MySQL. I have root set up with a password and I am able to connect to MySQL from a promopt. Below is the offending code. I think there is something that I missed when I set things up. FYI: I am running RH7.0 and Apache you are welcome to check out this page: http://24.163.168.40/phpinfo.php $link = mysql_connect("localhost", "root", "secret") or die("can't connect"); Last, I did look for the php-mysql module and it is on the system. Thanks John

« previous php.db (#8686) next »