major/MySQLTuner-perl

Script is failing on MySQL 5.6.10(AWS Aurora)

Open

#435 opened on Apr 17, 2019

View on GitHub
 (7 comments) (0 reactions) (1 assignee)Perl (9,452 stars) (1,293 forks)batch import
Help Wantedenhancement

Description

Getting following error when running it on Mysql 5.6 (AWS Aurora) -

 >>  MySQLTuner 1.7.15 - Major Hayden <major@mhtx.net>

Use of uninitialized value in division (/) at mysqltuner.pl line 2657 (#1)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you
    the name of the variable (if any) that was undefined.  In some cases
    it cannot do this, so it also tells you what operation you used the
    undefined value in.  Note, however, that perl optimizes your program
    and the operation displayed in the warning may not necessarily appear
    literally in your program.  For example, "that $foo" is usually
    optimized into "that " . $foo, and the warning will refer to the
    concatenation (.) operator, even though there is no . in
    your program.

Illegal division by zero at mysqltuner.pl line 2657 (#2)
    (F) You tried to divide a number by 0.  Either something was wrong in
    your logic, or you need to put a conditional in to guard against
    meaningless input.

Uncaught exception from user code:
	Illegal division by zero at mysqltuner.pl line 2657.
	main::calculations() called at mysqltuner.pl line 6307

Contributor guide