Re: MYSQL_SOCKET

From: Date: Thu, 16 Aug 2001 16:37:08 +0000
Subject: Re: MYSQL_SOCKET
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-general+get-63066@lists.php.net to get a copy of this message
Or just specify the socket path right in your mysql_connect() call. -Rasmus On Thu, 16 Aug 2001, Jay Paulson wrote: > well i just compiled php again and that still didn't solve the problem... i > guess i just need to keep recompiling php until i get that variable set to > the right thing? > > thanks, > jay > > ----- Original Message ----- > From: "Rasmus Lerdorf" <rasmus@php.net> > To: "Jay Paulson" <jpaulson@lbjs.com> > Cc: <php-db@lists.php.net>; "php" <php-general@lists.php.net> > Sent: Thursday, August 16, 2001 2:45 AM > Subject: Re: [PHP] MYSQL_SOCKET > > > > > the variable MYSQL_SOCKET is set to /tmp/mysql.sock and i need it to > > > be /var/lib/mysql/mysql.sock is there anyway i can set this variable > > > in php? > > > > >From http://php.net/mysql_connect : > > > > resource mysql_connect ([string hostname[:port][:/path/to/socket] [, > string username [, string password]]]) > > > > The reason you have this discrepancy is that you didn't compile PHP > > against a version of the MySQL client library that matches the version of > > the MySQL server you are talking to. Probably because you didn't specify > > --with-mysql=/usr when you built PHP. > > > > -Rasmus > > >

« previous php.general (#63066) next »