1
1
drop table if exists t1,t2;
2
set @my_connect_timeout =@@global.connect_timeout;
3
2
set @my_flush =@@global.flush;
4
3
set @my_key_buffer_size =@@global.key_buffer_size;
5
4
set @my_max_connect_errors =@@global.max_connect_errors;
6
5
set @my_max_heap_table_size =@@global.max_heap_table_size;
7
6
set @my_max_join_size =@@global.max_join_size;
8
7
set @my_net_buffer_length =@@global.net_buffer_length;
9
set @my_net_write_timeout =@@global.net_write_timeout;
10
set @my_net_read_timeout =@@global.net_read_timeout;
11
8
set @my_server_id =@@global.server_id;
12
9
set @my_storage_engine =@@global.storage_engine;
184
181
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
185
182
VARIABLE_NAME VARIABLE_VALUE
186
183
MYISAM_MAX_SORT_FILE_SIZE 2147483647
187
set global net_retry_count=10, session net_retry_count=10;
188
set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;
189
set session net_buffer_length=2048, net_write_timeout=500, net_read_timeout=600;
184
set global net_buffer_length=1024;
185
set session net_buffer_length=2048;
190
186
show global variables like 'net_%';
191
187
Variable_name Value
192
188
net_buffer_length 1024
195
net_write_timeout 200
196
189
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
197
190
VARIABLE_NAME VARIABLE_VALUE
198
191
NET_BUFFER_LENGTH 1024
201
NET_WRITE_TIMEOUT 200
202
192
show session variables like 'net_%';
203
193
Variable_name Value
204
194
net_buffer_length 2048
207
net_write_timeout 500
208
195
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
209
196
VARIABLE_NAME VARIABLE_VALUE
210
197
NET_BUFFER_LENGTH 2048
213
NET_WRITE_TIMEOUT 500
214
set session net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;
198
set session net_buffer_length=8000;
215
199
show global variables like 'net_%';
216
200
Variable_name Value
217
201
net_buffer_length 1024
220
net_write_timeout 1000
221
202
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
222
203
VARIABLE_NAME VARIABLE_VALUE
223
204
NET_BUFFER_LENGTH 1024
226
NET_WRITE_TIMEOUT 1000
227
205
show session variables like 'net_%';
228
206
Variable_name Value
229
207
net_buffer_length 7168
232
net_write_timeout 500
233
208
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
234
209
VARIABLE_NAME VARIABLE_VALUE
235
210
NET_BUFFER_LENGTH 7168
238
NET_WRITE_TIMEOUT 500
239
211
set net_buffer_length=1;
241
213
Error 1292 Truncated incorrect net_buffer_length value: '1'
375
346
set net_buffer_length=100;
377
348
Error 1292 Truncated incorrect net_buffer_length value: '100'
378
set net_read_timeout=100;
379
set net_write_timeout=100;
380
349
set read_buffer_size=100;
382
351
Error 1292 Truncated incorrect read_buffer_size value: '100'
399
368
Error 1292 Truncated incorrect tmp_table_size value: '100'
400
369
set tx_isolation="READ-COMMITTED";
401
set wait_timeout=100;
402
370
create temporary table t1 (a int not null auto_increment, primary key(a));
403
371
create temporary table t2 (a int not null auto_increment, primary key(a));
404
372
insert into t1 values(null),(null),(null);
672
639
set global myisam_data_pointer_size =@my_myisam_data_pointer_size;
673
640
ERROR 42000: Incorrect argument type to variable 'myisam_data_pointer_size'
674
641
set global net_buffer_length =@my_net_buffer_length;
675
set global net_write_timeout =@my_net_write_timeout;
676
set global net_read_timeout =@my_net_read_timeout;
677
642
set global server_id =@my_server_id;
678
643
set global storage_engine =@my_storage_engine;
679
644
set global thread_cache_size =@my_thread_cache_size;