Found the problem... Somehow my version of mysql had become uninstalled, and I have no idea why that is. Thanks for all the help :)
"Brian J. Celenza" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 > [EMAIL PROTECTED] > ICQ: 100942424 > AIM: BJCKnight > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php