No it's not a bug. Look up the DBI documentation and change the mysql_sock= location in your code OR in /etc/my.cnf define the mysqld.sock file to be stored in /tmp.
DVP ---- Dathan Vance Pattishall http://www.friendster.com > -----Original Message----- > From: Caron, Christian [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 21, 2004 10:54 AM > To: MySQL - General (E-mail) > Subject: RE: mysql_config (4.0.21) returning the wrong socket location > > > 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? > > > > > 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 General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: > http://lists.mysql.com/[EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]