diff --git a/USAGE.md b/USAGE.md index 28a077d..ed9e858 100644 --- a/USAGE.md +++ b/USAGE.md @@ -1,6 +1,6 @@ # NAME - MySQLTuner 1.7.8 - MySQL High Performance Tuning Script + MySQLTuner 1.7.9 - MySQL High Performance Tuning Script # IMPORTANT USAGE GUIDELINES diff --git a/mysqltuner.pl b/mysqltuner.pl index 22ec64c..be2f5ba 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1852,12 +1852,14 @@ sub get_replication_status { . ( defined( $myvar{'rpl_semi_sync_master_enabled'} ) ? $myvar{'rpl_semi_sync_master_enabled'} - : 'Not Activated' ); + : 'Not Activated' + ); infoprint "Semi synchronous replication Slave: " . ( defined( $myvar{'rpl_semi_sync_slave_enabled'} ) ? $myvar{'rpl_semi_sync_slave_enabled'} - : 'Not Activated' ); + : 'Not Activated' + ); if ( scalar( keys %myrepl ) == 0 and scalar( keys %myslaves ) == 0 ) { infoprint "This is a standalone server"; return; @@ -5904,8 +5906,11 @@ sub mysql_tables { my $optimal_type = select_str_g( "Optimal_fieldtype", "SELECT $_ FROM $dbname.$tbname PROCEDURE ANALYSE(100000)" ); - - if ( $current_type ne $optimal_type ) { + if ( not defined($optimal_type) or $optimal_type eq '' ) { + infoprint " Current Fieldtype: $current_type"; + infoprint " Optimal Fieldtype: Not available"; + } + elsif ( $current_type ne $optimal_type ) { infoprint " Current Fieldtype: $current_type"; infoprint " Optimal Fieldtype: $optimal_type"; badprint