diff --git a/README.md b/README.md index 0555f45..13927f8 100644 --- a/README.md +++ b/README.md @@ -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 -- diff --git a/mysqltuner.pl b/mysqltuner.pl index 3cfa1cc..1d19c90 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -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 to a output txt file\n" . "\n" . " --reportfile Path to a report txt file\n" . "\n" - . " --tempalte Path to a template file\n" . "\n"; + . " --template Path to a template file\n" . "\n"; exit 0; } @@ -3549,4 +3549,4 @@ along with this program. If not, see . # indent-tabs-mode: t # cperl-indent-level: 8 # perl-indent-level: 8 -# End: \ No newline at end of file +# End: