7 messages in com.mysql.lists.perlRE: FW: Problems with mysql.sock
FromSent OnAttachments
michael watson (IAH-C)15 Sep 2003 05:50 
Jochen Wiedmann15 Sep 2003 06:02 
michael watson (IAH-C)15 Sep 2003 06:05 
Jochen Wiedmann15 Sep 2003 06:17 
michael watson (IAH-C)15 Sep 2003 06:19 
Ulrich Borchers15 Sep 2003 06:33 
Rudy Lippan15 Sep 2003 07:39 
Subject:RE: FW: Problems with mysql.sock
From:michael watson (IAH-C) (mich@bbsrc.ac.uk)
Date:09/15/2003 06:05:19 AM
List:com.mysql.lists.perl

My real problem is with DBI::mysql

It seems to think that mysql.sock is at /tmp/mysql.sock.

It isn't. It's at /var/lib/mysql/mysql.sock. /usr/bin/mysql knows this,
/usr/bin/mysql_config knows this, and /etc/my.cnf knows this, but
/usr/local/mysql/bin/mysql still looks for /tmp/mysql.sock, as does DBI::mysql.

It's almost as if I have two versions of mysql on my machine, but I don't. Why
on earth DBI::mysql takes one above the other is anyone's guess.

-----Original Message----- From: Jochen Wiedmann [mailto:jo@ispsoft.de] Sent: 15 September 2003 14:03 To: michael watson (IAH-C) Cc: 'pe@lists.mysql.com' Subject: Re: FW: Problems with mysql.sock

michael watson (IAH-C) wrote:

I need to know how and where to tell mysql to look for mysql.sock.

perldoc DBD::mysql

You cannot change the location at compile time, because it is compiled into the C driver. However, you may change it at run time.