7
6
set @my_server_id =@@global.server_id;
8
7
set @my_storage_engine =@@global.storage_engine;
9
8
set @my_myisam_sort_buffer_size =@@global.myisam_sort_buffer_size;
9
set @my_tx_isolation =@@global.tx_isolation;
11
11
select @test, @`test`, @TEST, @`TEST`, @"teSt";
12
12
@test @`test` @TEST @`TEST` @"teSt"
320
320
Error 1292 Truncated incorrect tmp_table_size value: '100'
321
321
set tx_isolation="READ-COMMITTED";
322
create temporary table t1 (a int not null auto_increment, primary key(a));
323
create temporary table t2 (a int not null auto_increment, primary key(a));
324
insert into t1 values(null),(null),(null);
325
insert into t2 values(null),(null),(null);
326
set global myisam_key_cache_size=100000;
328
Error 1292 Truncated incorrect key_cache_size value: '100000'
329
select @@myisam_key_cache_size;
330
@@myisam_key_cache_size
332
select * from t1 where a=2;
335
select * from t2 where a=3;
339
Table Op Msg_type Msg_text
340
test.t1 check status OK
341
test.t2 check status OK
342
select max(a) +1, max(a) +2 into @xx,@yy from t1;
345
ERROR HY000: Unknown system variable 'xxxxxxxxxx'
349
select @@session.myisam_key_cache_size;
350
ERROR HY000: Variable 'myisam_key_cache_size' is a GLOBAL variable
351
322
set global myisam_max_sort_file_size=4294967296;
352
323
show global variables like 'myisam_max_sort_file_size';
353
324
Variable_name Value
356
327
VARIABLE_NAME VARIABLE_VALUE
357
328
myisam_max_sort_file_size MAX_FILE_SIZE
358
329
set global myisam_max_sort_file_size=default;
359
set @@global.global.myisam_key_cache_size= 1;
360
ERROR HY000: Unknown system variable 'global'
361
set GLOBAL global.myisam_key_cache_size= 1;
362
ERROR HY000: Unknown system variable 'global'
363
SELECT @@global.global.myisam_key_cache_size;
364
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
365
SELECT @@global.session.myisam_key_cache_size;
366
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
367
SELECT @@global.local.myisam_key_cache_size;
368
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
369
330
create temporary table t1 (
375
336
show create table t1;
376
337
Table Create Table
377
338
t1 CREATE TEMPORARY TABLE `t1` (
378
`c1` int DEFAULT NULL,
379
`c2` int DEFAULT NULL,
380
`c3` int DEFAULT NULL,
381
`c4` int DEFAULT NULL,
382
`c5` bigint DEFAULT NULL
339
`c1` INT DEFAULT NULL,
340
`c2` INT DEFAULT NULL,
341
`c3` INT DEFAULT NULL,
342
`c4` INT DEFAULT NULL,
343
`c5` BIGINT DEFAULT NULL
344
) ENGINE=MyISAM COLLATE = utf8_general_ci
385
346
set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;
386
347
create temporary table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
387
348
show create table t1;
388
349
Table Create Table
389
350
t1 CREATE TEMPORARY TABLE `t1` (
390
`c1` bigint DEFAULT NULL,
391
`c2` decimal(65,30) DEFAULT NULL,
393
`c4` double DEFAULT NULL
351
`c1` BIGINT DEFAULT NULL,
352
`c2` DECIMAL(65,30) DEFAULT NULL,
353
`c3` TEXT COLLATE utf8_general_ci,
354
`c4` DOUBLE DEFAULT NULL
355
) ENGINE=MyISAM COLLATE = utf8_general_ci
396
357
SET GLOBAL table_open_cache=-1;
573
534
set global flush_time =@my_flush_time;
574
535
ERROR HY000: Unknown system variable 'flush_time'
575
set global myisam_key_cache_size =@my_myisam_key_cache_size;
576
536
set global max_connect_errors =@my_max_connect_errors;
577
537
set global max_heap_table_size =@my_max_heap_table_size;
578
538
set global max_join_size =@my_max_join_size;
579
539
set global max_write_lock_count =default;
580
set global myisam_data_pointer_size =@my_myisam_data_pointer_size;
581
ERROR 42000: Incorrect argument type to variable 'myisam_data_pointer_size'
582
540
set global mysql_protocol_buffer_length= @my_mysql_protocol_buffer_length;
583
541
set global server_id =@my_server_id;
584
542
set global storage_engine =@my_storage_engine;
585
543
set global thread_cache_size =@my_thread_cache_size;
586
544
ERROR HY000: Unknown system variable 'thread_cache_size'
587
545
set global myisam_sort_buffer_size =@my_myisam_sort_buffer_size;
546
SHOW GLOBAL VARIABLES LIKE 'max_join_size';
548
max_join_size 2147483647
549
SHOW LOCAL VARIABLES LIKE 'max_join_size';
552
set GLOBAL bulk_insert_buffer_size=DEFAULT;
553
set GLOBAL join_buffer_size=DEFAULT;
554
set GLOBAL max_allowed_packet=DEFAULT;
555
set GLOBAL max_connect_errors=DEFAULT;
556
set GLOBAL max_heap_table_size=DEFAULT;
557
set GLOBAL max_join_size=DEFAULT;
558
set GLOBAL max_sort_length=DEFAULT;
559
set GLOBAL max_write_lock_count=DEFAULT;
560
set GLOBAL myisam_sort_buffer_size=DEFAULT;
561
set GLOBAL mysql_protocol_buffer_length=DEFAULT;
562
set GLOBAL read_buffer_size=DEFAULT;
563
set GLOBAL read_rnd_buffer_size=DEFAULT;
564
set GLOBAL server_id=DEFAULT;
565
set GLOBAL sort_buffer_size=DEFAULT;
566
set GLOBAL table_open_cache=DEFAULT;
567
set GLOBAL storage_engine= @my_storage_engine;
568
set GLOBAL tmp_table_size=DEFAULT;
569
set GLOBAL tx_isolation= @my_tx_isolation;
570
set SESSION bulk_insert_buffer_size=DEFAULT;
571
set SESSION join_buffer_size=DEFAULT;
572
set SESSION max_allowed_packet=DEFAULT;
573
set SESSION max_heap_table_size=DEFAULT;
574
set SESSION max_join_size=DEFAULT;
575
set SESSION max_sort_length=DEFAULT;
576
set SESSION read_buffer_size=DEFAULT;
577
set SESSION read_rnd_buffer_size=DEFAULT;
578
set SESSION sort_buffer_size=DEFAULT;
579
set SESSION sql_big_selects=DEFAULT;
580
set SESSION sql_buffer_result=DEFAULT;
581
set SESSION sql_select_limit=DEFAULT;
582
set SESSION sql_warnings=DEFAULT;
583
set SESSION storage_engine= @my_storage_engine;
584
set SESSION tmp_table_size=DEFAULT;
585
set SESSION tx_isolation= @my_tx_isolation;
588
586
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';
589
587
Variable_name Value
590
588
table_definition_cache #