Having databases without passwords is a bad idea, but if you really must do it the following code works for me.
my $database = 'test'; my $dbh = DBI->connect("DBI:mysql:$database",undef,undef,{ RaiseError +=> 1 });
In reply to Re: Using DB->connect for mysql db without password
by rnewsham
in thread Using DB->connect for mysql db without password
by angeloulivieri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |