|
1 | 1 | #!/usr/bin/env perl
|
2 |
| -# mysqltuner.pl - Version 2.6.0 |
| 2 | +# mysqltuner.pl - Version 2.6.1 |
3 | 3 | # High Performance MySQL Tuning Script
|
4 | 4 | # Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com
|
5 | 5 | # Copyright (C) 2006-2023 Major Hayden - major@mhtx.net
|
@@ -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.6.0"; |
| 60 | +my $tunerversion = "2.6.1"; |
61 | 61 | my ( @adjvars, @generalrec );
|
62 | 62 |
|
63 | 63 | # Set defaults
|
@@ -117,7 +117,8 @@ package main;
|
117 | 117 | "dumpdir" => '',
|
118 | 118 | "feature" => '',
|
119 | 119 | "dbgpattern" => '',
|
120 |
| - "defaultarch" => 64 |
| 120 | + "defaultarch" => 64, |
| 121 | + "noprettyicon" => 0 |
121 | 122 | );
|
122 | 123 |
|
123 | 124 | # Gather the options from the command line
|
@@ -154,7 +155,7 @@ package main;
|
154 | 155 | 'defaults-extra-file=s', 'dumpdir=s',
|
155 | 156 | 'feature=s', 'dbgpattern=s',
|
156 | 157 | 'defaultarch=i', 'experimental',
|
157 |
| - 'nondedicated' |
| 158 | + 'nondedicated', 'noprettyicon' |
158 | 159 | )
|
159 | 160 | or pod2usage(
|
160 | 161 | -exitval => 1,
|
@@ -232,6 +233,7 @@ package main;
|
232 | 233 |
|
233 | 234 | $opt{cvefile} = 'vulnerabilities.csv'; #CVE File for vulnerability checks
|
234 | 235 | }
|
| 236 | +$opt{prettyicon}=0 if $opt{prettyicon}!=1; |
235 | 237 | $opt{nocolor} = 1 if defined( $opt{outputfile} );
|
236 | 238 | $opt{tbstat} = 0 if ( $opt{notbstat} == 1 ); # Don't print table information
|
237 | 239 | $opt{colstat} = 0 if ( $opt{nocolstat} == 1 ); # Don't print column information
|
@@ -275,13 +277,24 @@ package main;
|
275 | 277 | # Setting up the colors for the print styles
|
276 | 278 | my $me = `whoami`;
|
277 | 279 | $me =~ s/\n//g;
|
| 280 | + |
| 281 | + |
278 | 282 | my $good = ( $opt{nocolor} == 0 ) ? "[\e[0;32mOK\e[0m]" : "[OK]";
|
279 | 283 | my $bad = ( $opt{nocolor} == 0 ) ? "[\e[0;31m!!\e[0m]" : "[!!]";
|
280 | 284 | my $info = ( $opt{nocolor} == 0 ) ? "[\e[0;34m--\e[0m]" : "[--]";
|
281 | 285 | my $deb = ( $opt{nocolor} == 0 ) ? "[\e[0;31mDG\e[0m]" : "[DG]";
|
282 | 286 | my $cmd = ( $opt{nocolor} == 0 ) ? "\e[1;32m[CMD]($me)" : "[CMD]($me)";
|
283 | 287 | my $end = ( $opt{nocolor} == 0 ) ? "\e[0m" : "";
|
284 | 288 |
|
| 289 | +if ($opt{prettyicon} == 1) { |
| 290 | + $good = "✔ "; |
| 291 | + $bad = "✘ "; |
| 292 | + $info = "ℹ "; |
| 293 | + $deb = "⚙ "; |
| 294 | + $cmd = "⌨️($me)"; |
| 295 | + $end = " "; |
| 296 | +} |
| 297 | + |
285 | 298 | # Maximum lines of log output to read from end
|
286 | 299 | my $maxlines = 30000;
|
287 | 300 |
|
@@ -7441,7 +7454,7 @@ sub which {
|
7441 | 7454 |
|
7442 | 7455 | =head1 NAME
|
7443 | 7456 |
|
7444 |
| - MySQLTuner 2.6.0 - MySQL High Performance Tuning Script |
| 7457 | + MySQLTuner 2.6.1 - MySQL High Performance Tuning Script |
7445 | 7458 |
|
7446 | 7459 | =head1 IMPORTANT USAGE GUIDELINES
|
7447 | 7460 |
|
@@ -7493,6 +7506,7 @@ =head1 OUTPUT OPTIONS
|
7493 | 7506 | --verbose Print out all options (default: no verbose, dbstat, idxstat, sysstat, tbstat, pfstat)
|
7494 | 7507 | --color Print output in color
|
7495 | 7508 | --nocolor Don't print output in color
|
| 7509 | + --noprettyicon Print output with legacy tag [OK], [!!], [--], [CMD], ... |
7496 | 7510 | --nogood Remove OK responses
|
7497 | 7511 | --nobad Remove negative/suggestion responses
|
7498 | 7512 | --noinfo Remove informational responses
|
|
0 commit comments