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


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

What software are you using, exactly? You don't seem to call DBI->connect, but rather a connect method on a different object. What kind of object is it?

Usually connecting to mysql without user name and without password only works if you don't specify a host name either (not even localhost), then local domain sockets are used, and the identity of the system user is used.