Re: mysql_config (4.0.21) returning the wrong socket location

Re: mysql_config (4.0.21) returning the wrong socket location

am 21.10.2004 18:53:36 von miguel solorzano

Caron, Christian wrote:

Hi,

This e-mail address is for to report repeatable bugs case, your question
is more suitable for the General list. Please see:

http://lists.mysql.com/

For to find instructions for. Thanks in advance.

Regards,
Miguel


> Hi,
>
> I installed a fresh copie of MySQL 4.0.21 on Solaris 8 (Sparc). I did put
> the following in the my.cnf file:
>
> ==================================
> [mysqld]
> User=mysql
> Port=3306
> Socket=/usr/local/mysql/mysql.sock
> log
>
> [client]
> socket=/usr/local/mysql/mysql.sock
> ==================================
>
> When I start MySQL, it does create the socket in /usr/local/mysql/. When I
> (or PHP, or Perl) ask mysql_config about the socket, it returns
> "/tmp/mysql.sock"...
>
> nrn6# ls -l /usr/local/mysql/mysql.sock
> srwxrwxrwx 1 mysql mysql 0 Oct 21 09:30
> /usr/local/mysql/mysql.sock
>
> nrn6# ls -l /tmp/mysql.sock
> /tmp/mysql.sock: No such file or directory
>
> nrn6# /usr/local/mysql/bin/mysql_config --socket
> /tmp/mysql.sock
>
> Any idea?
>
> -
> Christian Caron
> christian.caron@RNCan.gc.ca
> Analyste technique des plate-formes Internet
> Internet Platforms Technical Analyst
> téléphone / phone : 613-996-9752
> télécopieur / facsimile : 613-996-2953
> Ressources naturelles Canada, 580, rue Booth, Ottawa (Ontario) K1A 0E4
> Natural Resources Canada, 580 Booth Street, Ottawa, Ontario K1A 0E4
> Gouvernement du Canada / Government of Canada
>



--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org

mysql_config (4.0.21) returning the wrong socket location

am 21.10.2004 19:29:38 von chcaron

Hi,

I installed a fresh copie of MySQL 4.0.21 on Solaris 8 (Sparc). I did =
put
the following in the my.cnf file:

==================== =====
==========
[mysqld]
User=3Dmysql
Port=3D3306
Socket=3D/usr/local/mysql/mysql.sock
log

[client]
socket=3D/usr/local/mysql/mysql.sock
==================== =====
==========

When I start MySQL, it does create the socket in /usr/local/mysql/. =
When I
(or PHP, or Perl) ask mysql_config about the socket, it returns
"/tmp/mysql.sock"...

nrn6# ls -l /usr/local/mysql/mysql.sock
srwxrwxrwx 1 mysql mysql 0 Oct 21 09:30
/usr/local/mysql/mysql.sock

nrn6# ls -l /tmp/mysql.sock
/tmp/mysql.sock: No such file or directory

nrn6# /usr/local/mysql/bin/mysql_config --socket
/tmp/mysql.sock

Any idea?

-
Christian Caron
christian.caron@RNCan.gc.ca
Analyste technique des plate-formes Internet
Internet Platforms Technical Analyst
t=E9l=E9phone / phone : 613-996-9752
t=E9l=E9copieur / facsimile : 613-996-2953
Ressources naturelles Canada, 580, rue Booth, Ottawa (Ontario) K1A 0E4
Natural Resources Canada, 580 Booth Street, Ottawa, Ontario K1A 0E4
Gouvernement du Canada / Government of Canada

--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=3Dgcdmb-bugs@m.gmane.org

RE: mysql_config (4.0.21) returning the wrong socket location

am 21.10.2004 20:54:34 von chcaron

> Hi,
>
> This e-mail address is for to report repeatable bugs case,
> your question
> is more suitable for the General list. Please see:
>
> http://lists.mysql.com/
>
> For to find instructions for. Thanks in advance.
>
> Regards,
> Miguel
>
>

I reinstalled MySQL using the
"--with-unix-socket-path=/usr/local/mysql/mysql.sock" option in the
configure string and mysql_config now returns the socket path correctly (I
removed the socket option from the my.cnf). I guess mysql_config should
always return the real path to the socket, that is the one from the
installation files or the my.cnf (that should overwrite the default one).

nrn6# /usr/local/mysql/bin/mysql_config --socket
/usr/local/mysql/mysql.sock

Is it a bug?

Christian>

--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org