I didn't realize it was this easy... Just don't give a DB name.
use DBI; my $dbh = DBI->connect("dbi:mysql:", "user","pass"); print 1 == $dbh->do("create database MooCow") ? "YAY\n":"BOO\n";
I'm guessing that's driver specific behavior.
In reply to Re: how to create a database in perl
by Your Mother
in thread how to create a database in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |