On Wed, 24 Apr 2002, Daniel Swarbrick wrote:

> Yes, I have MySQL running all the time. I noticed this in
> ext/mysql/config.m4 :
>
>   MYSQL_SOCK=/tmp/mysql.sock
>   for i in  \
>       /var/run/mysqld/mysqld.sock \
>       /var/tmp/mysql.sock \
>       /var/lib/mysql/mysql.sock \
>       /var/mysql/mysql.sock \
>       /Private/tmp/mysql.sock \
>       ; do
>     if test -r $i; then
>       MYSQL_SOCK=$i
>     fi
>   done
>
> ...which doesn't quite match my socket at /var/run/mysql/mysql.sock -
> defaulting to /tmp/mysql.sock.

Is there any problem with doing something like this:
  /path/to/mysql_config --socket
in ./configure to get the socket path? I think that this
way is a little more likely to get it right in the case
that mysqld is not running at the time of configure. I
suppose we do not even know the "/path/to" in configure
when using the bundled mysql libs tho huh?

-James


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to