Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
ec55bee0
Commit
ec55bee0
authored
Jan 21, 2009
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix those warnings we have been getting for ages; should have looked
sooner, it was a trivial fix.
parent
75d8a6b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
db/schemacheck.in
db/schemacheck.in
+0
-24
No files found.
db/schemacheck.in
View file @
ec55bee0
...
...
@@ -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
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment