RE: [PHP] MYSQL_SOCKET

2001-08-20 Thread Jason Murray

 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?

How about, send us your ./configure line and we might be able to tell
what's wrong with it instead of guessing?

This information is output in the phpInfo() output.

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MYSQL_SOCKET

2001-08-16 Thread Rasmus Lerdorf

 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MYSQL_SOCKET

2001-08-16 Thread Rasmus Lerdorf

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 [EMAIL PROTECTED]
 To: Jay Paulson [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; php [EMAIL PROTECTED]
 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
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MYSQL_SOCKET

2001-08-16 Thread Jay Paulson

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 [EMAIL PROTECTED]
To: Jay Paulson [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; php [EMAIL PROTECTED]
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]