diff --git a/db/schemacheck.in b/db/schemacheck.in index 5bbd769b327fede2806802109ab2938ad923285e..6e2489e8c070f488d4da16e948cc039bf86f9aa3 100755 --- a/db/schemacheck.in +++ b/db/schemacheck.in @@ -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 #