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" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > 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