Fixed version parse errors for MariaDB 10.x
MariaDB 10.x still has limited support in MySQLTuner. Using this script with MariaDB may cause your server to start chasing cars. :) This fixes #34.
This commit is contained in:
parent
71f14ea053
commit
aba4d3b444
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ sub validate_tuner_version {
|
|||
# Checks for supported or EOL'ed MySQL versions
|
||||
my ($mysqlvermajor,$mysqlverminor);
|
||||
sub validate_mysql_version {
|
||||
($mysqlvermajor,$mysqlverminor) = $myvar{'version'} =~ /(\d)\.(\d)/;
|
||||
($mysqlvermajor,$mysqlverminor) = $myvar{'version'} =~ /(\d+)\.(\d+)/;
|
||||
if (!mysql_version_ge(5)) {
|
||||
badprint "Your MySQL version ".$myvar{'version'}." is EOL software! Upgrade soon!\n";
|
||||
} elsif (mysql_version_ge(6)) {
|
||||
|
|
Loading…
Reference in a new issue