87
87
select * from information_schema.session_variables where variable_name like 'max_join_size';
88
88
VARIABLE_NAME VARIABLE_VALUE
90
90
show global variables like 'max_join_size';
91
91
Variable_name Value
93
93
select * from information_schema.global_variables where variable_name like 'max_join_size';
94
94
VARIABLE_NAME VARIABLE_VALUE
96
96
set GLOBAL max_join_size=2000;
97
97
show global variables like 'max_join_size';
98
98
Variable_name Value
100
100
select * from information_schema.global_variables where variable_name like 'max_join_size';
101
101
VARIABLE_NAME VARIABLE_VALUE
103
103
set max_join_size=DEFAULT;
104
104
show variables like 'max_join_size';
105
105
Variable_name Value
106
106
max_join_size 2000
107
107
select * from information_schema.session_variables where variable_name like 'max_join_size';
108
108
VARIABLE_NAME VARIABLE_VALUE
110
110
set GLOBAL max_join_size=DEFAULT;
111
111
show global variables like 'max_join_size';
112
112
Variable_name Value
113
113
max_join_size 2147483647
114
114
select * from information_schema.global_variables where variable_name like 'max_join_size';
115
115
VARIABLE_NAME VARIABLE_VALUE
116
MAX_JOIN_SIZE 2147483647
116
max_join_size 2147483647
117
117
set @@max_join_size=1000, @@global.max_join_size=2000;
118
118
select @@local.max_join_size, @@global.max_join_size;
119
119
@@local.max_join_size @@global.max_join_size
147
147
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
148
148
VARIABLE_NAME VARIABLE_VALUE
150
150
set global timed_mutexes=0;
151
151
show variables like 'timed_mutexes';
152
152
Variable_name Value
153
153
timed_mutexes OFF
154
154
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
155
155
VARIABLE_NAME VARIABLE_VALUE
157
157
set storage_engine=MYISAM, storage_engine="MEMORY";
158
158
show local variables like 'storage_engine';
159
159
Variable_name Value
160
160
storage_engine MEMORY
161
161
select * from information_schema.session_variables where variable_name like 'storage_engine';
162
162
VARIABLE_NAME VARIABLE_VALUE
163
STORAGE_ENGINE MEMORY
163
storage_engine MEMORY
164
164
show global variables like 'storage_engine';
165
165
Variable_name Value
166
166
storage_engine InnoDB
167
167
select * from information_schema.global_variables where variable_name like 'storage_engine';
168
168
VARIABLE_NAME VARIABLE_VALUE
169
STORAGE_ENGINE InnoDB
169
storage_engine InnoDB
170
170
set GLOBAL myisam_max_sort_file_size=2000000;
171
171
show global variables like 'myisam_max_sort_file_size';
172
172
Variable_name Value
173
173
myisam_max_sort_file_size 2000000
174
174
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
175
175
VARIABLE_NAME VARIABLE_VALUE
176
MYISAM_MAX_SORT_FILE_SIZE 2000000
176
myisam_max_sort_file_size 2000000
177
177
set GLOBAL myisam_max_sort_file_size=default;
178
178
show global variables like 'myisam_max_sort_file_size';
179
179
Variable_name Value
180
180
myisam_max_sort_file_size 2147483647
181
181
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
182
182
VARIABLE_NAME VARIABLE_VALUE
183
MYISAM_MAX_SORT_FILE_SIZE 2147483647
183
myisam_max_sort_file_size 2147483647
184
184
set global drizzle_protocol_buffer_length=1024;
185
185
show global variables like 'drizzle_protocol_buffer_%';
186
186
Variable_name Value
187
187
drizzle_protocol_buffer_length 1024
188
188
select * from information_schema.global_variables where variable_name like 'drizzle_protocol_buffer_%';
189
189
VARIABLE_NAME VARIABLE_VALUE
190
DRIZZLE_PROTOCOL_BUFFER_LENGTH 1024
190
drizzle_protocol_buffer_length 1024
191
191
show global variables like 'drizzle_protocol_buffer_%';
192
192
Variable_name Value
193
193
drizzle_protocol_buffer_length 1024
194
194
select * from information_schema.global_variables where variable_name like 'drizzle_protocol_buffer_%';
195
195
VARIABLE_NAME VARIABLE_VALUE
196
DRIZZLE_PROTOCOL_BUFFER_LENGTH 1024
196
drizzle_protocol_buffer_length 1024
197
197
set global drizzle_protocol_buffer_length=1;
199
199
Error 1292 Truncated incorrect buffer_length value: '1'
216
216
transaction_prealloc_size 4096
217
217
select * from information_schema.session_variables where variable_name like '%alloc%';
218
218
VARIABLE_NAME VARIABLE_VALUE
219
INNODB_USE_SYS_MALLOC ON
220
QUERY_ALLOC_BLOCK_SIZE 8192
221
QUERY_PREALLOC_SIZE 8192
222
RANGE_ALLOC_BLOCK_SIZE
223
TRANSACTION_ALLOC_BLOCK_SIZE 8192
224
TRANSACTION_PREALLOC_SIZE 4096
219
innodb_use_sys_malloc ON
220
query_alloc_block_size 8192
221
query_prealloc_size 8192
222
range_alloc_block_size
223
transaction_alloc_block_size 8192
224
transaction_prealloc_size 4096
225
225
set @@range_alloc_block_size=1024*16;
226
226
set @@query_alloc_block_size=1024*17+2;
227
227
set @@query_prealloc_size=1024*18;
240
240
transaction_prealloc_size 20480
241
241
select * from information_schema.session_variables where variable_name like '%alloc%';
242
242
VARIABLE_NAME VARIABLE_VALUE
243
INNODB_USE_SYS_MALLOC ON
244
QUERY_ALLOC_BLOCK_SIZE 17408
245
QUERY_PREALLOC_SIZE 18432
246
RANGE_ALLOC_BLOCK_SIZE
247
TRANSACTION_ALLOC_BLOCK_SIZE 19456
248
TRANSACTION_PREALLOC_SIZE 20480
243
innodb_use_sys_malloc ON
244
query_alloc_block_size 17408
245
query_prealloc_size 18432
246
range_alloc_block_size
247
transaction_alloc_block_size 19456
248
transaction_prealloc_size 20480
249
249
set @@range_alloc_block_size=default;
250
250
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
251
251
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
259
259
transaction_prealloc_size 4096
260
260
select * from information_schema.session_variables where variable_name like '%alloc%';
261
261
VARIABLE_NAME VARIABLE_VALUE
262
INNODB_USE_SYS_MALLOC ON
263
QUERY_ALLOC_BLOCK_SIZE 8192
264
QUERY_PREALLOC_SIZE 8192
265
RANGE_ALLOC_BLOCK_SIZE
266
TRANSACTION_ALLOC_BLOCK_SIZE 8192
267
TRANSACTION_PREALLOC_SIZE 4096
262
innodb_use_sys_malloc ON
263
query_alloc_block_size 8192
264
query_prealloc_size 8192
265
range_alloc_block_size
266
transaction_alloc_block_size 8192
267
transaction_prealloc_size 4096
268
268
SELECT @@version LIKE 'non-existent';
269
269
@@version LIKE 'non-existent'
369
369
myisam_max_sort_file_size MAX_FILE_SIZE
370
370
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
371
371
VARIABLE_NAME VARIABLE_VALUE
372
MYISAM_MAX_SORT_FILE_SIZE MAX_FILE_SIZE
372
myisam_max_sort_file_size MAX_FILE_SIZE
373
373
set global myisam_max_sort_file_size=default;
374
374
set @@global.global.myisam_key_cache_size= 1;
375
375
ERROR HY000: Unknown system variable 'global'