Skip to content

Commit 5b96d08

Browse files
author
Jean-Marie Renouard
committed
Update Vulnerabilities list
Indenting mysqltuner Update Usage information
1 parent 1bdb4b1 commit 5b96d08

File tree

2 files changed

+159
-4
lines changed

2 files changed

+159
-4
lines changed

USAGE.md

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
# NAME
2+
3+
MySQLTuner 1.8.1 - MySQL High Performance Tuning Script
4+
5+
# IMPORTANT USAGE GUIDELINES
6+
7+
To run the script with the default options, run the script without arguments
8+
Allow MySQL server to run for at least 24-48 hours before trusting suggestions
9+
Some routines may require root level privileges (script will provide warnings)
10+
You must provide the remote server's total memory when connecting to other servers
11+
12+
# CONNECTION AND AUTHENTICATION
13+
14+
--host <hostname> Connect to a remote host to perform tests (default: localhost)
15+
--socket <socket> Use a different socket for a local connection
16+
--port <port> Port to use for connection (default: 3306)
17+
--user <username> Username to use for authentication
18+
--userenv <envvar> Name of env variable which contains username to use for authentication
19+
--pass <password> Password to use for authentication
20+
--passenv <envvar> Name of env variable which contains password to use for authentication
21+
--ssl-ca <path> Path to public key
22+
--mysqladmin <path> Path to a custom mysqladmin executable
23+
--mysqlcmd <path> Path to a custom mysql executable
24+
--defaults-file <path> Path to a custom .my.cnf
25+
--server-log <path> Path to explict log file
26+
27+
# PERFORMANCE AND REPORTING OPTIONS
28+
29+
--skipsize Don't enumerate tables and their types/sizes (default: on)
30+
(Recommended for servers with many tables)
31+
--skippassword Don't perform checks on user passwords(default: off)
32+
--checkversion Check for updates to MySQLTuner (default: don't check)
33+
--updateversion Check for updates to MySQLTuner and update when newer version is available (default: don't check)
34+
--forcemem <size> Amount of RAM installed in megabytes
35+
--forceswap <size> Amount of swap memory configured in megabytes
36+
--passwordfile <path> Path to a password file list(one password by line)
37+
38+
# OUTPUT OPTIONS
39+
40+
--silent Don't output anything on screen
41+
--nogood Remove OK responses
42+
--nobad Remove negative/suggestion responses
43+
--noinfo Remove informational responses
44+
--debug Print debug information
45+
--noprocess Consider no other process is running
46+
--dbstat Print database information
47+
--nodbstat Don't Print database information
48+
--tbstat Print table information
49+
--notbstat Don't Print table information
50+
--colstat Print column information
51+
--nocolstat Don't Print column information
52+
--idxstat Print index information
53+
--noidxstat Don't Print index information
54+
--sysstat Print system information
55+
--nosysstat Don't Print system information
56+
--pfstat Print Performance schema
57+
--nopfstat Don't Print Performance schema
58+
--verbose Prints out all options (default: no verbose, dbstat, idxstat, sysstat, tbstat, pfstat)
59+
--bannedports Ports banned separated by comma(,)
60+
--maxportallowed Number of ports opened allowed on this hosts
61+
--cvefile <path> CVE File for vulnerability checks
62+
--nocolor Don't print output in color
63+
--json Print result as JSON string
64+
--buffers Print global and per-thread buffer values
65+
--outputfile <path> Path to a output txt file
66+
--reportfile <path> Path to a report txt file
67+
--template <path> Path to a template file
68+
69+
# PERLDOC
70+
71+
You can find documentation for this module with the perldoc command.
72+
73+
perldoc mysqltuner
74+
75+
## INTERNALS
76+
77+
[https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md)
78+
79+
Internal documentation
80+
81+
# AUTHORS
82+
83+
Major Hayden - [email protected]
84+
85+
# CONTRIBUTORS
86+
87+
- Matthew Montgomery
88+
- Paul Kehrer
89+
- Dave Burgess
90+
- Jonathan Hinds
91+
- Mike Jackson
92+
- Nils Breunese
93+
- Shawn Ashlee
94+
- Luuk Vosslamber
95+
- Ville Skytta
96+
- Trent Hornibrook
97+
- Jason Gill
98+
- Mark Imbriaco
99+
- Greg Eden
100+
- Aubin Galinotti
101+
- Giovanni Bechis
102+
- Bill Bradford
103+
- Ryan Novosielski
104+
- Michael Scheidell
105+
- Blair Christensen
106+
- Hans du Plooy
107+
- Victor Trac
108+
- Everett Barnes
109+
- Tom Krouper
110+
- Gary Barrueto
111+
- Simon Greenaway
112+
- Adam Stein
113+
- Isart Montane
114+
- Baptiste M.
115+
- Cole Turner
116+
- Major Hayden
117+
- Joe Ashcraft
118+
- Jean-Marie Renouard
119+
- Stephan GroBberndt
120+
- Christian Loos
121+
122+
# SUPPORT
123+
124+
Bug reports, feature requests, and downloads at http://mysqltuner.pl/
125+
126+
Bug tracker can be found at https://github.com/major/MySQLTuner-perl/issues
127+
128+
Maintained by Major Hayden (major\\@mhtx.net) - Licensed under GPL
129+
130+
# SOURCE CODE
131+
132+
[https://github.com/major/MySQLTuner-perl](https://github.com/major/MySQLTuner-perl)
133+
134+
git clone https://github.com/major/MySQLTuner-perl.git
135+
136+
# COPYRIGHT AND LICENSE
137+
138+
Copyright (C) 2006-2021 Major Hayden - [email protected]
139+
140+
For the latest updates, please visit http://mysqltuner.pl/
141+
142+
Git repository available at https://github.com/major/MySQLTuner-perl
143+
144+
This program is free software: you can redistribute it and/or modify
145+
it under the terms of the GNU General Public License as published by
146+
the Free Software Foundation, either version 3 of the License, or
147+
(at your option) any later version.
148+
149+
This program is distributed in the hope that it will be useful,
150+
but WITHOUT ANY WARRANTY; without even the implied warranty of
151+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
152+
153+
See the GNU General Public License for more details.
154+
155+
You should have received a copy of the GNU General Public License
156+
along with this program. If not, see &lt;https://www.gnu.org/licenses/>.

mysqltuner.pl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ sub log_file_recommendations {
13491349
$numLi++;
13501350
debugprint "$numLi: $logLi"
13511351
if $logLi =~ /warning|error/i and $logLi !~ /Logging to/;
1352-
$nbErrLog++ if $logLi =~ /error/i and $logLi !~ /Logging to/;
1352+
$nbErrLog++ if $logLi =~ /error/i and $logLi !~ /Logging to/;
13531353
$nbWarnLog++ if $logLi =~ /warning/i;
13541354
push @lastShutdowns, $logLi
13551355
if $logLi =~ /Shutdown complete/ and $logLi !~ /Innodb/i;
@@ -1359,8 +1359,7 @@ sub log_file_recommendations {
13591359

13601360
if ( $nbWarnLog > 0 ) {
13611361
badprint "$myvar{'log_error'} contains $nbWarnLog warning(s).";
1362-
push @generalrec,
1363-
"Check warning line(s) in $myvar{'log_error'} file";
1362+
push @generalrec, "Check warning line(s) in $myvar{'log_error'} file";
13641363
}
13651364
else {
13661365
goodprint "$myvar{'log_error'} doesn't contain any warning.";
@@ -2070,7 +2069,7 @@ sub get_replication_status {
20702069
"This replication slave is not running but seems to be configured.";
20712070
}
20722071
if ( defined($io_running)
2073-
&& $io_running =~ /yes/i
2072+
&& $io_running =~ /yes/i
20742073
&& $sql_running =~ /yes/i )
20752074
{
20762075
if ( $myvar{'read_only'} eq 'OFF' ) {

0 commit comments

Comments
 (0)