1
1
drop table if exists t1,t2;
2
set @my_key_buffer_size =@@global.key_buffer_size;
2
set @my_myisam_key_cache_size =@@global.myisam_key_cache_size;
3
3
set @my_max_connect_errors =@@global.max_connect_errors;
4
4
set @my_max_heap_table_size =@@global.max_heap_table_size;
5
5
set @my_max_join_size =@@global.max_join_size;
338
338
create temporary table t2 (a int not null auto_increment, primary key(a));
339
339
insert into t1 values(null),(null),(null);
340
340
insert into t2 values(null),(null),(null);
341
set global key_buffer_size=100000;
342
select @@key_buffer_size;
341
set global myisam_key_cache_size=100000;
343
Error 1292 Truncated incorrect key_cache_size value: '100000'
344
select @@myisam_key_cache_size;
345
@@myisam_key_cache_size
345
347
select * from t1 where a=2;
362
select @@session.key_buffer_size;
363
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable
364
select @@session.myisam_key_cache_size;
365
ERROR HY000: Variable 'myisam_key_cache_size' is a GLOBAL variable
364
366
set global myisam_max_sort_file_size=4294967296;
365
367
show global variables like 'myisam_max_sort_file_size';
366
368
Variable_name Value
369
371
VARIABLE_NAME VARIABLE_VALUE
370
372
MYISAM_MAX_SORT_FILE_SIZE MAX_FILE_SIZE
371
373
set global myisam_max_sort_file_size=default;
372
set @@global.global.key_buffer_size= 1;
373
ERROR HY000: Unknown system variable 'global'
374
set GLOBAL global.key_buffer_size= 1;
375
ERROR HY000: Unknown system variable 'global'
376
SELECT @@global.global.key_buffer_size;
377
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'key_buffer_size' at line 1
378
SELECT @@global.session.key_buffer_size;
379
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'key_buffer_size' at line 1
380
SELECT @@global.local.key_buffer_size;
381
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'key_buffer_size' at line 1
374
set @@global.global.myisam_key_cache_size= 1;
375
ERROR HY000: Unknown system variable 'global'
376
set GLOBAL global.myisam_key_cache_size= 1;
377
ERROR HY000: Unknown system variable 'global'
378
SELECT @@global.global.myisam_key_cache_size;
379
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'myisam_key_cache_size' at line 1
380
SELECT @@global.session.myisam_key_cache_size;
381
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'myisam_key_cache_size' at line 1
382
SELECT @@global.local.myisam_key_cache_size;
383
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'myisam_key_cache_size' at line 1
382
384
create temporary table t1 (
586
588
set global flush_time =@my_flush_time;
587
589
ERROR HY000: Unknown system variable 'flush_time'
588
set global key_buffer_size =@my_key_buffer_size;
590
set global myisam_key_cache_size =@my_myisam_key_cache_size;
589
591
set global max_connect_errors =@my_max_connect_errors;
590
592
set global max_heap_table_size =@my_max_heap_table_size;
591
593
set global max_join_size =@my_max_join_size;