Commit ec55bee0 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix those warnings we have been getting for ages; should have looked

sooner, it was a trivial fix.
parent 75d8a6b9
......@@ -38,30 +38,6 @@ my $extraopts = ($isvers5 ? "--skip-quote-names" : "");
my $mysqldump = "mysqldump -d $extraopts $DBNAME";
# We use Mysql module instead of the tesbed libraries, so that we can get
# a more precise feel for what the error is.
use Mysql;
# Check to see if the mysqld is running by trying to connect to it.
my $dbh = Mysql->connect(undef,undef,undef,undef);
if (!$dbh) {
fatal("Unable to connect to mysqld - Either it's not running or \n" .
"permission was denied.\n");
# Check to see if the database exists
my @dbs = $dbh->listdbs();
if (! grep (/^$DBNAME$/,@dbs)) {
fatal("Database $DBNAME does not exist in the running database\n");
undef $dbh;
# Make sure we can write the temporary file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment