1
1
drop table if exists t1,t2;
2
drop schema if exists data_dictionary;
3
create schema data_dictionary;
4
set @my_myisam_key_cache_size =@@global.myisam_key_cache_size;
5
2
set @my_max_connect_errors =@@global.max_connect_errors;
6
3
set @my_max_heap_table_size =@@global.max_heap_table_size;
7
4
set @my_max_join_size =@@global.max_join_size;
8
set @my_drizzle_protocol_buffer_length =@@global.drizzle_protocol_buffer_length;
5
set @my_mysql_protocol_buffer_length =@@global.mysql_protocol_buffer_length;
9
6
set @my_server_id =@@global.server_id;
10
7
set @my_storage_engine =@@global.storage_engine;
11
8
set @my_myisam_sort_buffer_size =@@global.myisam_sort_buffer_size;
9
set @my_tx_isolation =@@global.tx_isolation;
13
11
select @test, @`test`, @TEST, @`TEST`, @"teSt";
14
12
@test @`test` @TEST @`TEST` @"teSt"
183
181
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
184
182
VARIABLE_NAME VARIABLE_VALUE
185
183
myisam_max_sort_file_size 2147483647
186
set global drizzle_protocol_buffer_length=1024;
187
show global variables like 'drizzle_protocol_buffer_%';
189
drizzle_protocol_buffer_length 1024
190
select * from data_dictionary.global_variables where variable_name like 'drizzle_protocol_buffer_%';
191
VARIABLE_NAME VARIABLE_VALUE
192
drizzle_protocol_buffer_length 1024
193
show global variables like 'drizzle_protocol_buffer_%';
195
drizzle_protocol_buffer_length 1024
196
select * from data_dictionary.global_variables where variable_name like 'drizzle_protocol_buffer_%';
197
VARIABLE_NAME VARIABLE_VALUE
198
drizzle_protocol_buffer_length 1024
199
set global drizzle_protocol_buffer_length=1;
184
set global mysql_protocol_buffer_length=1024;
185
show global variables like 'mysql_protocol_buffer_%';
187
mysql_protocol_buffer_length 1024
188
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
189
VARIABLE_NAME VARIABLE_VALUE
190
mysql_protocol_buffer_length 1024
191
show global variables like 'mysql_protocol_buffer_%';
193
mysql_protocol_buffer_length 1024
194
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
195
VARIABLE_NAME VARIABLE_VALUE
196
mysql_protocol_buffer_length 1024
197
set global mysql_protocol_buffer_length=1;
201
199
Error 1292 Truncated incorrect buffer_length value: '1'
202
show variables like 'drizzle_protocol_buffer_length';
200
show variables like 'mysql_protocol_buffer_length';
203
201
Variable_name Value
204
drizzle_protocol_buffer_length 1024
205
set global drizzle_protocol_buffer_length=2000000000;
202
mysql_protocol_buffer_length 1024
203
set global mysql_protocol_buffer_length=2000000000;
207
205
Error 1292 Truncated incorrect buffer_length value: '2000000000'
208
show variables like 'drizzle_protocol_buffer_length';
206
show variables like 'mysql_protocol_buffer_length';
209
207
Variable_name Value
210
drizzle_protocol_buffer_length 1048576
208
mysql_protocol_buffer_length 1048576
211
209
show variables like '%alloc%';
212
210
Variable_name Value
213
211
innodb_use_sys_malloc ON
322
320
Error 1292 Truncated incorrect tmp_table_size value: '100'
323
321
set tx_isolation="READ-COMMITTED";
324
create temporary table t1 (a int not null auto_increment, primary key(a));
325
create temporary table t2 (a int not null auto_increment, primary key(a));
326
insert into t1 values(null),(null),(null);
327
insert into t2 values(null),(null),(null);
328
set global myisam_key_cache_size=100000;
330
Error 1292 Truncated incorrect key_cache_size value: '100000'
331
select @@myisam_key_cache_size;
332
@@myisam_key_cache_size
334
select * from t1 where a=2;
337
select * from t2 where a=3;
341
Table Op Msg_type Msg_text
342
test.t1 check status OK
343
test.t2 check status OK
344
select max(a) +1, max(a) +2 into @xx,@yy from t1;
347
ERROR HY000: Unknown system variable 'xxxxxxxxxx'
351
select @@session.myisam_key_cache_size;
352
ERROR HY000: Variable 'myisam_key_cache_size' is a GLOBAL variable
353
322
set global myisam_max_sort_file_size=4294967296;
354
323
show global variables like 'myisam_max_sort_file_size';
355
324
Variable_name Value
358
327
VARIABLE_NAME VARIABLE_VALUE
359
328
myisam_max_sort_file_size MAX_FILE_SIZE
360
329
set global myisam_max_sort_file_size=default;
361
set @@global.global.myisam_key_cache_size= 1;
362
ERROR HY000: Unknown system variable 'global'
363
set GLOBAL global.myisam_key_cache_size= 1;
364
ERROR HY000: Unknown system variable 'global'
365
SELECT @@global.global.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.session.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
SELECT @@global.local.myisam_key_cache_size;
370
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
371
330
create temporary table t1 (
377
336
show create table t1;
378
337
Table Create Table
379
338
t1 CREATE TEMPORARY TABLE `t1` (
380
`c1` int DEFAULT NULL,
381
`c2` int DEFAULT NULL,
382
`c3` int DEFAULT NULL,
383
`c4` int DEFAULT NULL,
384
`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
387
346
set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;
388
347
create temporary table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
389
348
show create table t1;
390
349
Table Create Table
391
350
t1 CREATE TEMPORARY TABLE `t1` (
392
`c1` bigint DEFAULT NULL,
393
`c2` decimal(65,30) DEFAULT NULL,
395
`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
398
357
SET GLOBAL table_open_cache=-1;
575
534
set global flush_time =@my_flush_time;
576
535
ERROR HY000: Unknown system variable 'flush_time'
577
set global myisam_key_cache_size =@my_myisam_key_cache_size;
578
536
set global max_connect_errors =@my_max_connect_errors;
579
537
set global max_heap_table_size =@my_max_heap_table_size;
580
538
set global max_join_size =@my_max_join_size;
581
539
set global max_write_lock_count =default;
582
set global myisam_data_pointer_size =@my_myisam_data_pointer_size;
583
ERROR 42000: Incorrect argument type to variable 'myisam_data_pointer_size'
584
set global drizzle_protocol_buffer_length= @my_drizzle_protocol_buffer_length;
540
set global mysql_protocol_buffer_length= @my_mysql_protocol_buffer_length;
585
541
set global server_id =@my_server_id;
586
542
set global storage_engine =@my_storage_engine;
587
543
set global thread_cache_size =@my_thread_cache_size;
588
544
ERROR HY000: Unknown system variable 'thread_cache_size'
589
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;
590
586
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';
591
587
Variable_name Value
592
588
table_definition_cache #
593
589
table_lock_wait_timeout #
594
drop schema data_dictionary;