I'm almost positive that the socket file is in the correct spot.

My installation was with Redhat 8.0, I also have mysqlcc installed, and it
uses /var/lib/mysql/mysql.sock successfully.

----- Original Message -----
From: "Jason Wong" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 08, 2002 11:53 AM
Subject: Re: [PHP] mysql_connect problem under RedHat 8.0 ?


> On Monday 09 December 2002 00:29, Brian J. Celenza wrote:
> > Hello!
> >
> > When trying to connect to a mysql database under my linux system, I get
the
> > following error:
>
> How did you install your apache, mysql & php? Source/RPM? If RPM, where
did
> you get the RPMs? IIRC Redhat's packaging of MySQL differs from that
provided
> by www.mysql.com and this difference could potentially cause the problem
> you're seeing ...
>
> > 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.");
> >   ?>
>
> ... assuming that the above really is a typo and you _are_ using
'localhost'
> and not 'localhos'.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> Your business will assume vast proportions.
> */
>


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

Reply via email to