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

Thank you.
Brian J. Celenza
ICQ: 100942424
AIM: BJCKnight

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to