php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12994 MySQL socket problem
Submitted: 2001-08-28 05:05 UTC Modified: 2001-08-28 05:16 UTC
From: st at ez dot no Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.0.6 OS: red hat 7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: st at ez dot no
New email:
PHP Version: OS:

 

 [2001-08-28 05:05 UTC] st at ez dot no
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.. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-28 05:16 UTC] sniper@php.net
Please use this php.ini directive instead of tampering with
configure:

; Default socket name for local MySQL connects.  If empty, uses the built-in MySQL defaults.
mysql.default_socket =


Not a bug.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 10:01:29 2024 UTC