Skip to content

Commit

Permalink
Merge pull request #787 from devenbj/MariaDB-Version-Updates
Browse files Browse the repository at this point in the history
Update Versions for MariaDB
  • Loading branch information
jmrenouard authored Jul 15, 2024
2 parents fd31cc8 + 828f25d commit 763ba10
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions mysqltuner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -774,9 +774,9 @@ sub mysql_setup {
$mysqladmincmd = $opt{mysqladmin};
}
else {
$mysqladmincmd = which( "mysqladmin", $ENV{'PATH'} );
$mysqladmincmd = which( "mariadb-admin", $ENV{'PATH'} );
if ( !-e $mysqladmincmd ) {
$mysqladmincmd = which( "mariadb-admin", $ENV{'PATH'} );
$mysqladmincmd = which( "mysqladmin", $ENV{'PATH'} );
}
}
chomp($mysqladmincmd);
Expand All @@ -795,9 +795,9 @@ sub mysql_setup {
$mysqlcmd = $opt{mysqlcmd};
}
else {
$mysqlcmd = which( "mysql", $ENV{'PATH'} );
$mysqlcmd = which( "mariadb", $ENV{'PATH'} );
if ( !-e $mysqlcmd ) {
$mysqlcmd = which( "mariadb", $ENV{'PATH'} );
$mysqlcmd = which( "mysql", $ENV{'PATH'} );
}
}
chomp($mysqlcmd);
Expand Down Expand Up @@ -2440,15 +2440,12 @@ sub validate_mysql_version {

if ( mysql_version_eq(8)
or mysql_version_eq( 5, 7 )
or mysql_version_eq( 10, 3 )
or mysql_version_eq( 10, 4 )
or mysql_version_eq( 10, 5 )
or mysql_version_eq( 10, 6 )
or mysql_version_eq( 10, 7 )
or mysql_version_eq( 10, 8 )
or mysql_version_eq( 10, 9 )
or mysql_version_eq( 10, 10 )
or mysql_version_eq( 10, 11 ) )
or mysql_version_eq( 10, 11 )
or mysql_version_eq( 11, 1 )
or mysql_version_eq( 11, 2 )
or mysql_version_eq( 11, 4 ) )
{
goodprint "Currently running supported MySQL version "
. $myvar{'version'} . "";
Expand Down

0 comments on commit 763ba10

Please sign in to comment.