> 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]

Reply via email to