mysql_connect problem under RedHat 8.0 ?
| From: | Brian J. Celenza | Date: | Sun, 08 Dec 2002 16:29:35 +0000 |
| Subject: | mysql_connect problem under RedHat 8.0 ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-127434@lists.php.net to get a copy of this message | ||
Hello!
When trying to connect to a mysql database under my linux system, I get the
following error:
Warning: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2) in /webroot/dbconnect.php on line 2
Here is a copy of the code I am using:
<?
$link = mysql_connect("localhos" , "username" , "password")
or die("Couldn't Connect.");
?>
I am currently running Apache with Mysql and PHP version 4 on Redhat 8. Any
suggestions?
Thank you.
--
---------------------------------------------------------------
Brian J. Celenza
bcelenza@mdreamworks.net
ICQ: 100942424
AIM: BJCKnight