File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2140,7 +2140,7 @@ sub system_recommendations {
2140
2140
sub security_recommendations {
2141
2141
subheaderprint " Security Recommendations" ;
2142
2142
2143
- if ( mysql_version_eq(8 ) ) {
2143
+ if ( mysql_version_le(8.0.0 ) ) {
2144
2144
infoprint " Skipped due to unsupported feature for MySQL 8.0+" ;
2145
2145
return ;
2146
2146
}
@@ -2511,6 +2511,8 @@ sub mysql_version_le {
2511
2511
$mic ||= 0;
2512
2512
my ( $mysqlvermajor , $mysqlverminor , $mysqlvermicro ) =
2513
2513
$myvar {' version' } =~ / ^(\d +)(?:\. (\d +)|)(?:\. (\d +)|)/ ;
2514
+ # infoprint "MySQL version: $mysqlvermajor.$mysqlverminor.$mysqlvermicro";
2515
+
2514
2516
return
2515
2517
int ($mysqlvermajor ) < int ($maj )
2516
2518
|| ( int ($mysqlvermajor ) == int ($maj ) && int ($mysqlverminor ) < int ($min ) )
@@ -2861,7 +2863,9 @@ sub calculations {
2861
2863
badprint " Your server has not answered any queries: cannot continue..." ;
2862
2864
exit 2;
2863
2865
}
2864
-
2866
+ # infoprint "====>>>> MySQL version: $myvar{'version'}";
2867
+ $myvar {' version' } =~ s / (.+)-.*?$/ $1 / ;
2868
+ # infoprint "====>>>> MySQL version updated: $myvar{'version'}";
2865
2869
# Per-thread memory
2866
2870
$mycalc {' per_thread_buffers' } = 0;
2867
2871
$mycalc {' per_thread_buffers' } += $myvar {' read_buffer_size' }
You can’t perform that action at this time.
0 commit comments