Bug #12994: MySQL socket problem
| From: | st at ez dot no | Date: | Tue, 28 Aug 2001 09:05:14 +0000 |
| Subject: | Bug #12994: MySQL socket problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-64481@lists.php.net to get a copy of this message | ||
From: st@ez.no
Operating system: red hat 7.1
PHP version: 4.0.6
PHP Bug Type: *Compile Issues
Bug description: MySQL socket problem
Hi!
When I edit ./php-4.0.6/ext/mysql/config.m4n to this:
[...]
AC_DEFUN(PHP_MYSQL_SOCK,[
AC_MSG_CHECKING(for MySQL UNIX socket)
MYSQL_SOCK=/opt/ezpublish/mysql.sock
# for i in \
# /var/run/mysqld/mysqld.sock \
# /var/tmp/mysql.sock \
# /var/lib/mysql/mysql.sock \
# /var/mysql/mysql.sock \
# ; do
# if test -r $i; then
# MYSQL_SOCK=$i
# fi
# done
AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, "$MYSQL_SOCK", [ ])
[...]
then I run ./buildconf and
./configure --prefix=/opt/ezpublish/php-4.0.6
--with-mysql=/opt/ezpublish/mysql-3.23.40
--with-apxs=/opt/ezpublish/apache-1.3.20/bin/apxs
--enable-track-vars --enable-trans-sid
--disable-magic-quotes --with-dom --with-zlib
then make ; make install
Why does it still use /var/lib/mysql.soc etc ? I don't
have /opt/ezpublish/mysql.sock wich I sat to MYSQL_SOCK
but it still work well..
--
Edit bug report at: http://bugs.php.net/?id=12994&edit=1