Skip to content

Commit

Permalink
Merge pull request #712 from jmrenouard/master
Browse files Browse the repository at this point in the history
Updates USAGE and version number
  • Loading branch information
jmrenouard authored Aug 16, 2023
2 parents 5bc816e + 4e32805 commit 4a1a7f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NAME

MySQLTuner 2.2.5 - MySQL High Performance Tuning Script
MySQLTuner 2.2.7 - MySQL High Performance Tuning Script

# IMPORTANT USAGE GUIDELINES

Expand Down
19 changes: 11 additions & 8 deletions mysqltuner.pl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env perl
# mysqltuner.pl - Version 2.2.7
# mysqltuner.pl - Version 2.2.8
# High Performance MySQL Tuning Script
# Copyright (C) 2006-2023 Major Hayden - [email protected]
# Copyright (C) 2015-2023 Jean-Marie Renouard - [email protected]
# Copyright (C) 2006-2023 Major Hayden - [email protected]

# For the latest updates, please visit http://mysqltuner.pl/
# Git repository available at https://github.com/major/MySQLTuner-perl
Expand Down Expand Up @@ -57,7 +57,7 @@ package main;
#use Env;

# Set up a few variables for use in the script
my $tunerversion = "2.2.7";
my $tunerversion = "2.2.8";
my ( @adjvars, @generalrec );

# Set defaults
Expand Down Expand Up @@ -235,9 +235,12 @@ package main;
if ( $opt{nopfstat} == 1 ); # Don't print performance schema information
$opt{idxstat} = 0 if ( $opt{noidxstat} == 1 ); # Don't print index information
$opt{structstat} = 0
if ( not defined($opt{structstat}) or $opt{nostructstat} == 1 ); # Don't print table struct information
if ( not defined( $opt{structstat} ) or $opt{nostructstat} == 1 )
; # Don't print table struct information
$opt{myisamstat} = 1
if ( not defined($opt{myisamstat}) or $opt{nomyisamstat} == 0 ); # Don't print MyISAM table information
if ( not defined( $opt{myisamstat} ) or $opt{nomyisamstat} == 0 )
; # Don't print MyISAM table information

# for RPM distributions
$opt{cvefile} = "/usr/share/mysqltuner/vulnerabilities.csv"
unless ( defined $opt{cvefile} and -f "$opt{cvefile}" );
Expand Down Expand Up @@ -3856,7 +3859,7 @@ sub mysql_stats {

# Recommendations for MyISAM
sub mysql_myisam {
return 0 unless ($opt{'myisamstat'} > 0);
return 0 unless ( $opt{'myisamstat'} > 0 );
subheaderprint "MyISAM Metrics";
my $nb_myisam_tables = select_one(
"SELECT COUNT(*) FROM information_schema.TABLES WHERE ENGINE='MyISAM' and TABLE_SCHEMA NOT IN ('mysql','information_schema','performance_schema')"
Expand Down Expand Up @@ -5806,7 +5809,7 @@ sub get_wsrep_option {

# REcommendations for Tables
sub mysql_table_structures {
return 0 unless ($opt{structstat} > 0);
return 0 unless ( $opt{structstat} > 0 );
subheaderprint "Table structures analysis";

my @primaryKeysNbTables = select_array(
Expand Down Expand Up @@ -7354,7 +7357,7 @@ sub which {
=head1 NAME
MySQLTuner 2.2.7 - MySQL High Performance Tuning Script
MySQLTuner 2.2.8 - MySQL High Performance Tuning Script
=head1 IMPORTANT USAGE GUIDELINES
Expand Down

0 comments on commit 4a1a7f4

Please sign in to comment.