Re: Re: PHP can not connect to mysql
| From: | Michael Davey | Date: | Fri, 31 May 2002 14:24:46 +0000 |
| Subject: | Re: Re: PHP can not connect to mysql | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100098@lists.php.net to get a copy of this message | ||
Or edit php.ini:
mysql.default_socket = /tmp/mysql.sock
"James Holden" <php_lists@globalvision.com> wrote in message
news:EOEGLFBLIODKEIOHNAANAEJOEGAA.php_lists@globalvision.com...
> @mysql_connect("localhost:/tmp/mysql","user","pass");
>
>
> - James
> --------------------------
> W: www.londontown.com
> @: james@londontown.com
> --------------------------
>
> -----Original Message-----
> From: andy [mailto:news.letters@gmx.de]
> Sent: 31 May 2002 15:19
> To: Michael Davey; php-general@lists.php.net
> Subject: [PHP] Re: PHP can not connect to mysql
>
>
> That is the wron socket. I found out that my mysql version is running on
> socket /tmp/mysql.sock while the old one is running on
> /var/lib/mysql/mysql.sock.
>
> How can I tell php to connect with the other socket?
>
> Thanx,
>
> Andy
>
>
>
> ----- Original Message -----
> From: "Michael Davey" <mikey@splatted.net>
> Newsgroups: php.general
> To: <php-general@lists.php.net>
> Sent: Friday, May 31, 2002 4:05 PM
> Subject: Re: PHP can not connect to mysql
>
>
> > Check permissions on '/var/lib/mysql/mysql.sock' I seem to remember
> having
> > this problem in the past...
> >
> > Mikey
> >
> > "Andy" <news.letters@gmx.de> wrote in message
> > news:20020531133929.23399.qmail@pb1.pair.com...
> > > Hi there,
> > >
> > > I am runningn suse72 and there was a mysql installation with the rpm
> > > installed. so I did try to get rid of all the stuff I found from the
old
> > > mysql installation (with yast) and compiled mysql from source. Server
is
> > > running now. Unfotuantelly php is still trying to connect to the old
> > > version. phpinfo tells me the old mysql version number.
> > >
> > > This is what I am gettinng from php:
> > >
> > > Warning: Can't connect to local MySQL server through socket
> > > '/var/lib/mysql/mysql.sock' (2) in
> > >
> > > Server is definatelly running. Not the old one though! I killed the
old
> > > process which was anyhow running.
> > >
> > > Can anybody help on that?
> > >
> > > Thank you very much in advance,
> > >
> > > Andy
> > >
> > >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>