From f2085d752499be9eacd77e131d0e1aadbb3b7d38 Mon Sep 17 00:00:00 2001 From: Jean-Marie Renouard Date: Fri, 11 Mar 2022 14:37:17 +0100 Subject: [PATCH] Adding AHA section for HTML generation Generating .html reports #448 --- README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd2c46c..55f380c 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ __Usage:__ Update MySQLTuner and data files (password and cve) if needed perl mysqltuner.pl --checkversion --updateversion -HTML reports +HTML reports 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 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 --