Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script generates uninitialized variables #183

Closed
vchepkov opened this issue Apr 10, 2016 · 7 comments
Closed

script generates uninitialized variables #183

vchepkov opened this issue Apr 10, 2016 · 7 comments

Comments

@vchepkov
Copy link
Contributor

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

Use of uninitialized value $infoPFSMemory[0] in substitution (s///) at
    /usr/bin/mysqltuner line 2927 (#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.

Use of uninitialized value in addition (+) at /usr/bin/mysqltuner line 1925 (#1)
...

Use of uninitialized value in addition (+) at /usr/bin/mysqltuner line 1932 (#1)
...
Use of uninitialized value $num in numeric ge (>=) at /usr/bin/mysqltuner line
    262 (#1)
Use of uninitialized value $num in numeric ge (>=) at /usr/bin/mysqltuner line
    265 (#1)
Use of uninitialized value $num in numeric ge (>=) at /usr/bin/mysqltuner line
    268 (#1)
Use of uninitialized value $num in concatenation (.) or string at
    /usr/bin/mysqltuner line 272 (#1)
...
Use of uninitialized value $num in numeric ge (>=) at /usr/bin/mysqltuner line
    245 (#1)
Use of uninitialized value $num in numeric ge (>=) at /usr/bin/mysqltuner line
    248 (#1)
Use of uninitialized value $num in numeric ge (>=) at /usr/bin/mysqltuner line
    251 (#1)
Use of uninitialized value $num in concatenation (.) or string at
    /usr/bin/mysqltuner line 255 (#1)

@vchepkov
Copy link
Contributor Author

Server version: 5.1.73
I assume this because absence of performance_schema is not handled properly

@jmrenouard
Copy link
Collaborator

No sure but next errors: should be fixed in the next commit.
Use of uninitialized value $infoPFSMemory[0] in substitution (s///) at
/usr/bin/mysqltuner line 2927 (#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.

@jmrenouard
Copy link
Collaborator

Last version should fix this ....

@vchepkov
Copy link
Contributor Author

Yes, it did, thank you. Could you bump version number, please?

@vchepkov
Copy link
Contributor Author

By the way, rpm complains about this string:

%changelog
* Thu Jan 5 2015 Jean-Marie RENOUARD <jmrenouard@gmail.com> %VERSION%-1

That's because Jan 5 2015 was Monday :)

jmrenouard added a commit that referenced this issue Apr 14, 2016
#184 adding merge between show global variables and show global variables
#184 update RPM template'
jmrenouard added a commit that referenced this issue Apr 14, 2016
@jmrenouard
Copy link
Collaborator

@vchepkov can you give us your feedback ?

@vchepkov
Copy link
Contributor Author

I thought I did, sorry if I wasn't clear in my comment above
Yes, fix worked perfectly, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants