Skip to content

Commit c0251a1

Browse files
author
Jean-Marie Renouard
committed
Can't locate Data/Dumper.pm in @inc #564
1 parent d04c1c4 commit c0251a1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

mysqltuner.pl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env perl
2-
# mysqltuner.pl - Version 1.8.2
2+
# mysqltuner.pl - Version 1.8.3
33
# High Performance MySQL Tuning Script
44
# Copyright (C) 2006-2021 Major Hayden - [email protected]
55
#
@@ -49,14 +49,14 @@ package main;
4949
use File::Basename;
5050
use Cwd 'abs_path';
5151

52-
use Data::Dumper;
53-
$Data::Dumper::Pair = " : ";
52+
#use Data::Dumper;
53+
#$Data::Dumper::Pair = " : ";
5454

5555
# for which()
5656
#use Env;
5757

5858
# Set up a few variables for use in the script
59-
my $tunerversion = "1.8.2";
59+
my $tunerversion = "1.8.3";
6060
my ( @adjvars, @generalrec );
6161

6262
# Set defaults
@@ -1175,7 +1175,7 @@ sub get_all_vars {
11751175
$result{'Storage Engines'}{$engine} = $2;
11761176
}
11771177
}
1178-
debugprint Dumper(@mysqlenginelist);
1178+
#debugprint Dumper(@mysqlenginelist);
11791179

11801180
my @mysqlslave;
11811181
if ( mysql_version_eq(8) or mysql_version_ge( 10, 5 ) ) {
@@ -1457,7 +1457,7 @@ sub get_opened_ports {
14571457
$v;
14581458
} @opened_ports;
14591459
@opened_ports = sort { $a <=> $b } grep { !/^$/ } @opened_ports;
1460-
debugprint Dumper \@opened_ports;
1460+
#debugprint Dumper \@opened_ports;
14611461
$result{'Network'}{'TCP Opened'} = \@opened_ports;
14621462
return @opened_ports;
14631463
}
@@ -1864,7 +1864,7 @@ sub security_recommendations {
18641864
# Looking for Anonymous users
18651865
my @mysqlstatlist = select_array
18661866
"SELECT CONCAT(QUOTE(user), '\@', QUOTE(host)) FROM mysql.user WHERE TRIM(USER) = '' OR USER IS NULL";
1867-
debugprint Dumper \@mysqlstatlist;
1867+
#debugprint Dumper \@mysqlstatlist;
18681868

18691869
#exit 0;
18701870
if (@mysqlstatlist) {
@@ -2363,7 +2363,7 @@ sub check_storage_engines {
23632363
# Parse through the table list to generate storage engine counts/statistics
23642364
$fragtables = 0;
23652365
foreach my $tbl (@tblist) {
2366-
debugprint "Data dump " . Dumper(@$tbl);
2366+
#debugprint "Data dump " . Dumper(@$tbl);
23672367
my ( $engine, $size, $datafree ) = @$tbl;
23682368
next if $engine eq 'NULL' or not defined($engine);
23692369
$size = 0 if $size eq 'NULL' or not defined($size);
@@ -5363,7 +5363,7 @@ sub get_wsrep_options {
53635363
push @galera_options, ' wsrep_slave_threads = ' . $wsrep_slave_threads;
53645364
@galera_options = remove_cr @galera_options;
53655365
@galera_options = remove_empty @galera_options;
5366-
debugprint Dumper( \@galera_options );
5366+
#debugprint Dumper( \@galera_options );
53675367
return @galera_options;
53685368
}
53695369

@@ -5695,7 +5695,7 @@ sub mariadb_galera {
56955695
debugprint "WSREP: $key = $mystat{$key}";
56965696
}
56975697
}
5698-
debugprint Dumper get_wsrep_options();
5698+
#debugprint Dumper get_wsrep_options();
56995699
}
57005700

57015701
# Recommendations for InnoDB
@@ -6464,7 +6464,7 @@ sub file2string {
64646464
}
64656465

64666466
sub dump_result {
6467-
debugprint Dumper( \%result ) if ( $opt{'debug'} );
6467+
#debugprint Dumper( \%result ) if ( $opt{'debug'} );
64686468
debugprint "HTML REPORT: $opt{'reportfile'}";
64696469

64706470
if ( $opt{'reportfile'} ne 0 ) {
@@ -6594,7 +6594,7 @@ sub which {
65946594
65956595
=head1 NAME
65966596
6597-
MySQLTuner 1.8.2 - MySQL High Performance Tuning Script
6597+
MySQLTuner 1.8.3 - MySQL High Performance Tuning Script
65986598
65996599
=head1 IMPORTANT USAGE GUIDELINES
66006600

0 commit comments

Comments
 (0)