in reply to how to create a database in perl
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to create a database in perl
by Anonymous Monk on Jan 28, 2011 at 15:20 UTC | |
by erix (Prior) on Jan 28, 2011 at 15:53 UTC | |
by Jeppe (Monk) on Jan 28, 2011 at 15:39 UTC |