~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/r/variables.result

  • Committer: Brian Aker
  • Date: 2008-07-08 16:17:31 UTC
  • Revision ID: brian@tangent.org-20080708161731-io36j7igglok79py
DATE cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1,t2;
 
2
set @my_binlog_cache_size         =@@global.binlog_cache_size;
 
3
set @my_connect_timeout           =@@global.connect_timeout;
 
4
set @my_delayed_insert_timeout    =@@global.delayed_insert_timeout;
 
5
set @my_delayed_queue_size        =@@global.delayed_queue_size;
 
6
set @my_flush                     =@@global.flush;
 
7
set @my_flush_time                =@@global.flush_time;
 
8
set @my_key_buffer_size           =@@global.key_buffer_size;
 
9
set @my_max_binlog_cache_size     =@@global.max_binlog_cache_size;
 
10
set @my_max_binlog_size           =@@global.max_binlog_size;
2
11
set @my_max_connect_errors        =@@global.max_connect_errors;
 
12
set @my_max_connections           =@@global.max_connections;
 
13
set @my_max_delayed_threads       =@@global.max_delayed_threads;
3
14
set @my_max_heap_table_size       =@@global.max_heap_table_size;
 
15
set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads;
4
16
set @my_max_join_size             =@@global.max_join_size;
5
 
set @my_mysql_protocol_buffer_length =@@global.mysql_protocol_buffer_length;
 
17
set @my_myisam_data_pointer_size  =@@global.myisam_data_pointer_size;
 
18
set @my_net_buffer_length         =@@global.net_buffer_length;
 
19
set @my_net_write_timeout         =@@global.net_write_timeout;
 
20
set @my_net_read_timeout          =@@global.net_read_timeout;
 
21
set @my_query_cache_limit         =@@global.query_cache_limit;
 
22
set @my_query_cache_type          =@@global.query_cache_type;
 
23
set @my_rpl_recovery_rank         =@@global.rpl_recovery_rank;
6
24
set @my_server_id                 =@@global.server_id;
 
25
set @my_slow_launch_time          =@@global.slow_launch_time;
7
26
set @my_storage_engine            =@@global.storage_engine;
8
 
set @my_myisam_sort_buffer_size   =@@global.myisam_sort_buffer_size;
9
 
set @my_tx_isolation      =@@global.tx_isolation;
 
27
set @my_thread_cache_size         =@@global.thread_cache_size;
10
28
set @`test`=1;
11
29
select @test, @`test`, @TEST, @`TEST`, @"teSt";
12
30
@test   @`test` @TEST   @`TEST` @"teSt"
60
78
select @t5;
61
79
@t5
62
80
1.23456
63
 
CREATE TABLE t1 (c_id INT NOT NULL, c_name VARCHAR(250), c_country VARCHAR(250), PRIMARY KEY(c_id));
 
81
CREATE TABLE t1 (c_id INT(4) NOT NULL, c_name CHAR(20), c_country CHAR(3), PRIMARY KEY(c_id));
64
82
INSERT INTO t1 VALUES (1,'Bozo','USA'),(2,'Ronald','USA'),(3,'Kinko','IRE'),(4,'Mr. Floppy','GB');
65
83
SELECT @min_cid:=min(c_id), @max_cid:=max(c_id) from t1;
66
84
@min_cid:=min(c_id)     @max_cid:=max(c_id)
84
102
show variables like 'max_join_size';
85
103
Variable_name   Value
86
104
max_join_size   100
87
 
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
 
105
select * from information_schema.session_variables where variable_name like 'max_join_size';
88
106
VARIABLE_NAME   VARIABLE_VALUE
89
 
max_join_size   100
 
107
MAX_JOIN_SIZE   100
90
108
show global variables like 'max_join_size';
91
109
Variable_name   Value
92
110
max_join_size   10
93
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
111
select * from information_schema.global_variables where variable_name like 'max_join_size';
94
112
VARIABLE_NAME   VARIABLE_VALUE
95
 
max_join_size   10
 
113
MAX_JOIN_SIZE   10
96
114
set GLOBAL max_join_size=2000;
97
115
show global variables like 'max_join_size';
98
116
Variable_name   Value
99
117
max_join_size   2000
100
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
118
select * from information_schema.global_variables where variable_name like 'max_join_size';
101
119
VARIABLE_NAME   VARIABLE_VALUE
102
 
max_join_size   2000
 
120
MAX_JOIN_SIZE   2000
103
121
set max_join_size=DEFAULT;
104
122
show variables like 'max_join_size';
105
123
Variable_name   Value
106
124
max_join_size   2000
107
 
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
 
125
select * from information_schema.session_variables where variable_name like 'max_join_size';
108
126
VARIABLE_NAME   VARIABLE_VALUE
109
 
max_join_size   2000
 
127
MAX_JOIN_SIZE   2000
110
128
set GLOBAL max_join_size=DEFAULT;
111
129
show global variables like 'max_join_size';
112
130
Variable_name   Value
113
 
max_join_size   2147483647
114
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
131
max_join_size   HA_POS_ERROR
 
132
select * from information_schema.global_variables where variable_name like 'max_join_size';
115
133
VARIABLE_NAME   VARIABLE_VALUE
116
 
max_join_size   2147483647
 
134
MAX_JOIN_SIZE   HA_POS_ERROR
117
135
set @@max_join_size=1000, @@global.max_join_size=2000;
118
136
select @@local.max_join_size, @@global.max_join_size;
119
137
@@local.max_join_size   @@global.max_join_size
140
158
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    No tables used
141
159
Warnings:
142
160
Note    1003    select 345 AS `@@IDENTITY`,last_insert_id() AS `last_insert_id()`,345 AS `@@identity`
 
161
set big_tables=OFF, big_tables=ON, big_tables=0, big_tables=1, big_tables="OFF", big_tables="ON";
 
162
set global concurrent_insert=2;
 
163
show variables like 'concurrent_insert';
 
164
Variable_name   Value
 
165
concurrent_insert       2
 
166
select * from information_schema.session_variables where variable_name like 'concurrent_insert';
 
167
VARIABLE_NAME   VARIABLE_VALUE
 
168
CONCURRENT_INSERT       2
 
169
set global concurrent_insert=1;
 
170
show variables like 'concurrent_insert';
 
171
Variable_name   Value
 
172
concurrent_insert       1
 
173
select * from information_schema.session_variables where variable_name like 'concurrent_insert';
 
174
VARIABLE_NAME   VARIABLE_VALUE
 
175
CONCURRENT_INSERT       1
 
176
set global concurrent_insert=0;
 
177
show variables like 'concurrent_insert';
 
178
Variable_name   Value
 
179
concurrent_insert       0
 
180
select * from information_schema.session_variables where variable_name like 'concurrent_insert';
 
181
VARIABLE_NAME   VARIABLE_VALUE
 
182
CONCURRENT_INSERT       0
 
183
set global concurrent_insert=DEFAULT;
 
184
select @@concurrent_insert;
 
185
@@concurrent_insert
 
186
1
143
187
set global timed_mutexes=ON;
144
188
show variables like 'timed_mutexes';
145
189
Variable_name   Value
146
190
timed_mutexes   ON
147
 
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
 
191
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
148
192
VARIABLE_NAME   VARIABLE_VALUE
149
 
timed_mutexes   ON
 
193
TIMED_MUTEXES   ON
150
194
set global timed_mutexes=0;
151
195
show variables like 'timed_mutexes';
152
196
Variable_name   Value
153
197
timed_mutexes   OFF
154
 
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
 
198
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
155
199
VARIABLE_NAME   VARIABLE_VALUE
156
 
timed_mutexes   OFF
157
 
set storage_engine=MYISAM, storage_engine="MEMORY";
 
200
TIMED_MUTEXES   OFF
 
201
set storage_engine=MYISAM, storage_engine="HEAP";
158
202
show local variables like 'storage_engine';
159
203
Variable_name   Value
160
204
storage_engine  MEMORY
161
 
select * from data_dictionary.session_variables where variable_name like 'storage_engine';
 
205
select * from information_schema.session_variables where variable_name like 'storage_engine';
162
206
VARIABLE_NAME   VARIABLE_VALUE
163
 
storage_engine  MEMORY
 
207
STORAGE_ENGINE  MEMORY
164
208
show global variables like 'storage_engine';
165
209
Variable_name   Value
166
 
storage_engine  InnoDB
167
 
select * from data_dictionary.global_variables where variable_name like 'storage_engine';
 
210
storage_engine  MyISAM
 
211
select * from information_schema.global_variables where variable_name like 'storage_engine';
168
212
VARIABLE_NAME   VARIABLE_VALUE
169
 
storage_engine  InnoDB
 
213
STORAGE_ENGINE  MyISAM
 
214
set GLOBAL query_cache_size=100000;
170
215
set GLOBAL myisam_max_sort_file_size=2000000;
171
216
show global variables like 'myisam_max_sort_file_size';
172
217
Variable_name   Value
173
 
myisam_max_sort_file_size       2000000
174
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
 
218
myisam_max_sort_file_size       1048576
 
219
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
175
220
VARIABLE_NAME   VARIABLE_VALUE
176
 
myisam_max_sort_file_size       2000000
 
221
MYISAM_MAX_SORT_FILE_SIZE       1048576
177
222
set GLOBAL myisam_max_sort_file_size=default;
178
223
show global variables like 'myisam_max_sort_file_size';
179
224
Variable_name   Value
180
 
myisam_max_sort_file_size       2147483647
181
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
182
 
VARIABLE_NAME   VARIABLE_VALUE
183
 
myisam_max_sort_file_size       2147483647
184
 
set global mysql_protocol_buffer_length=1024;
185
 
show global variables like 'mysql_protocol_buffer_%';
186
 
Variable_name   Value
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_%';
192
 
Variable_name   Value
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;
198
 
Warnings:
199
 
Error   1292    Truncated incorrect buffer_length value: '1'
200
 
show variables like 'mysql_protocol_buffer_length';
201
 
Variable_name   Value
202
 
mysql_protocol_buffer_length    1024
203
 
set global mysql_protocol_buffer_length=2000000000;
204
 
Warnings:
205
 
Error   1292    Truncated incorrect buffer_length value: '2000000000'
206
 
show variables like 'mysql_protocol_buffer_length';
207
 
Variable_name   Value
208
 
mysql_protocol_buffer_length    1048576
 
225
myisam_max_sort_file_size       FILE_SIZE
 
226
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
 
227
VARIABLE_NAME   VARIABLE_VALUE
 
228
MYISAM_MAX_SORT_FILE_SIZE       FILE_SIZE
 
229
set global net_retry_count=10, session net_retry_count=10;
 
230
set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;
 
231
set session net_buffer_length=2048, net_write_timeout=500, net_read_timeout=600;
 
232
show global variables like 'net_%';
 
233
Variable_name   Value
 
234
net_buffer_length       1024
 
235
net_read_timeout        300
 
236
net_retry_count 10
 
237
net_write_timeout       200
 
238
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
 
239
VARIABLE_NAME   VARIABLE_VALUE
 
240
NET_BUFFER_LENGTH       1024
 
241
NET_READ_TIMEOUT        300
 
242
NET_RETRY_COUNT 10
 
243
NET_WRITE_TIMEOUT       200
 
244
show session variables like 'net_%';
 
245
Variable_name   Value
 
246
net_buffer_length       2048
 
247
net_read_timeout        600
 
248
net_retry_count 10
 
249
net_write_timeout       500
 
250
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
 
251
VARIABLE_NAME   VARIABLE_VALUE
 
252
NET_BUFFER_LENGTH       2048
 
253
NET_READ_TIMEOUT        600
 
254
NET_RETRY_COUNT 10
 
255
NET_WRITE_TIMEOUT       500
 
256
set session net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;
 
257
show global variables like 'net_%';
 
258
Variable_name   Value
 
259
net_buffer_length       1024
 
260
net_read_timeout        900
 
261
net_retry_count 10
 
262
net_write_timeout       1000
 
263
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
 
264
VARIABLE_NAME   VARIABLE_VALUE
 
265
NET_BUFFER_LENGTH       1024
 
266
NET_READ_TIMEOUT        900
 
267
NET_RETRY_COUNT 10
 
268
NET_WRITE_TIMEOUT       1000
 
269
show session variables like 'net_%';
 
270
Variable_name   Value
 
271
net_buffer_length       7168
 
272
net_read_timeout        600
 
273
net_retry_count 10
 
274
net_write_timeout       500
 
275
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
 
276
VARIABLE_NAME   VARIABLE_VALUE
 
277
NET_BUFFER_LENGTH       7168
 
278
NET_READ_TIMEOUT        600
 
279
NET_RETRY_COUNT 10
 
280
NET_WRITE_TIMEOUT       500
 
281
set net_buffer_length=1;
 
282
Warnings:
 
283
Warning 1292    Truncated incorrect net_buffer_length value: '1'
 
284
show variables like 'net_buffer_length';
 
285
Variable_name   Value
 
286
net_buffer_length       1024
 
287
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
 
288
VARIABLE_NAME   VARIABLE_VALUE
 
289
NET_BUFFER_LENGTH       1024
 
290
set net_buffer_length=2000000000;
 
291
Warnings:
 
292
Warning 1292    Truncated incorrect net_buffer_length value: '2000000000'
 
293
show variables like 'net_buffer_length';
 
294
Variable_name   Value
 
295
net_buffer_length       1048576
 
296
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
 
297
VARIABLE_NAME   VARIABLE_VALUE
 
298
NET_BUFFER_LENGTH       1048576
 
299
set character set cp1251_koi8;
 
300
show variables like "character_set_client";
 
301
Variable_name   Value
 
302
character_set_client    cp1251
 
303
select * from information_schema.session_variables where variable_name like 'character_set_client';
 
304
VARIABLE_NAME   VARIABLE_VALUE
 
305
CHARACTER_SET_CLIENT    cp1251
 
306
select @@timestamp>0;
 
307
@@timestamp>0
 
308
1
 
309
set @@rand_seed1=10000000,@@rand_seed2=1000000;
 
310
select ROUND(RAND(),5);
 
311
ROUND(RAND(),5)
 
312
0.02887
209
313
show variables like '%alloc%';
210
314
Variable_name   Value
211
 
innodb_use_sys_malloc   ON
212
315
query_alloc_block_size  8192
213
316
query_prealloc_size     8192
214
317
range_alloc_block_size  4096
215
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
318
transaction_alloc_block_size    8192
 
319
transaction_prealloc_size       4096
 
320
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
216
321
VARIABLE_NAME   VARIABLE_VALUE
217
 
innodb_use_sys_malloc   ON
218
 
query_alloc_block_size  8192
219
 
query_prealloc_size     8192
220
 
range_alloc_block_size  4096
 
322
QUERY_ALLOC_BLOCK_SIZE  8192
 
323
QUERY_PREALLOC_SIZE     8192
 
324
RANGE_ALLOC_BLOCK_SIZE  4096
 
325
TRANSACTION_ALLOC_BLOCK_SIZE    8192
 
326
TRANSACTION_PREALLOC_SIZE       4096
221
327
set @@range_alloc_block_size=1024*16;
222
328
set @@query_alloc_block_size=1024*17+2;
223
329
set @@query_prealloc_size=1024*18;
 
330
set @@transaction_alloc_block_size=1024*20-1;
 
331
set @@transaction_prealloc_size=1024*21-1;
224
332
select @@query_alloc_block_size;
225
333
@@query_alloc_block_size
226
334
17408
227
335
show variables like '%alloc%';
228
336
Variable_name   Value
229
 
innodb_use_sys_malloc   ON
230
337
query_alloc_block_size  17408
231
338
query_prealloc_size     18432
232
339
range_alloc_block_size  16384
233
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
340
transaction_alloc_block_size    19456
 
341
transaction_prealloc_size       20480
 
342
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
234
343
VARIABLE_NAME   VARIABLE_VALUE
235
 
innodb_use_sys_malloc   ON
236
 
query_alloc_block_size  17408
237
 
query_prealloc_size     18432
238
 
range_alloc_block_size  16384
 
344
QUERY_ALLOC_BLOCK_SIZE  17408
 
345
QUERY_PREALLOC_SIZE     18432
 
346
RANGE_ALLOC_BLOCK_SIZE  16384
 
347
TRANSACTION_ALLOC_BLOCK_SIZE    19456
 
348
TRANSACTION_PREALLOC_SIZE       20480
239
349
set @@range_alloc_block_size=default;
240
350
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
 
351
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
241
352
show variables like '%alloc%';
242
353
Variable_name   Value
243
 
innodb_use_sys_malloc   ON
244
354
query_alloc_block_size  8192
245
355
query_prealloc_size     8192
246
356
range_alloc_block_size  4096
247
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
357
transaction_alloc_block_size    8192
 
358
transaction_prealloc_size       4096
 
359
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
248
360
VARIABLE_NAME   VARIABLE_VALUE
249
 
innodb_use_sys_malloc   ON
250
 
query_alloc_block_size  8192
251
 
query_prealloc_size     8192
252
 
range_alloc_block_size  4096
 
361
QUERY_ALLOC_BLOCK_SIZE  8192
 
362
QUERY_PREALLOC_SIZE     8192
 
363
RANGE_ALLOC_BLOCK_SIZE  4096
 
364
TRANSACTION_ALLOC_BLOCK_SIZE    8192
 
365
TRANSACTION_PREALLOC_SIZE       4096
253
366
SELECT @@version LIKE 'non-existent';
254
367
@@version LIKE 'non-existent'
255
368
0
256
369
SELECT @@version_compile_os LIKE 'non-existent';
257
370
@@version_compile_os LIKE 'non-existent'
258
371
0
 
372
set big_tables=OFFF;
 
373
ERROR 42000: Variable 'big_tables' can't be set to the value of 'OFFF'
 
374
set big_tables="OFFF";
 
375
ERROR 42000: Variable 'big_tables' can't be set to the value of 'OFFF'
259
376
set unknown_variable=1;
260
377
ERROR HY000: Unknown system variable 'unknown_variable'
261
378
set max_join_size="hello";
262
379
ERROR 42000: Incorrect argument type to variable 'max_join_size'
263
380
set storage_engine=UNKNOWN_TABLE_TYPE;
264
381
ERROR 42000: Unknown table engine 'UNKNOWN_TABLE_TYPE'
 
382
set SESSION query_cache_size=10000;
 
383
ERROR HY000: Variable 'query_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
265
384
set GLOBAL storage_engine=DEFAULT;
266
385
ERROR 42000: Variable 'storage_engine' doesn't have a default value
 
386
set character_set_client=UNKNOWN_CHARACTER_SET;
 
387
ERROR 42000: Unknown character set: 'UNKNOWN_CHARACTER_SET'
 
388
set collation_connection=UNKNOWN_COLLATION;
 
389
ERROR HY000: Unknown collation: 'UNKNOWN_COLLATION'
 
390
set character_set_client=NULL;
 
391
ERROR 42000: Variable 'character_set_client' can't be set to the value of 'NULL'
 
392
set collation_connection=NULL;
 
393
ERROR 42000: Variable 'collation_connection' can't be set to the value of 'NULL'
267
394
set global autocommit=1;
268
395
ERROR HY000: Variable 'autocommit' is a SESSION variable and can't be used with SET GLOBAL
269
396
select @@global.timestamp;
270
397
ERROR HY000: Variable 'timestamp' is a SESSION variable
271
398
set @@version='';
272
399
ERROR HY000: Variable 'version' is a read only variable
 
400
set @@concurrent_insert=1;
 
401
ERROR HY000: Variable 'concurrent_insert' is a GLOBAL variable and should be set with SET GLOBAL
 
402
set @@global.sql_auto_is_null=1;
 
403
ERROR HY000: Variable 'sql_auto_is_null' is a SESSION variable and can't be used with SET GLOBAL
 
404
select @@global.sql_auto_is_null;
 
405
ERROR HY000: Variable 'sql_auto_is_null' is a SESSION variable
273
406
set myisam_max_sort_file_size=100;
274
407
ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set with SET GLOBAL
275
408
set @@SQL_WARNINGS=NULL;
276
409
ERROR 42000: Variable 'sql_warnings' can't be set to the value of 'NULL'
277
410
set autocommit=1;
278
 
select @@autocommit;
279
 
@@autocommit
280
 
1
 
411
set big_tables=1;
 
412
select @@autocommit, @@big_tables;
 
413
@@autocommit    @@big_tables
 
414
1       1
 
415
set global binlog_cache_size=100;
 
416
Warnings:
 
417
Warning 1292    Truncated incorrect binlog_cache_size value: '100'
281
418
set bulk_insert_buffer_size=100;
 
419
set character set cp1251_koi8;
 
420
set character set default;
 
421
set @@global.concurrent_insert=1;
 
422
set global connect_timeout=100;
 
423
select @@delay_key_write;
 
424
@@delay_key_write
 
425
ON
 
426
set global delay_key_write="OFF";
 
427
select @@delay_key_write;
 
428
@@delay_key_write
 
429
OFF
 
430
set global delay_key_write=ALL;
 
431
select @@delay_key_write;
 
432
@@delay_key_write
 
433
ALL
 
434
set global delay_key_write=1;
 
435
select @@delay_key_write;
 
436
@@delay_key_write
 
437
ON
 
438
set global delayed_insert_limit=100;
 
439
set global delayed_insert_timeout=100;
 
440
set global delayed_queue_size=100;
 
441
set global flush=1;
 
442
set global flush_time=100;
 
443
set insert_id=1;
 
444
set interactive_timeout=100;
282
445
set join_buffer_size=100;
283
446
Warnings:
284
 
Error   1292    Truncated incorrect join_buffer_size value: '100'
 
447
Warning 1292    Truncated incorrect join_buffer_size value: '100'
285
448
set last_insert_id=1;
 
449
set global local_infile=1;
 
450
set long_query_time=0.000001;
 
451
select @@long_query_time;
 
452
@@long_query_time
 
453
0.000001
 
454
set long_query_time=100.000001;
 
455
select @@long_query_time;
 
456
@@long_query_time
 
457
100.000001
 
458
set low_priority_updates=1;
286
459
set max_allowed_packet=100;
287
460
Warnings:
288
 
Error   1292    Truncated incorrect max_allowed_packet value: '100'
 
461
Warning 1292    Truncated incorrect max_allowed_packet value: '100'
 
462
set global max_binlog_cache_size=100;
 
463
Warnings:
 
464
Warning 1292    Truncated incorrect max_binlog_cache_size value: '100'
 
465
set global max_binlog_size=100;
 
466
Warnings:
 
467
Warning 1292    Truncated incorrect max_binlog_size value: '100'
289
468
set global max_connect_errors=100;
 
469
set global max_connections=100;
 
470
set global max_delayed_threads=100;
290
471
set max_heap_table_size=100;
291
472
Warnings:
292
 
Error   1292    Truncated incorrect max_heap_table_size value: '100'
 
473
Warning 1292    Truncated incorrect max_heap_table_size value: '100'
293
474
set max_join_size=100;
294
475
set max_sort_length=100;
 
476
set max_tmp_tables=100;
 
477
set global max_user_connections=100;
 
478
select @@max_user_connections;
 
479
@@max_user_connections
 
480
100
295
481
set global max_write_lock_count=100;
296
 
set global myisam_sort_buffer_size=100;
297
 
Warnings:
298
 
Error   1292    Truncated incorrect sort_buffer_size value: '100'
299
 
set global mysql_protocol_buffer_length=100;
300
 
Warnings:
301
 
Error   1292    Truncated incorrect buffer_length value: '100'
 
482
set myisam_sort_buffer_size=100;
 
483
set net_buffer_length=100;
 
484
Warnings:
 
485
Warning 1292    Truncated incorrect net_buffer_length value: '100'
 
486
set net_read_timeout=100;
 
487
set net_write_timeout=100;
 
488
set global query_cache_limit=100;
 
489
set global query_cache_size=100;
 
490
set global query_cache_type=demand;
302
491
set read_buffer_size=100;
303
492
Warnings:
304
 
Error   1292    Truncated incorrect read_buffer_size value: '100'
 
493
Warning 1292    Truncated incorrect read_buffer_size value: '100'
305
494
set read_rnd_buffer_size=100;
 
495
set global rpl_recovery_rank=100;
306
496
set global server_id=100;
 
497
set global slow_launch_time=100;
307
498
set sort_buffer_size=100;
308
499
Warnings:
309
 
Error   1292    Truncated incorrect sort_buffer_size value: '100'
 
500
Warning 1292    Truncated incorrect sort_buffer_size value: '100'
 
501
set @@max_sp_recursion_depth=10;
 
502
select @@max_sp_recursion_depth;
 
503
@@max_sp_recursion_depth
 
504
10
 
505
set @@max_sp_recursion_depth=0;
 
506
select @@max_sp_recursion_depth;
 
507
@@max_sp_recursion_depth
 
508
0
 
509
set sql_auto_is_null=1;
 
510
select @@sql_auto_is_null;
 
511
@@sql_auto_is_null
 
512
1
 
513
set @@sql_auto_is_null=0;
 
514
select @@sql_auto_is_null;
 
515
@@sql_auto_is_null
 
516
0
310
517
set sql_big_selects=1;
 
518
set sql_big_tables=1;
311
519
set sql_buffer_result=1;
 
520
set sql_log_bin=1;
 
521
set sql_log_off=1;
 
522
set sql_log_update=1;
 
523
Warnings:
 
524
Note    1315    The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored
 
525
set sql_low_priority_updates=1;
 
526
set sql_max_join_size=200;
 
527
select @@sql_max_join_size,@@max_join_size;
 
528
@@sql_max_join_size     @@max_join_size
 
529
200     200
 
530
set sql_quote_show_create=1;
 
531
set sql_safe_updates=1;
312
532
set sql_select_limit=1;
313
533
set sql_select_limit=default;
314
534
set sql_warnings=1;
315
535
set global table_open_cache=100;
316
536
set storage_engine=myisam;
 
537
set global thread_cache_size=100;
317
538
set timestamp=1, timestamp=default;
318
539
set tmp_table_size=100;
319
540
Warnings:
320
 
Error   1292    Truncated incorrect tmp_table_size value: '100'
 
541
Warning 1292    Truncated incorrect tmp_table_size value: '100'
321
542
set tx_isolation="READ-COMMITTED";
 
543
set wait_timeout=100;
 
544
set log_warnings=1;
 
545
set global log_warnings=1;
 
546
select @@session.insert_id;
 
547
@@session.insert_id
 
548
1
 
549
set @save_insert_id=@@session.insert_id;
 
550
set session insert_id=20;
 
551
select @@session.insert_id;
 
552
@@session.insert_id
 
553
20
 
554
set session last_insert_id=100;
 
555
select @@session.insert_id;
 
556
@@session.insert_id
 
557
20
 
558
select @@session.last_insert_id;
 
559
@@session.last_insert_id
 
560
100
 
561
select @@session.insert_id;
 
562
@@session.insert_id
 
563
20
 
564
set @@session.insert_id=@save_insert_id;
 
565
select @@session.insert_id;
 
566
@@session.insert_id
 
567
1
 
568
create table t1 (a int not null auto_increment, primary key(a));
 
569
create table t2 (a int not null auto_increment, primary key(a));
 
570
insert into t1 values(null),(null),(null);
 
571
insert into t2 values(null),(null),(null);
 
572
set global key_buffer_size=100000;
 
573
select @@key_buffer_size;
 
574
@@key_buffer_size
 
575
98304
 
576
select * from t1 where a=2;
 
577
a
 
578
2
 
579
select * from t2 where a=3;
 
580
a
 
581
3
 
582
check table t1,t2;
 
583
Table   Op      Msg_type        Msg_text
 
584
test.t1 check   status  OK
 
585
test.t2 check   status  OK
 
586
select max(a) +1, max(a) +2 into @xx,@yy from t1;
 
587
drop table t1,t2;
 
588
select @@xxxxxxxxxx;
 
589
ERROR HY000: Unknown system variable 'xxxxxxxxxx'
 
590
select 1;
 
591
1
 
592
1
 
593
select @@session.key_buffer_size;
 
594
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable
 
595
set ft_boolean_syntax = @@init_connect;
 
596
ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBAL
 
597
set global ft_boolean_syntax = @@init_connect;
 
598
ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of ''
 
599
set init_connect = NULL;
 
600
ERROR HY000: Variable 'init_connect' is a GLOBAL variable and should be set with SET GLOBAL
 
601
set global init_connect = NULL;
 
602
set ft_boolean_syntax = @@init_connect;
 
603
ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBAL
 
604
set global ft_boolean_syntax = @@init_connect;
 
605
ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of ''
322
606
set global myisam_max_sort_file_size=4294967296;
323
607
show global variables like 'myisam_max_sort_file_size';
324
608
Variable_name   Value
325
609
myisam_max_sort_file_size       MAX_FILE_SIZE
326
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
 
610
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
327
611
VARIABLE_NAME   VARIABLE_VALUE
328
 
myisam_max_sort_file_size       MAX_FILE_SIZE
 
612
MYISAM_MAX_SORT_FILE_SIZE       MAX_FILE_SIZE
329
613
set global myisam_max_sort_file_size=default;
330
 
create temporary table t1 (
331
 
c1 int,
332
 
c2 int,
333
 
c3 int,
 
614
select @@global.max_user_connections,@@local.max_join_size;
 
615
@@global.max_user_connections   @@local.max_join_size
 
616
100     200
 
617
set @svc=@@global.max_user_connections, @svj=@@local.max_join_size;
 
618
select @@global.max_user_connections,@@local.max_join_size;
 
619
@@global.max_user_connections   @@local.max_join_size
 
620
100     200
 
621
set @@global.max_user_connections=111,@@local.max_join_size=222;
 
622
select @@global.max_user_connections,@@local.max_join_size;
 
623
@@global.max_user_connections   @@local.max_join_size
 
624
111     222
 
625
set @@global.max_user_connections=@@local.max_join_size,@@local.max_join_size=@@global.max_user_connections;
 
626
select @@global.max_user_connections,@@local.max_join_size;
 
627
@@global.max_user_connections   @@local.max_join_size
 
628
222     111
 
629
set @@global.max_user_connections=@svc, @@local.max_join_size=@svj;
 
630
select @@global.max_user_connections,@@local.max_join_size;
 
631
@@global.max_user_connections   @@local.max_join_size
 
632
100     200
 
633
set @a=1, @b=2;
 
634
set @a=@b, @b=@a;
 
635
select @a, @b;
 
636
@a      @b
 
637
2       1
 
638
set @@global.global.key_buffer_size= 1;
 
639
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size= 1' at line 1
 
640
set GLOBAL global.key_buffer_size= 1;
 
641
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size= 1' at line 1
 
642
SELECT @@global.global.key_buffer_size;
 
643
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size' at line 1
 
644
SELECT @@global.session.key_buffer_size;
 
645
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size' at line 1
 
646
SELECT @@global.local.key_buffer_size;
 
647
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size' at line 1
 
648
set @tstlw = @@log_warnings;
 
649
show global variables like 'log_warnings';
 
650
Variable_name   Value
 
651
log_warnings    1
 
652
select * from information_schema.global_variables where variable_name like 'log_warnings';
 
653
VARIABLE_NAME   VARIABLE_VALUE
 
654
LOG_WARNINGS    1
 
655
set global log_warnings = 0;
 
656
show global variables like 'log_warnings';
 
657
Variable_name   Value
 
658
log_warnings    0
 
659
select * from information_schema.global_variables where variable_name like 'log_warnings';
 
660
VARIABLE_NAME   VARIABLE_VALUE
 
661
LOG_WARNINGS    0
 
662
set global log_warnings = 42;
 
663
show global variables like 'log_warnings';
 
664
Variable_name   Value
 
665
log_warnings    42
 
666
select * from information_schema.global_variables where variable_name like 'log_warnings';
 
667
VARIABLE_NAME   VARIABLE_VALUE
 
668
LOG_WARNINGS    42
 
669
set global log_warnings = @tstlw;
 
670
show global variables like 'log_warnings';
 
671
Variable_name   Value
 
672
log_warnings    1
 
673
select * from information_schema.global_variables where variable_name like 'log_warnings';
 
674
VARIABLE_NAME   VARIABLE_VALUE
 
675
LOG_WARNINGS    1
 
676
create table t1 (
 
677
c1 tinyint,
 
678
c2 smallint,
 
679
c3 mediumint,
334
680
c4 int,
335
681
c5 bigint);
336
682
show create table t1;
337
683
Table   Create Table
338
 
t1      CREATE TEMPORARY TABLE `t1` (
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
 
684
t1      CREATE TABLE `t1` (
 
685
  `c1` tinyint(4) DEFAULT NULL,
 
686
  `c2` smallint(6) DEFAULT NULL,
 
687
  `c3` mediumint(9) DEFAULT NULL,
 
688
  `c4` int(11) DEFAULT NULL,
 
689
  `c5` bigint(20) DEFAULT NULL
 
690
) ENGINE=MyISAM DEFAULT CHARSET=latin1
345
691
drop table t1;
346
692
set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;
347
 
create temporary table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
 
693
create table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
348
694
show create table t1;
349
695
Table   Create Table
350
 
t1      CREATE TEMPORARY TABLE `t1` (
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
 
696
t1      CREATE TABLE `t1` (
 
697
  `c1` bigint(20) DEFAULT NULL,
 
698
  `c2` decimal(65,30) DEFAULT NULL,
 
699
  `c3` longtext,
 
700
  `c4` double DEFAULT NULL
 
701
) ENGINE=MyISAM DEFAULT CHARSET=latin1
356
702
drop table t1;
 
703
SET GLOBAL MYISAM_DATA_POINTER_SIZE= 7;
 
704
SHOW VARIABLES LIKE 'MYISAM_DATA_POINTER_SIZE';
 
705
Variable_name   Value
 
706
myisam_data_pointer_size        7
 
707
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'MYISAM_DATA_POINTER_SIZE';
 
708
VARIABLE_NAME   VARIABLE_VALUE
 
709
MYISAM_DATA_POINTER_SIZE        7
357
710
SET GLOBAL table_open_cache=-1;
358
711
Warnings:
359
 
Error   1292    Truncated incorrect table_open_cache value: '18446744073709551615'
 
712
Warning 1292    Truncated incorrect table_open_cache value: '0'
360
713
SHOW VARIABLES LIKE 'table_open_cache';
361
714
Variable_name   Value
362
 
table_open_cache        100
363
 
SELECT * FROM DATA_DICTIONARY.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
 
715
table_open_cache        1
 
716
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
364
717
VARIABLE_NAME   VARIABLE_VALUE
365
 
table_open_cache        100
 
718
TABLE_OPEN_CACHE        1
366
719
SET GLOBAL table_open_cache=DEFAULT;
 
720
set character_set_results=NULL;
 
721
select ifnull(@@character_set_results,"really null");
 
722
ifnull(@@character_set_results,"really null")
 
723
really null
 
724
set names latin1;
 
725
select @@have_innodb;
 
726
@@have_innodb
 
727
#
367
728
*** Various tests with LC_TIME_NAMES
368
729
*** LC_TIME_NAMES: testing case insensitivity
369
730
set @@lc_time_names='ru_ru';
457
818
select @@query_prealloc_size = @test;
458
819
@@query_prealloc_size = @test
459
820
1
 
821
set global sql_mode=repeat('a',80);
 
822
ERROR 42000: Variable 'sql_mode' can't be set to the value of 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
460
823
End of 4.1 tests
461
 
create temporary table t1 (a int);
 
824
create table t1 (a int);
462
825
select a into @x from t1;
463
826
Warnings:
464
827
Warning 1329    No data - zero rows fetched, selected, or processed
470
833
ERROR HY000: Variable 'warning_count' is a read only variable
471
834
set @@global.error_count=1;
472
835
ERROR HY000: Variable 'error_count' is a read only variable
 
836
set @@max_heap_table_size= 4294967296;
 
837
select @@max_heap_table_size > 0;
 
838
@@max_heap_table_size > 0
 
839
1
 
840
set global max_heap_table_size= 4294967296;
 
841
select @@max_heap_table_size > 0;
 
842
@@max_heap_table_size > 0
 
843
1
 
844
set @@max_heap_table_size= 4294967296;
 
845
select @@max_heap_table_size > 0;
 
846
@@max_heap_table_size > 0
 
847
1
473
848
select @@character_set_system;
474
 
ERROR HY000: Unknown system variable 'character_set_system'
475
 
set global character_set_system = utf8;
476
 
ERROR HY000: Unknown system variable 'character_set_system'
 
849
@@character_set_system
 
850
utf8
 
851
set global character_set_system = latin1;
 
852
ERROR HY000: Variable 'character_set_system' is a read only variable
477
853
set @@global.version_compile_os='234';
478
854
ERROR HY000: Variable 'version_compile_os' is a read only variable
479
 
set @@global.character_set_filesystem=utf8;
480
 
ERROR HY000: Unknown system variable 'character_set_filesystem'
481
 
set character_set_filesystem=utf8;
482
 
ERROR HY000: Unknown system variable 'character_set_filesystem'
483
 
set @sql_big_selects = @@sql_big_selects;
 
855
set character_set_filesystem=latin1;
 
856
select @@character_set_filesystem;
 
857
@@character_set_filesystem
 
858
latin1
 
859
set @@global.character_set_filesystem=latin2;
 
860
set character_set_filesystem=latin1;
 
861
select @@character_set_filesystem;
 
862
@@character_set_filesystem
 
863
latin1
 
864
set @@global.character_set_filesystem=latin2;
 
865
set character_set_filesystem=default;
 
866
select @@character_set_filesystem;
 
867
@@character_set_filesystem
 
868
latin2
 
869
set @@global.character_set_filesystem=default;
 
870
select @@global.character_set_filesystem;
 
871
@@global.character_set_filesystem
 
872
binary
 
873
set @old_sql_big_selects = @@sql_big_selects;
484
874
set @@sql_big_selects = 1;
485
875
show variables like 'sql_big_selects';
486
876
Variable_name   Value
487
877
sql_big_selects ON
488
 
set @@sql_big_selects = @sql_big_selects;
 
878
select * from information_schema.session_variables where variable_name like 'sql_big_selects';
 
879
VARIABLE_NAME   VARIABLE_VALUE
 
880
SQL_BIG_SELECTS ON
 
881
set @@sql_big_selects = @old_sql_big_selects;
489
882
set @@sql_notes = 0, @@sql_warnings = 0;
490
883
show variables like 'sql_notes';
491
884
Variable_name   Value
492
885
sql_notes       OFF
 
886
select * from information_schema.session_variables where variable_name like 'sql_notes';
 
887
VARIABLE_NAME   VARIABLE_VALUE
 
888
SQL_NOTES       OFF
493
889
show variables like 'sql_warnings';
494
890
Variable_name   Value
495
891
sql_warnings    OFF
 
892
select * from information_schema.session_variables where variable_name like 'sql_warnings';
 
893
VARIABLE_NAME   VARIABLE_VALUE
 
894
SQL_WARNINGS    OFF
496
895
set @@sql_notes = 1, @@sql_warnings = 1;
497
896
show variables like 'sql_notes';
498
897
Variable_name   Value
499
898
sql_notes       ON
 
899
select * from information_schema.session_variables where variable_name like 'sql_notes';
 
900
VARIABLE_NAME   VARIABLE_VALUE
 
901
SQL_NOTES       ON
500
902
show variables like 'sql_warnings';
501
903
Variable_name   Value
502
904
sql_warnings    ON
 
905
select * from information_schema.session_variables where variable_name like 'sql_warnings';
 
906
VARIABLE_NAME   VARIABLE_VALUE
 
907
SQL_WARNINGS    ON
 
908
select @@system_time_zone;
 
909
@@system_time_zone
 
910
#
503
911
select @@version, @@version_comment, @@version_compile_machine,
504
912
@@version_compile_os;
505
913
@@version       @@version_comment       @@version_compile_machine       @@version_compile_os
510
918
show variables like 'basedir';
511
919
Variable_name   Value
512
920
basedir #
 
921
select * from information_schema.session_variables where variable_name like 'basedir';
 
922
VARIABLE_NAME   VARIABLE_VALUE
 
923
BASEDIR #
513
924
show variables like 'datadir';
514
925
Variable_name   Value
515
926
datadir #
 
927
select * from information_schema.session_variables where variable_name like 'datadir';
 
928
VARIABLE_NAME   VARIABLE_VALUE
 
929
DATADIR #
516
930
show variables like 'tmpdir';
517
931
Variable_name   Value
518
932
tmpdir  #
 
933
select * from information_schema.session_variables where variable_name like 'tmpdir';
 
934
VARIABLE_NAME   VARIABLE_VALUE
 
935
TMPDIR  #
 
936
select @@ssl_ca, @@ssl_capath, @@ssl_cert, @@ssl_cipher, @@ssl_key;
 
937
@@ssl_ca        @@ssl_capath    @@ssl_cert      @@ssl_cipher    @@ssl_key
 
938
#       #       #       #       #
 
939
show variables like 'ssl%';
 
940
Variable_name   Value
 
941
ssl_ca  #
 
942
ssl_capath      #
 
943
ssl_cert        #
 
944
ssl_cipher      #
 
945
ssl_key #
 
946
select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
 
947
VARIABLE_NAME   VARIABLE_VALUE
 
948
SSL_CA  #
 
949
SSL_CAPATH      #
 
950
SSL_CERT        #
 
951
SSL_CIPHER      #
 
952
SSL_KEY #
 
953
select @@log_queries_not_using_indexes;
 
954
@@log_queries_not_using_indexes
 
955
0
 
956
show variables like 'log_queries_not_using_indexes';
 
957
Variable_name   Value
 
958
log_queries_not_using_indexes   OFF
 
959
select * from information_schema.session_variables where variable_name like 'log_queries_not_using_indexes';
 
960
VARIABLE_NAME   VARIABLE_VALUE
 
961
LOG_QUERIES_NOT_USING_INDEXES   OFF
519
962
select @@"";
520
 
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 '""' at line 1
 
963
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '""' at line 1
521
964
select @@&;
522
 
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 '&' at line 1
 
965
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&' at line 1
523
966
select @@@;
524
 
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 '@' at line 1
 
967
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@' at line 1
525
968
select @@hostname;
526
969
@@hostname
527
970
#
531
974
Variable_name   Value
532
975
hostname        #
533
976
End of 5.0 tests
 
977
set global binlog_cache_size         =@my_binlog_cache_size;
 
978
set global connect_timeout           =@my_connect_timeout;
 
979
set global delayed_insert_timeout    =@my_delayed_insert_timeout;
 
980
set global delayed_queue_size        =@my_delayed_queue_size;
 
981
set global flush                     =@my_flush;
534
982
set global flush_time                =@my_flush_time;
535
 
ERROR HY000: Unknown system variable 'flush_time'
 
983
set global key_buffer_size           =@my_key_buffer_size;
 
984
set global max_binlog_cache_size     =default;
 
985
set global max_binlog_size           =@my_max_binlog_size;
536
986
set global max_connect_errors        =@my_max_connect_errors;
 
987
set global max_connections           =@my_max_connections;
 
988
set global max_delayed_threads       =@my_max_delayed_threads;
537
989
set global max_heap_table_size       =@my_max_heap_table_size;
 
990
set global max_insert_delayed_threads=@my_max_insert_delayed_threads;
538
991
set global max_join_size             =@my_max_join_size;
 
992
set global max_user_connections      =default;
539
993
set global max_write_lock_count      =default;
540
 
set global mysql_protocol_buffer_length= @my_mysql_protocol_buffer_length;
 
994
set global myisam_data_pointer_size  =@my_myisam_data_pointer_size;
 
995
set global net_buffer_length         =@my_net_buffer_length;
 
996
set global net_write_timeout         =@my_net_write_timeout;
 
997
set global net_read_timeout          =@my_net_read_timeout;
 
998
set global query_cache_limit         =@my_query_cache_limit;
 
999
set global query_cache_type          =@my_query_cache_type;
 
1000
set global rpl_recovery_rank         =@my_rpl_recovery_rank;
541
1001
set global server_id                 =@my_server_id;
 
1002
set global slow_launch_time          =@my_slow_launch_time;
542
1003
set global storage_engine            =@my_storage_engine;
543
1004
set global thread_cache_size         =@my_thread_cache_size;
544
 
ERROR HY000: Unknown system variable 'thread_cache_size'
545
 
set global myisam_sort_buffer_size   =@my_myisam_sort_buffer_size;
546
 
SHOW GLOBAL VARIABLES LIKE 'max_join_size';
547
 
Variable_name   Value
548
 
max_join_size   2147483647
549
 
SHOW LOCAL VARIABLES LIKE 'max_join_size';
550
 
Variable_name   Value
551
 
max_join_size   100
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;
586
 
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';
 
1005
show global variables where Variable_name='table_definition_cache' or
 
1006
Variable_name='table_lock_wait_timeout';
587
1007
Variable_name   Value
588
1008
table_definition_cache  #
589
1009
table_lock_wait_timeout #
 
1010
 
 
1011
# --
 
1012
# -- Bug#34820: log_output can be set to illegal value.
 
1013
# --
 
1014
SET GLOBAL log_output = '';
 
1015
ERROR 42000: Variable 'log_output' can't be set to the value of ''
 
1016
SET GLOBAL log_output = 0;
 
1017
ERROR 42000: Variable 'log_output' can't be set to the value of '0'
 
1018
 
 
1019
# -- End of Bug#34820.