Merge pull request #394 from Maxximou5/patch-1
Spelling, grammar, and return
This commit is contained in:
commit
7c0528c5c4
1 changed files with 5 additions and 6 deletions
|
@ -826,17 +826,16 @@ sub mysql_setup {
|
||||||
and $opt{'defaults-file'} eq '' )
|
and $opt{'defaults-file'} eq '' )
|
||||||
{
|
{
|
||||||
|
|
||||||
# We have a debian maintenance account, use it
|
# We have a Debian maintenance account, use it
|
||||||
$mysqllogin = "--defaults-file=/etc/mysql/debian.cnf";
|
$mysqllogin = "--defaults-file=/etc/mysql/debian.cnf";
|
||||||
my $loginstatus = `$mysqladmincmd $mysqllogin ping 2>&1`;
|
my $loginstatus = `$mysqladmincmd $mysqllogin ping 2>&1`;
|
||||||
if ( $loginstatus =~ /mysqld is alive/ ) {
|
if ( $loginstatus =~ /mysqld is alive/ ) {
|
||||||
goodprint
|
goodprint
|
||||||
"Logged in using credentials from debian maintenance account.";
|
"Logged in using credentials from Debian maintenance account.";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
badprint "Attempted to use login credentials from debian maintena
|
badprint "Attempted to use login credentials from Debian maintenance account, but they failed.";
|
||||||
nce account, but they failed.";
|
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -856,7 +855,7 @@ nce account, but they failed.";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
# It's not Plesk or debian, we should try a login
|
# It's not Plesk or Debian, we should try a login
|
||||||
debugprint "$mysqladmincmd $remotestring ping 2>&1";
|
debugprint "$mysqladmincmd $remotestring ping 2>&1";
|
||||||
my $loginstatus = `$mysqladmincmd $remotestring ping 2>&1`;
|
my $loginstatus = `$mysqladmincmd $remotestring ping 2>&1`;
|
||||||
if ( $loginstatus =~ /mysqld is alive/ ) {
|
if ( $loginstatus =~ /mysqld is alive/ ) {
|
||||||
|
@ -1052,7 +1051,7 @@ sub get_all_vars {
|
||||||
$dummyselect = select_one "SELECT VERSION()";
|
$dummyselect = select_one "SELECT VERSION()";
|
||||||
if ( not defined($dummyselect) or $dummyselect eq "" ) {
|
if ( not defined($dummyselect) or $dummyselect eq "" ) {
|
||||||
badprint
|
badprint
|
||||||
"You probably doesn't get enough privileges for running MySQLTuner ...";
|
"You probably did not get enough privileges for running MySQLTuner ...";
|
||||||
exit(256);
|
exit(256);
|
||||||
}
|
}
|
||||||
$dummyselect =~ s/(.*?)\-.*/$1/;
|
$dummyselect =~ s/(.*?)\-.*/$1/;
|
||||||
|
|
Loading…
Reference in a new issue