misreports on mariadb 10

Bug #1460848 reported by Don Lindsay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Tuning Primer Script
New
Undecided
Unassigned

Bug Description

--- tuning-primer.sh.orig 2015-05-18 19:12:32.664362370 -0700
+++ tuning-primer.sh 2015-05-28 13:46:23.015043721 -0700
@@ -7,7 +7,11 @@
 # Writen by: Matthew Montgomery #
 # Report bugs to: https://bugs.launchpad.net/mysql-tuning-primer #
 # Inspired by: MySQLARd (http://gert.sos.be/demo/mysqlar/) #
-# Version: 1.6-r1 Released: 2011-08-06 #
+# Version: 1.6-r1 Released: 2011-08-06 #
+# Edited <email address hidden> for mariadb support. #
+# fix: join_buffer_size #
+# fix: presence of innodb support in 10.0.0 #
+# fix: slow query log enable #
 # Licenced under GPLv2 #
 # #
 #########################################################################
@@ -579,7 +583,7 @@

  mysql_status \'Slow_queries\' slow_queries
  mysql_variable \'long_query_time\' long_query_time
- mysql_variable \'log%queries\' log_slow_queries
+ mysql_variable \'slow_query_log\' log_slow_queries

  prefered_query_time=5
  if [ -e /etc/my.cnf ] ; then
@@ -940,7 +944,7 @@

  mysql_status \'Select_full_join\' select_full_join
  mysql_status \'Select_range_check\' select_range_check
- mysql_variable \'join_buffer%\' join_buffer_size
+ mysql_variable \'join_buffer_size\' join_buffer_size

  ## Some 4K is dropped from join_buffer_size adding it back to make sane ##
  ## handling of human-readable conversion ##
@@ -1246,6 +1250,14 @@
  if [ "$mysql_version_num" -lt 050603 ] ; then
  mysql_variable \'have_innodb\' have_innodb
  fi
+ if [ "$mysql_version_num" -ge 100000 ] ; then
+ mysql_variable \'ignore_builtin_innodb\' ignore_builtin_innodb
+ if [ "$ignore_builtin_innodb" = "ON" ] ; then
+ innodb_enabled=0
+ else
+ innodb_enabled=1
+ fi
+ fi
  if [ "$mysql_version_num" -lt 050500 ] && [ "$have_innodb" = "YES" ] ; then
  innodb_enabled=1
  fi

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.