|
1 | 1 | #!/usr/bin/env perl
|
2 |
| -# mysqltuner.pl - Version 1.8.2 |
| 2 | +# mysqltuner.pl - Version 1.8.3 |
3 | 3 | # High Performance MySQL Tuning Script
|
4 | 4 | # Copyright (C) 2006-2021 Major Hayden - [email protected]
|
5 | 5 | #
|
@@ -49,14 +49,14 @@ package main;
|
49 | 49 | use File::Basename;
|
50 | 50 | use Cwd 'abs_path';
|
51 | 51 |
|
52 |
| -use Data::Dumper; |
53 |
| -$Data::Dumper::Pair = " : "; |
| 52 | +#use Data::Dumper; |
| 53 | +#$Data::Dumper::Pair = " : "; |
54 | 54 |
|
55 | 55 | # for which()
|
56 | 56 | #use Env;
|
57 | 57 |
|
58 | 58 | # Set up a few variables for use in the script
|
59 |
| -my $tunerversion = "1.8.2"; |
| 59 | +my $tunerversion = "1.8.3"; |
60 | 60 | my ( @adjvars, @generalrec );
|
61 | 61 |
|
62 | 62 | # Set defaults
|
@@ -1175,7 +1175,7 @@ sub get_all_vars {
|
1175 | 1175 | $result{'Storage Engines'}{$engine} = $2;
|
1176 | 1176 | }
|
1177 | 1177 | }
|
1178 |
| - debugprint Dumper(@mysqlenginelist); |
| 1178 | + #debugprint Dumper(@mysqlenginelist); |
1179 | 1179 |
|
1180 | 1180 | my @mysqlslave;
|
1181 | 1181 | if ( mysql_version_eq(8) or mysql_version_ge( 10, 5 ) ) {
|
@@ -1457,7 +1457,7 @@ sub get_opened_ports {
|
1457 | 1457 | $v;
|
1458 | 1458 | } @opened_ports;
|
1459 | 1459 | @opened_ports = sort { $a <=> $b } grep { !/^$/ } @opened_ports;
|
1460 |
| - debugprint Dumper \@opened_ports; |
| 1460 | + #debugprint Dumper \@opened_ports; |
1461 | 1461 | $result{'Network'}{'TCP Opened'} = \@opened_ports;
|
1462 | 1462 | return @opened_ports;
|
1463 | 1463 | }
|
@@ -1864,7 +1864,7 @@ sub security_recommendations {
|
1864 | 1864 | # Looking for Anonymous users
|
1865 | 1865 | my @mysqlstatlist = select_array
|
1866 | 1866 | "SELECT CONCAT(QUOTE(user), '\@', QUOTE(host)) FROM mysql.user WHERE TRIM(USER) = '' OR USER IS NULL";
|
1867 |
| - debugprint Dumper \@mysqlstatlist; |
| 1867 | + #debugprint Dumper \@mysqlstatlist; |
1868 | 1868 |
|
1869 | 1869 | #exit 0;
|
1870 | 1870 | if (@mysqlstatlist) {
|
@@ -2363,7 +2363,7 @@ sub check_storage_engines {
|
2363 | 2363 | # Parse through the table list to generate storage engine counts/statistics
|
2364 | 2364 | $fragtables = 0;
|
2365 | 2365 | foreach my $tbl (@tblist) {
|
2366 |
| - debugprint "Data dump " . Dumper(@$tbl); |
| 2366 | + #debugprint "Data dump " . Dumper(@$tbl); |
2367 | 2367 | my ( $engine, $size, $datafree ) = @$tbl;
|
2368 | 2368 | next if $engine eq 'NULL' or not defined($engine);
|
2369 | 2369 | $size = 0 if $size eq 'NULL' or not defined($size);
|
@@ -5363,7 +5363,7 @@ sub get_wsrep_options {
|
5363 | 5363 | push @galera_options, ' wsrep_slave_threads = ' . $wsrep_slave_threads;
|
5364 | 5364 | @galera_options = remove_cr @galera_options;
|
5365 | 5365 | @galera_options = remove_empty @galera_options;
|
5366 |
| - debugprint Dumper( \@galera_options ); |
| 5366 | + #debugprint Dumper( \@galera_options ); |
5367 | 5367 | return @galera_options;
|
5368 | 5368 | }
|
5369 | 5369 |
|
@@ -5695,7 +5695,7 @@ sub mariadb_galera {
|
5695 | 5695 | debugprint "WSREP: $key = $mystat{$key}";
|
5696 | 5696 | }
|
5697 | 5697 | }
|
5698 |
| - debugprint Dumper get_wsrep_options(); |
| 5698 | + #debugprint Dumper get_wsrep_options(); |
5699 | 5699 | }
|
5700 | 5700 |
|
5701 | 5701 | # Recommendations for InnoDB
|
@@ -6464,7 +6464,7 @@ sub file2string {
|
6464 | 6464 | }
|
6465 | 6465 |
|
6466 | 6466 | sub dump_result {
|
6467 |
| - debugprint Dumper( \%result ) if ( $opt{'debug'} ); |
| 6467 | + #debugprint Dumper( \%result ) if ( $opt{'debug'} ); |
6468 | 6468 | debugprint "HTML REPORT: $opt{'reportfile'}";
|
6469 | 6469 |
|
6470 | 6470 | if ( $opt{'reportfile'} ne 0 ) {
|
@@ -6594,7 +6594,7 @@ sub which {
|
6594 | 6594 |
|
6595 | 6595 | =head1 NAME
|
6596 | 6596 |
|
6597 |
| - MySQLTuner 1.8.2 - MySQL High Performance Tuning Script |
| 6597 | + MySQLTuner 1.8.3 - MySQL High Performance Tuning Script |
6598 | 6598 |
|
6599 | 6599 | =head1 IMPORTANT USAGE GUIDELINES
|
6600 | 6600 |
|
|
0 commit comments