Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by Corion (Pope)
on Sep 11, 2013 at 13:24 UTC ( #1053492=note: print w/replies, xml ) Need Help??


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

Have you tried using undef or '' for the username and/or password?

Replies are listed 'Best First'.
Re^4: Using DB->connect for mysql db without password
by angeloulivieri (Novice) on Sep 11, 2013 at 13:31 UTC
    Yes, I tried. It didn't worked....
      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://1053492]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-02-25 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (365 votes). Check out past polls.