major/MySQLTuner-perl

Script is failing on MySQL 5.6.10(AWS Aurora)

オープン

#435 opened on 2019/04/17

 (7 件のコメント) (0 件のリアクション) (1 人の担当者)Perl (1,286 件のフォーク)batch import
Help Wantedenhancement

Repository metrics

Stars
 (9,476 個のスター)
PR merge metrics
 (平均マージ 3d 20h) (30d で 9 merged PRs)

説明

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

コントリビューターガイド