Re: RE: Problems with mysql_connect
| From: | Peter Bowen | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: RE: Problems with mysql_connect | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5076@lists.php.net to get a copy of this message | ||
This is a documented bug in the version of MySQL shipped with RedHat 7.0.
The advisory is available at
http://www.redhat.com/support/errata/RHBA-2000-067-03.html
To fix the error, either upgrade your RPMS, or do
chmod a+r /var/lib/mysql/mysql.sock
to make the socket world readable.
Thanks.
Peter Bowen
On Thu, 7 Dec 2000, JoseMa wrote:
>
>
> > -----Mensaje original-----
> > De: JoseMa [mailto:josemgarcia@readysoft.es]
> > Enviado el: jueves, 07 de diciembre de 2000 15:31
> > Para: php-db-faq@lists.php.net
> > Asunto: Problems with mysql_connect
> >
> >
> >
> > Hello,
> >
> >
> > I have installed in a RedHat 7.0 the php-4.0.3pl1-1 with
> > the mysql support and the modules for apache.
> >
> > My problem is that, when I do the connection with a
> > database I recieved the next warning:
> >
> > Warning: MySQL Connection Failed: Can't connect to local
> > MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
> >
> > I have revised the permission of msql database and the
> > configuration of the php.ini. I don't look anything.
> >
> > Someone can Help me
> >
> > Thanks
>
>