mysql variables
Posted: Thu 12 Jun 2008 18:25
I set a new value for a mysql environment variable using tmycommand component created on runtime with this sql:
SET GLOBAL tmp_table_size := 2000000;
Then i run another query like:
SHOW VARIABLES LIKE 'tmp_table_size';
and get the OLD value not the recent one. (por example: 18250110)
I need to close my app and launch it again to see the new value setted. Why?
If i promp for the value from another instance of my app launched BEFORE it shows the OLD value too. It seems like only new conections can view the change made from previous conections.
Thanks in advance and sorry for my english.
SET GLOBAL tmp_table_size := 2000000;
Then i run another query like:
SHOW VARIABLES LIKE 'tmp_table_size';
and get the OLD value not the recent one. (por example: 18250110)
I need to close my app and launch it again to see the new value setted. Why?
If i promp for the value from another instance of my app launched BEFORE it shows the OLD value too. It seems like only new conections can view the change made from previous conections.
Thanks in advance and sorry for my english.