line 402: export: `2097152': not a valid identifier

Bug #1075344 reported by 1x6PY78
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MySQL Tuning Primer Script
New
Undecided
Unassigned

Bug Description

Hi,

when using tuning-primer 1.6r1 together with 5.5.28-MariaDB-mariadb1~squeeze-log on a debian squeeze server this message is shown in the JOINS section of the tuning primer output:

./tuning-primer.sh: line 402: export: `2097152': not a valid identifier

Revision history for this message
Horst Schirmeier (horst) wrote :

Same here, mariadb-server (and -client) 5.5.30-mariadb1~squeeze.

Revision history for this message
Horst Schirmeier (horst) wrote :

This bug is harmless (the script works perfectly besides showing this error message), but easily fixable. MariaDB introduces a second server variable that starts with 'join_buffer' (namely join_buffer_space_limit), and the mysql_variable() function in tuning-primer.sh cannot handle mysql returning multiple variable/value pairs.

Fix attached. Available MySQL documentation doesn't talk about any other server variable starting with 'join_buffer%' besides join_buffer_size (there's no older documentation online than this one: http://dev.mysql.com/doc/refman/4.1/en/server-system-variables.html#sysvar_join_buffer_size), so I guess it's safe to replace the wildcard with the complete variable name.

Revision history for this message
1x6PY78 (1x6py78) wrote :

Thanks for this information,

i can confirm that the attached patch fixes the output of this error on my system.

Revision history for this message
pamamold (jimspiti) wrote :

Why not add this to default download?

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.