Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: Using DB->connect for mysql db without password

by poj (Monsignor)
on Sep 11, 2013 at 13:50 UTC ( #1053500=note: print w/replies, xml ) Need Help??


in reply to Re^4: Using DB->connect for mysql db without password
in thread Using DB->connect for mysql db without password

Using '' (or undef) works for me
#!perl use strict; use DBI; my $dbh = DBI->connect('DBI:mysql:test:localhost','','') or die $DBI::errstr; print $dbh->tables;
poj

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053500]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2018-02-18 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (253 votes). Check out past polls.

    Notices?