Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Connecting to mysql using DBI and a non-standard socket

by gellyfish (Monsignor)
on Jul 05, 2005 at 19:42 UTC ( #472578=note: print w/ replies, xml ) Need Help??


in reply to Connecting to mysql using DBI and a non-standard socket

The option is mysql_socket so you will want something like:

my $dbh = DBI->connect('dbi:mysql:database=nemo;mysql_socket=/usr/kase +nna/mysql/tmp/mysql.sock', 'nemo','password');
If it's not described in your DBD::mysql manpage then it is likely that the feature isn't supported in the version you have.

/J\


Comment on Re: Connecting to mysql using DBI and a non-standard socket
Select or Download Code
Re^2: Connecting to mysql using DBI and a non-standard socket
by logan (Curate) on Jul 06, 2005 at 15:37 UTC
    That's the one. I was referring to the socket as socket instead of mysql_socket. Thanks.

    -Logan
    "What do I want? I'm an American. I want more."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://472578]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2015-07-03 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls