Re: MYSQL_SOCKET
| From: | Rasmus Lerdorf | Date: | Thu, 16 Aug 2001 07:45:33 +0000 |
| Subject: | Re: MYSQL_SOCKET | ||
| References: | 1 | Groups: | php.db php.general |
| Request: | Send a blank email to php-db+get-11427@lists.php.net to get a copy of this message | ||
> 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