Home: Perl Programming Help: Intermediate:
Using DBI->connect for mysql db without password



angeloulivieri
Novice

Sep 11, 2013, 5:45 AM


Views: 3008
Using DBI->connect for mysql db without password

How can I do the thing in the title?

I've been googleing it for a lot of time but it seems that there's no way to access a database where no password has been set.

In example I use this form to create a db:


Code
$drh->func("createdb", $database, $host, $mySqlUser, $mySqlPass, 'admin');


and it works. .
but what about if I don't have user and password for my mysql?

This one for sure don't work...


Code
$drh->func("createdb", $database, $host, 'admin');



(This post was edited by angeloulivieri on Sep 11, 2013, 5:45 AM)


Laurent_R
Veteran / Moderator

Sep 11, 2013, 12:14 PM


Views: 3002
Re: [angeloulivieri] Using DBI->connect for mysql db without password

Cross posted on Perlmonks.