From 2db14831236f1d019ae79ab7c8e39d514afdc552 Mon Sep 17 00:00:00 2001 From: mhasbini Date: Sat, 11 Jun 2016 16:19:55 +0000 Subject: [PATCH 1/2] switch version check with mysql_setup --- mysqltuner.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 4c2ebee..74ed736 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -4034,8 +4034,8 @@ sub which { # BEGIN 'MAIN' # --------------------------------------------------------------------------- headerprint; # Header Print -mysql_setup; # Gotta login first validate_tuner_version; # Check last version +mysql_setup; # Gotta login first os_setup; # Set up some OS variables get_all_vars; # Toss variables/status into hashes get_tuning_info; # Get information about the tuning connexion @@ -4049,7 +4049,7 @@ security_recommendations; # Display some security recommendations cve_recommendations; # Display related CVE calculations; # Calculate everything we need mysql_stats; # Print the server stats -mysqsl_pfs # Print Performance schema info +mysqsl_pfs; # Print Performance schema info mariadb_threadpool; # Print MaraiDB ThreadPool stats mysql_myisam; # Print MyISAM stats mariadb_ariadb; # Print MaraiDB AriaDB stats From d14809363477843903b074d1ef838838342494ae Mon Sep 17 00:00:00 2001 From: mhasbini Date: Sat, 11 Jun 2016 16:36:59 +0000 Subject: [PATCH 2/2] no need to return, just exit --- mysqltuner.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 74ed736..62c0cc1 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -593,7 +593,7 @@ sub compare_tuner_version { return; } goodprint "You have the latest version of MySQLTuner($tunerversion)"; - return; + exit 0; } # Checks to see if a MySQL login is possible