SET commands don"t handle values like my.cnf does.
am 03.04.2003 21:28:33 von Jeremy ZawodnyUsing the latest 4.0.xx build, I have this in my.cnf:
set-variable = key_buffer=256M
But I decided that I want to double the value without restarting the
server. So I try this:
mysql> set global key_buffer_size = 512M;
ERROR 1232: Wrong argument type to variable 'key_buffer_size'
Hmm. It's not at all clear from the docs here:
http://www.mysql.com/doc/en/System_Variables.html
that my syntax is invalid. In fact, the bottom of that page even
refers to the command-line docs, which point to the Tuning Server
Parameters docs:
http://www.mysql.com/doc/en/Server_parameters.html
that has examples using "M" suffixes on values.
Of course, this works:
mysql> set global key_buffer_size = 536870912;
Query OK, 0 rows affected (0.04 sec)
But I had to do the 512*1024*1024 math myself.
How-To-Repeat: Do just what I did.
You could either call this a documentation bug or a missing feature.
Personally, I'd like to be able to use the same size specifiers in SET
commands that I use in my.cnf.
Jeremy
--
Jeremy D. Zawodny | Perl, Web, MySQL, Linux Magazine, Yahoo!
--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org