Adding AHA section for HTML generation

Generating .html reports
#448
This commit is contained in:
Jean-Marie Renouard 2022-03-11 14:37:17 +01:00
parent 7851426ecc
commit f2085d7524

View file

@ -213,7 +213,7 @@ __Usage:__ Update MySQLTuner and data files (password and cve) if needed
perl mysqltuner.pl --checkversion --updateversion perl mysqltuner.pl --checkversion --updateversion
HTML reports HTML reports based on Python Jinja2
-- --
HTML generation is based on Python/Jinja2 HTML generation is based on Python/Jinja2
@ -238,6 +238,36 @@ A basic example is called basic.html.j2
perl mysqltuner.pl --verbose --json > reports.json perl mysqltuner.pl --verbose --json > reports.json
cat reports.json j2 -f json MySQLTuner-perl/templates/basic.html.j2 > variables.html cat reports.json j2 -f json MySQLTuner-perl/templates/basic.html.j2 > variables.html
or
perl mysqltuner.pl --verbose --json | j2 -f json MySQLTuner-perl/templates/basic.html.j2 > variables.html
HTML reports based on AHA
--
HTML generation is based on AHA
**HTML generation Procedure**
- Generate mysqltuner.pl report using standard text reports
- Generate HTML report using aha
**Installation Aha**
Follow instructions from Github repo
[GitHub AHA main repository](https://github.com/theZiz/aha)
**Using AHA Html report generation**
perl mysqltuner.pl --verbose --color > reports.txt
aha --black --title "MySQLTuner" -f "reports.txt" > "reports.html"
or
perl mysqltuner.pl --verbose --color | aha --black --title "MySQLTuner" > reports.html
FAQ FAQ
-- --