[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Perl:DBI



On Wed, 2004-03-31 at 14:27, Steve Tickle wrote:
> My question is, how/where do I tweak to get Perl:DBI to look in the right 
> place?

Your first port of call should be:

perldoc DBD::mysql

Particularly:

   mysql_socket
     As of MySQL 3.21.15, it is possible to choose the Unix socket
     that is used for connecting to the server. This is done, for
     example, with
 
       mysql_socket=/dev/mysql
 
     Usually there’s no need for this option, unless you are using
     another location for the socket than that built into the
     client.

Which should go into your DSN when you call DBI->connect().

The same goes for any DBI driver - DBD::Pg, DBD::ODBC, DBD::sybase, etc.

-- 
rob 'nine' andrews                 <e> rob [at] impure.org.uk <pgp> 8bb5c71e
"we're not here because we're free, we're here because we're not free."

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.