in reply to Re^6: Can't call method "do" on an undefined value error
in thread Can't call method "do" on an undefined value error

So you should read the DBD::mysql documentation

$dsn = "DBI:mysql:database=$database;host=$hostname;port=$po rt"; $dbh = DBI->connect($dsn, $user, $password);
AND you should make sure your user does have permission to drop that database.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.