Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: db connection help

by huck (Prior)
on Dec 12, 2017 at 19:04 UTC ( [id://1205364]=note: print w/replies, xml ) Need Help??


in reply to db connection help

At http://search.cpan.org/~michielb/DBD-mysql-4.043/lib/DBD/mysql.pm#SYNOPSIS it shows

my $dsn = "DBI:mysql:database=$database;host=$hostname;port=$port"; my $dbh = DBI->connect($dsn, $user, $password);
Note that compared to your example it shows the database specification coming before host with the ":" before database and ";" before host.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found