http://www.perlmonks.org?node_id=1053500


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