@@ -774,9 +774,9 @@ sub mysql_setup {
774
774
$mysqladmincmd = $opt {mysqladmin };
775
775
}
776
776
else {
777
- $mysqladmincmd = which( " mysqladmin " , $ENV {' PATH' } );
777
+ $mysqladmincmd = which( " mariadb-admin " , $ENV {' PATH' } );
778
778
if ( !-e $mysqladmincmd ) {
779
- $mysqladmincmd = which( " mariadb-admin " , $ENV {' PATH' } );
779
+ $mysqladmincmd = which( " mysqladmin " , $ENV {' PATH' } );
780
780
}
781
781
}
782
782
chomp ($mysqladmincmd );
@@ -795,9 +795,9 @@ sub mysql_setup {
795
795
$mysqlcmd = $opt {mysqlcmd };
796
796
}
797
797
else {
798
- $mysqlcmd = which( " mysql " , $ENV {' PATH' } );
798
+ $mysqlcmd = which( " mariadb " , $ENV {' PATH' } );
799
799
if ( !-e $mysqlcmd ) {
800
- $mysqlcmd = which( " mariadb " , $ENV {' PATH' } );
800
+ $mysqlcmd = which( " mysql " , $ENV {' PATH' } );
801
801
}
802
802
}
803
803
chomp ($mysqlcmd );
@@ -2440,15 +2440,12 @@ sub validate_mysql_version {
2440
2440
2441
2441
if ( mysql_version_eq(8)
2442
2442
or mysql_version_eq( 5, 7 )
2443
- or mysql_version_eq( 10, 3 )
2444
- or mysql_version_eq( 10, 4 )
2445
2443
or mysql_version_eq( 10, 5 )
2446
2444
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 ) )
2452
2449
{
2453
2450
goodprint " Currently running supported MySQL version "
2454
2451
. $myvar {' version' } . " " ;
0 commit comments