This commit is contained in:
Jean-Marie RENOUARD 2015-08-31 18:13:46 +02:00
commit 3ac9035996
2 changed files with 34 additions and 3 deletions

View file

@ -45,6 +45,37 @@ You can download the entire repository by using 'git clone' followed by the clon
Of course, you can add the execute bit (`chmod +x mysqltuner.pl`) so you can execute it without calling perl directly.
Specific usage
--
__Usage:__ Minimal usage locally
perl mysqltuner.pl
__Usage:__ Minimal usage remotely
perl mysqltuner.pl --host targetDNS_IP --user admin_user --password admin_password
__Usage:__ Enable maximum output information around MySQL/MariaDb without debugging
perl mysqltuner.pl --buffers --dbstat --idxstat
__Usage:__ Write your result in a file with information displayed
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
__Usage:__ Write your result in a file **without outputting information**
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
__Usage:__ Using template model to customize your reporting file based on [Text::Template](https://metacpan.org/pod/Text::Template) syntax.
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
__Usage:__ Enable debugging information
perl mysqltuner.pl --debug
FAQ
--

View file

@ -45,7 +45,7 @@
#
# Copyright 2013 M. J. Dominus.
# You may copy and distribute this program under the
# same terms as Perl iteself.
# same terms as Perl itself.
# If in doubt, write to mjd-perl-template+@plover.com for a license.
#
# Version 1.46
@ -618,7 +618,7 @@ sub usage {
. " --buffers Print global and per-thread buffer values\n"
. " --outputfile <path> Path to a output txt file\n" . "\n"
. " --reportfile <path> Path to a report txt file\n" . "\n"
. " --tempalte <path> Path to a template file\n" . "\n";
. " --template <path> Path to a template file\n" . "\n";
exit 0;
}