Re: PHP can not connect to mysql

From: Date: Fri, 31 May 2002 14:18:59 +0000
Subject: Re: PHP can not connect to mysql
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-100095@lists.php.net to get a copy of this message
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 > > > > > >

« previous php.general (#100095) next »