Re: [PHP4BETA] [Fwd: Error: with MySQL Connect]
| From: | Curt Zirzow | Date: | Mon, 08 Nov 1999 18:37:11 +0000 |
| Subject: | Re: [PHP4BETA] [Fwd: Error: with MySQL Connect] | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5975@lists.php.net to get a copy of this message | ||
> MySQL is compiled with the correct location for mysql.sock. As you can
> see from the above output, libmysqlclient believes that it is located at
> /var/lib/mysql/mysql.sock.
>
> PHP's .configure routine must be getting the location for
> MYSQL_UNIX_ADDR
> a/k/a --with-unix-socket-path=/var/lib/mysql/mysql.sock from another
> location.
You need to configure php to look for the right libmysqlclient something
like:
./configure --with-mysql=/var/lib/mysql
The odds are you've got two versions of mysql on that computer and php is
finding the one you don't want.
Curt
--