|
1 | 1 | #!/usr/bin/env perl |
2 | | -# mysqltuner.pl - Version 2.2.7 |
| 2 | +# mysqltuner.pl - Version 2.2.8 |
3 | 3 | # High Performance MySQL Tuning Script |
4 | | -# Copyright (C) 2006-2023 Major Hayden - major@mhtx.net |
5 | 4 | # Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com |
| 5 | +# Copyright (C) 2006-2023 Major Hayden - major@mhtx.net |
6 | 6 |
|
7 | 7 | # For the latest updates, please visit http://mysqltuner.pl/ |
8 | 8 | # Git repository available at https://github.com/major/MySQLTuner-perl |
@@ -57,7 +57,7 @@ package main; |
57 | 57 | #use Env; |
58 | 58 |
|
59 | 59 | # Set up a few variables for use in the script |
60 | | -my $tunerversion = "2.2.7"; |
| 60 | +my $tunerversion = "2.2.8"; |
61 | 61 | my ( @adjvars, @generalrec ); |
62 | 62 |
|
63 | 63 | # Set defaults |
@@ -235,9 +235,12 @@ package main; |
235 | 235 | if ( $opt{nopfstat} == 1 ); # Don't print performance schema information |
236 | 236 | $opt{idxstat} = 0 if ( $opt{noidxstat} == 1 ); # Don't print index information |
237 | 237 | $opt{structstat} = 0 |
238 | | - if ( not defined($opt{structstat}) or $opt{nostructstat} == 1 ); # Don't print table struct information |
| 238 | + if ( not defined( $opt{structstat} ) or $opt{nostructstat} == 1 ) |
| 239 | + ; # Don't print table struct information |
239 | 240 | $opt{myisamstat} = 1 |
240 | | - if ( not defined($opt{myisamstat}) or $opt{nomyisamstat} == 0 ); # Don't print MyISAM table information |
| 241 | + if ( not defined( $opt{myisamstat} ) or $opt{nomyisamstat} == 0 ) |
| 242 | + ; # Don't print MyISAM table information |
| 243 | + |
241 | 244 | # for RPM distributions |
242 | 245 | $opt{cvefile} = "/usr/share/mysqltuner/vulnerabilities.csv" |
243 | 246 | unless ( defined $opt{cvefile} and -f "$opt{cvefile}" ); |
@@ -3856,7 +3859,7 @@ sub mysql_stats { |
3856 | 3859 |
|
3857 | 3860 | # Recommendations for MyISAM |
3858 | 3861 | sub mysql_myisam { |
3859 | | - return 0 unless ($opt{'myisamstat'} > 0); |
| 3862 | + return 0 unless ( $opt{'myisamstat'} > 0 ); |
3860 | 3863 | subheaderprint "MyISAM Metrics"; |
3861 | 3864 | my $nb_myisam_tables = select_one( |
3862 | 3865 | "SELECT COUNT(*) FROM information_schema.TABLES WHERE ENGINE='MyISAM' and TABLE_SCHEMA NOT IN ('mysql','information_schema','performance_schema')" |
@@ -5806,7 +5809,7 @@ sub get_wsrep_option { |
5806 | 5809 |
|
5807 | 5810 | # REcommendations for Tables |
5808 | 5811 | sub mysql_table_structures { |
5809 | | - return 0 unless ($opt{structstat} > 0); |
| 5812 | + return 0 unless ( $opt{structstat} > 0 ); |
5810 | 5813 | subheaderprint "Table structures analysis"; |
5811 | 5814 |
|
5812 | 5815 | my @primaryKeysNbTables = select_array( |
@@ -7354,7 +7357,7 @@ sub which { |
7354 | 7357 |
|
7355 | 7358 | =head1 NAME |
7356 | 7359 |
|
7357 | | - MySQLTuner 2.2.7 - MySQL High Performance Tuning Script |
| 7360 | + MySQLTuner 2.2.8 - MySQL High Performance Tuning Script |
7358 | 7361 |
|
7359 | 7362 | =head1 IMPORTANT USAGE GUIDELINES |
7360 | 7363 |
|
|
0 commit comments