#41422 [Opn->Fbk]: mysql.default_socket and configure --with-mysql-sock don't work

From: Date: Thu, 17 May 2007 22:16:14 +0000
Subject: #41422 [Opn->Fbk]: mysql.default_socket and configure --with-mysql-sock don't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112795@lists.php.net to get a copy of this message
 ID:               41422
 Updated by:       tony2001@php.net
 Reported By:      tiago dot tuxkiller at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQL related
 Operating System: Linux x64
 PHP Version:      4CVS-2007-05-17 (snap)
 New Comment:

>Applications without "sock" configuration, was using /tmp/mysql.sock
>by default, and now /tmp/mysql4.sock

They use mysql.default_socket when it's set.

And I repeat, I cannot reproduce anything like that, so I guess you've
created the problem yourself using those wrong/invalid prefixes.


Previous Comments:
------------------------------------------------------------------------

[2007-05-17 22:13:59] tiago dot tuxkiller at gmail dot com

The problem is:

MYSQL_SOCKET => /tmp/mysql.sock

That's different from:
mysql.default_socket => /tmp/mysql4.sock => /tmp/mysql4.sock

Applications without "sock" configuration, was using /tmp/mysql.sock by
default, and now /tmp/mysql4.sock.

------------------------------------------------------------------------

[2007-05-17 22:11:34] tony2001@php.net

So you got this in your php.ini:
mysql.default_socket = /tmp/mysql4.sock

and your phpinfo() says this:
mysql.default_socket => /tmp/mysql4.sock => /tmp/mysql4.sock

What's your problem?

------------------------------------------------------------------------

[2007-05-17 22:05:22] tiago dot tuxkiller at gmail dot com

# /data/php/php4+mysql4/source-4.4.7/sapi/cli/php -i | grep "php\.ini"
Configuration File (php.ini) Path =>
/data/php/php4+mysql4/bin-4.4.7/php.ini

# grep ^mysql /data/php/php4+mysql4/bin-4.4.7/php.ini
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port = 3309
mysql.default_socket = /tmp/mysql4.sock
mysql.default_host =
mysql.default_user =
mysql.default_password =

------------------------------------------------------------------------

[2007-05-17 22:01:56] tony2001@php.net

./sapi/cli/php -i | grep "php\.ini"

------------------------------------------------------------------------

[2007-05-17 21:53:42] tiago dot tuxkiller at gmail dot com

# /iG/php/php4+mysql4/source-4.4.7/sapi/cli/php -i | grep sock
Configure Command =>  './configure'
'--prefix=/data/php/php4+mysql4/bin-4.4.7'
'--with-freetype-dir=/usr/lib64' '--with-zlib'
'--with-jpeg-dir=/usr/lib64' '--with-gd'
'--with-mysql=/data/dbms/mysql4/bin'
'--with-mysql-sock=/tmp/mysql4.sock' '--with-ttf'
'--with-config-file-path=/data/php/php4+mysql4/bin-4.4.7'
'--with-apxs2=/data/http_servers/apache2+mysql4+php4+mod_auth/bin-2.2.4/
bin/apxs'
'--with-mime-magic=/data/http_servers/apache2+mysql4+php4+mod_auth/bin-2
.2.4/conf/magic'
MYSQL_SOCKET => /tmp/mysql.sock
mysql.default_socket => /tmp/mysql4.sock => /tmp/mysql4.sock
default_socket_timeout => 60 => 60


Please, note the MYSQL_SOCKET has different from mysql.default_socket.

Thanks

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/41422

-- 
Edit this bug report at http://bugs.php.net/?id=41422&edit=1


Thread (20 messages)

« previous php.bugs (#112795) next »