Closed sastro closed 13 years ago
Just based on the error messages, it looks like this is caused by the variables $myvar{'innodb_log_file_size'}
and $myvar{'innodb_buffer_pool_size'}
being undefined. Try running SHOW VARIABLES LIKE '%innodb%';
to see if those variables have been renamed or something in MySQL 5.5. I don't think they have, but I haven't used that version yet so I don't know.
i think this has nothing to do with innodb-variables the problem is that this only happens on servers with "skip-innodb" "skip-innodb" is the only line related to innodb in my.cnf and if i remove this the error goes away, but no i do not like innodb on this machine :-(
-------- Storage Engine Statistics ------------------------------------------- [--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster [--] Data in MyISAM tables: 543M (Tables: 3533) [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17) [!!] InnoDB is enabled but isn't being used [!!] Total fragmented tables: 187
-------- Security Recommendations ------------------------------------------- [OK] All database users have passwords assigned Use of uninitialized value $myvar{"innodb_log_file_size"} in multiplication (*) at /usr/bin/mysqltuner line 666, <> line 2 (#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.
This is caused by a MySQL 5.5 bug - have_innodb is set to YES in global variables even if skip-innodb or ignore-builtin-innodb is used.
Fix included in issue #3.
Here is the error
[root@381723 ~]# /home/mysqltuner.pl
-------- General Statistics -------------------------------------------------- [--] Skipped version check for MySQLTuner script [OK] Currently running supported MySQL version 5.5.8-log [OK] Operating on 64-bit architecture
-------- Storage Engine Statistics ------------------------------------------- [--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster [--] Data in MyISAM tables: 304M (Tables: 63) [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17) [!!] InnoDB is enabled but isn't being used [!!] Total fragmented tables: 2
-------- Security Recommendations ------------------------------------------- [OK] All database users have passwords assigned Use of uninitialized value in multiplication (*) at /home/mysqltuner.pl line 666, <> line 2 (#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.
Use of uninitialized value in division (/) at /home/mysqltuner.pl line 666, <> line 2 (#1)
Illegal division by zero at /home/mysqltuner.pl line 666, <> line 2 (#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 /home/mysqltuner.pl line 666, <> line 2. at /home/mysqltuner.pl line 665 main::calculations() called at /home/mysqltuner.pl line 918
Please help