Re: mysql_connect problem under RedHat 8.0 ?
| From: | Brian J. Celenza | Date: | Sun, 08 Dec 2002 17:18:07 +0000 |
| Subject: | Re: mysql_connect problem under RedHat 8.0 ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127440@lists.php.net to get a copy of this message | ||
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" <bcelenza@mdreamworks.net> wrote in message
news:20021208162618.7909.qmail@pb1.pair.com...
> 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
>
>