Skip to content

Commit 4a1a7f4

Browse files
authored
Merge pull request #712 from jmrenouard/master
Updates USAGE and version number
2 parents 5bc816e + 4e32805 commit 4a1a7f4

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NAME
22

3-
MySQLTuner 2.2.5 - MySQL High Performance Tuning Script
3+
MySQLTuner 2.2.7 - MySQL High Performance Tuning Script
44

55
# IMPORTANT USAGE GUIDELINES
66

mysqltuner.pl

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env perl
2-
# mysqltuner.pl - Version 2.2.7
2+
# mysqltuner.pl - Version 2.2.8
33
# High Performance MySQL Tuning Script
4-
# Copyright (C) 2006-2023 Major Hayden - major@mhtx.net
54
# Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com
5+
# Copyright (C) 2006-2023 Major Hayden - major@mhtx.net
66

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

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

6363
# Set defaults
@@ -235,9 +235,12 @@ package main;
235235
if ( $opt{nopfstat} == 1 ); # Don't print performance schema information
236236
$opt{idxstat} = 0 if ( $opt{noidxstat} == 1 ); # Don't print index information
237237
$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
239240
$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+
241244
# for RPM distributions
242245
$opt{cvefile} = "/usr/share/mysqltuner/vulnerabilities.csv"
243246
unless ( defined $opt{cvefile} and -f "$opt{cvefile}" );
@@ -3856,7 +3859,7 @@ sub mysql_stats {
38563859

38573860
# Recommendations for MyISAM
38583861
sub mysql_myisam {
3859-
return 0 unless ($opt{'myisamstat'} > 0);
3862+
return 0 unless ( $opt{'myisamstat'} > 0 );
38603863
subheaderprint "MyISAM Metrics";
38613864
my $nb_myisam_tables = select_one(
38623865
"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 {
58065809

58075810
# REcommendations for Tables
58085811
sub mysql_table_structures {
5809-
return 0 unless ($opt{structstat} > 0);
5812+
return 0 unless ( $opt{structstat} > 0 );
58105813
subheaderprint "Table structures analysis";
58115814

58125815
my @primaryKeysNbTables = select_array(
@@ -7354,7 +7357,7 @@ sub which {
73547357
73557358
=head1 NAME
73567359
7357-
MySQLTuner 2.2.7 - MySQL High Performance Tuning Script
7360+
MySQLTuner 2.2.8 - MySQL High Performance Tuning Script
73587361
73597362
=head1 IMPORTANT USAGE GUIDELINES
73607363

0 commit comments

Comments
 (0)