Or edit php.ini:

mysql.default_socket = /tmp/mysql.sock


"James Holden" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> @mysql_connect("localhost:/tmp/mysql","user","pass");
>
>
> - James
> --------------------------
> W: www.londontown.com
> @: [EMAIL PROTECTED]
> --------------------------
>
> -----Original Message-----
> From: andy [mailto:[EMAIL PROTECTED]]
> Sent: 31 May 2002 15:19
> To: Michael Davey; [EMAIL PROTECTED]
> 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" <[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
>



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

Reply via email to