Skip to content

Commit 763ba10

Browse files
authored
Merge pull request #787 from devenbj/MariaDB-Version-Updates
Update Versions for MariaDB
2 parents fd31cc8 + 828f25d commit 763ba10

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

mysqltuner.pl

+8-11
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,9 @@ sub mysql_setup {
774774
$mysqladmincmd = $opt{mysqladmin};
775775
}
776776
else {
777-
$mysqladmincmd = which( "mysqladmin", $ENV{'PATH'} );
777+
$mysqladmincmd = which( "mariadb-admin", $ENV{'PATH'} );
778778
if ( !-e $mysqladmincmd ) {
779-
$mysqladmincmd = which( "mariadb-admin", $ENV{'PATH'} );
779+
$mysqladmincmd = which( "mysqladmin", $ENV{'PATH'} );
780780
}
781781
}
782782
chomp($mysqladmincmd);
@@ -795,9 +795,9 @@ sub mysql_setup {
795795
$mysqlcmd = $opt{mysqlcmd};
796796
}
797797
else {
798-
$mysqlcmd = which( "mysql", $ENV{'PATH'} );
798+
$mysqlcmd = which( "mariadb", $ENV{'PATH'} );
799799
if ( !-e $mysqlcmd ) {
800-
$mysqlcmd = which( "mariadb", $ENV{'PATH'} );
800+
$mysqlcmd = which( "mysql", $ENV{'PATH'} );
801801
}
802802
}
803803
chomp($mysqlcmd);
@@ -2440,15 +2440,12 @@ sub validate_mysql_version {
24402440

24412441
if ( mysql_version_eq(8)
24422442
or mysql_version_eq( 5, 7 )
2443-
or mysql_version_eq( 10, 3 )
2444-
or mysql_version_eq( 10, 4 )
24452443
or mysql_version_eq( 10, 5 )
24462444
or mysql_version_eq( 10, 6 )
2447-
or mysql_version_eq( 10, 7 )
2448-
or mysql_version_eq( 10, 8 )
2449-
or mysql_version_eq( 10, 9 )
2450-
or mysql_version_eq( 10, 10 )
2451-
or mysql_version_eq( 10, 11 ) )
2445+
or mysql_version_eq( 10, 11 )
2446+
or mysql_version_eq( 11, 1 )
2447+
or mysql_version_eq( 11, 2 )
2448+
or mysql_version_eq( 11, 4 ) )
24522449
{
24532450
goodprint "Currently running supported MySQL version "
24542451
. $myvar{'version'} . "";

0 commit comments

Comments
 (0)