1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
|
#
# WL#8688: Support ability to persist SET GLOBAL settings
#
CALL mtr.add_suppression("Failed to set up SSL because of the following *");
CALL mtr.add_suppression("One can only use the --user switch.*");
# Syntax check for PERSIST option
SET PERSIST auto_increment_increment=10;
SET @@persist.event_scheduler=0;
SET PERSIST replica_compressed_protocol=1;
# Invalid syntax cases.
SET GLOBAL PERSIST replica_compressed_protocol=1;
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 'PERSIST replica_compressed_protocol=1' at line 1
SET PERSIST @@global.replica_compressed_protocol=1;
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 '@@global.replica_compressed_protocol=1' at line 1
SET PERSIST @@session.replica_compressed_protocol=1;
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 '@@session.replica_compressed_protocol=1' at line 1
SET @@persist.@@replica_compressed_protocol=1;
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 '@@replica_compressed_protocol=1' at line 1
# Variables_info table should include info for
SET SESSION auto_increment_increment=3;
SELECT VARIABLE_NAME, VARIABLE_SOURCE
FROM performance_schema.variables_info
WHERE VARIABLE_NAME = 'auto_increment_increment';
VARIABLE_NAME VARIABLE_SOURCE
auto_increment_increment DYNAMIC
# Setting multiple variables value as PERSIST.
SET PERSIST innodb_checksum_algorithm=strict_crc32,
PERSIST innodb_default_row_format=COMPACT,
PERSIST sql_mode=ANSI_QUOTES,PERSIST innodb_fast_shutdown=0;
SET PERSIST innodb_flush_log_at_trx_commit=0,join_buffer_size=262144;
# SET PERSIST invalid case for multiple variable set.
SET PERSIST innodb_thread_concurrency=32, PERSIST innodb_write_io_threads=32,
PERSIST innodb_read_io_threads=invalid_val;
ERROR HY000: Variable 'innodb_write_io_threads' is a read only variable
# Restart server with --no-defaults.
SELECT @@global.innodb_fast_shutdown;
@@global.innodb_fast_shutdown
1
SELECT @@global.innodb_default_row_format;
@@global.innodb_default_row_format
dynamic
SELECT @@global.sql_mode;
@@global.sql_mode
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
SELECT @@global.innodb_flush_log_at_trx_commit;
@@global.innodb_flush_log_at_trx_commit
1
SELECT @@global.join_buffer_size;
@@global.join_buffer_size
262144
SELECT @@global.innodb_checksum_algorithm;
@@global.innodb_checksum_algorithm
crc32
# Return 0 rows
SELECT VARIABLE_NAME, VARIABLE_SOURCE
FROM performance_schema.variables_info
WHERE VARIABLE_SOURCE = 'PERSISTED'
ORDER BY VARIABLE_NAME;
VARIABLE_NAME VARIABLE_SOURCE
# Restart server with --defaults-file.
# Check values after restart.
SELECT @@global.innodb_fast_shutdown;
@@global.innodb_fast_shutdown
0
SELECT @@global.innodb_default_row_format;
@@global.innodb_default_row_format
compact
SELECT @@global.sql_mode;
@@global.sql_mode
ANSI_QUOTES
SELECT @@global.innodb_checksum_algorithm;
@@global.innodb_checksum_algorithm
strict_crc32
SELECT @@global.innodb_flush_log_at_trx_commit;
@@global.innodb_flush_log_at_trx_commit
0
SELECT @@global.max_digest_length;
@@global.max_digest_length
2024
SELECT @@global.join_buffer_size;
@@global.join_buffer_size
262144
SELECT @@global.sort_buffer_size;
@@global.sort_buffer_size
462144
SELECT VARIABLE_NAME,VARIABLE_SOURCE,MIN_VALUE,MAX_VALUE
FROM performance_schema.variables_info
WHERE VARIABLE_NAME IN ('innodb_fast_shutdown','sql_mode',
'innodb_default_row_format','max_digest_length',
'innodb_flush_log_at_trx_commit',
'disconnect_on_expired_password',
'innodb_checksum_algorithm')
ORDER BY VARIABLE_NAME;
VARIABLE_NAME VARIABLE_SOURCE MIN_VALUE MAX_VALUE
disconnect_on_expired_password EXPLICIT 0 0
innodb_checksum_algorithm PERSISTED 0 0
innodb_default_row_format PERSISTED 0 0
innodb_fast_shutdown PERSISTED 0 2
innodb_flush_log_at_trx_commit PERSISTED 0 2
max_digest_length EXPLICIT 0 1048576
sql_mode PERSISTED 0 0
SET PERSIST max_connections=500;
SET PERSIST autocommit=OFF;
SELECT VARIABLE_NAME, VARIABLE_SOURCE
FROM performance_schema.variables_info
WHERE VARIABLE_NAME = 'max_connections';
VARIABLE_NAME VARIABLE_SOURCE
max_connections DYNAMIC
SET GLOBAL max_connections=DEFAULT;
SELECT VARIABLE_NAME, VARIABLE_SOURCE
FROM performance_schema.variables_info
WHERE VARIABLE_NAME IN ('max_connections','autocommit');
VARIABLE_NAME VARIABLE_SOURCE
autocommit DYNAMIC
max_connections DYNAMIC
CREATE TABLE t1 (col1 INT);
DROP TABLE t1;
SET PERSIST log_bin_trust_function_creators=1;
Warnings:
Warning 1287 '@@log_bin_trust_function_creators' is deprecated and will be removed in a future release.
# SET PERSIST statement should not be bin logged.
# Show binlog events
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
binlog.000001 # Query # # use `test`; CREATE TABLE t1 (col1 INT)
binlog.000001 # Query # # use `test`; DROP TABLE "t1" /* generated by server */
SET PERSIST block_encryption_mode= 'aes-128-ecb';
SET PERSIST ft_boolean_syntax= '+ -><()~*:""&|',
PERSIST log_error_services=DEFAULT;
SET PERSIST innodb_max_dirty_pages_pct=80.99;
SET PERSIST slow_query_log=ON;
SET PERSIST slow_query_log_file='MYSQLTEST_VARDIR/log/slow_query_on.log;';
# Restart server cmd line and mysql-auto.cnf testing.
# Check values after restart.
SET PERSIST slow_query_log_file=DEFAULT;
RESET PERSIST slow_query_log_file;
SET PERSIST slow_query_log=DEFAULT;
SELECT @@global.block_encryption_mode;
@@global.block_encryption_mode
aes-128-ecb
SELECT @@global.ft_boolean_syntax;
@@global.ft_boolean_syntax
+ -><()~*:""&|
SELECT @@global.log_error_services;
@@global.log_error_services
log_filter_internal; log_sink_internal
SELECT @@global.innodb_max_dirty_pages_pct;
@@global.innodb_max_dirty_pages_pct
80.990000
SELECT VARIABLE_NAME, VARIABLE_SOURCE, MIN_VALUE, MAX_VALUE
FROM performance_schema.variables_info
WHERE VARIABLE_NAME IN ('block_encryption_mode',
'ft_boolean_syntax','log_error_services','innodb_max_dirty_pages_pct')
ORDER BY VARIABLE_NAME;
VARIABLE_NAME VARIABLE_SOURCE MIN_VALUE MAX_VALUE
block_encryption_mode PERSISTED 0 0
ft_boolean_syntax PERSISTED 0 0
innodb_max_dirty_pages_pct PERSISTED 0 99
log_error_services PERSISTED 0 0
SELECT @@global.innodb_fast_shutdown;
@@global.innodb_fast_shutdown
0
SELECT @@global.innodb_default_row_format;
@@global.innodb_default_row_format
compact
SELECT @@global.sql_mode;
@@global.sql_mode
ANSI_QUOTES
SELECT @@global.innodb_checksum_algorithm;
@@global.innodb_checksum_algorithm
strict_crc32
SELECT @@global.max_digest_length;
@@global.max_digest_length
1024
SELECT @@global.max_connections;
@@global.max_connections
500
SELECT @@global.innodb_flush_log_at_trx_commit;
@@global.innodb_flush_log_at_trx_commit
0
SELECT @@global.join_buffer_size;
@@global.join_buffer_size
262144
SELECT @@global.innodb_flush_sync;
@@global.innodb_flush_sync
1
SELECT @@global.autocommit;
@@global.autocommit
0
SELECT @@session.autocommit;
@@session.autocommit
0
SELECT VARIABLE_NAME, VARIABLE_SOURCE, MIN_VALUE, MAX_VALUE
FROM performance_schema.variables_info
WHERE VARIABLE_NAME IN ('innodb_fast_shutdown','sql_mode',
'innodb_default_row_format','max_digest_length','max_connections',
'innodb_flush_log_at_trx_commit','innodb_flush_sync',
'autocommit','innodb_checksum_algorithm')
ORDER BY VARIABLE_NAME;
VARIABLE_NAME VARIABLE_SOURCE MIN_VALUE MAX_VALUE
autocommit PERSISTED 0 0
innodb_checksum_algorithm PERSISTED 0 0
innodb_default_row_format PERSISTED 0 0
innodb_fast_shutdown PERSISTED 0 2
innodb_flush_log_at_trx_commit PERSISTED 0 2
innodb_flush_sync COMPILED 0 0
max_connections PERSISTED 1 100000
max_digest_length COMPILED 0 1048576
sql_mode PERSISTED 0 0
SELECT VARIABLE_NAME,VARIABLE_SOURCE
FROM performance_schema.variables_info
WHERE VARIABLE_SOURCE = 'LOGIN';
VARIABLE_NAME VARIABLE_SOURCE
TRUNCATE TABLE mysql.general_log;
--------------- general log ---------------------------------------
SET @old_log_output= @@global.log_output;
SET @old_general_log= @@global.general_log;
SET @old_general_log_file= @@global.general_log_file;
SET GLOBAL general_log_file = 'MYSQLTEST_VARDIR/log/persist_general.log';
SET PERSIST log_output = 'FILE,TABLE';
SET PERSIST general_log= 'ON';
SET PERSIST innodb_io_capacity=225;
SET PERSIST innodb_flush_sync=DEFAULT;
SELECT VARIABLE_NAME, VARIABLE_SOURCE
FROM performance_schema.variables_info
WHERE VARIABLE_NAME IN('innodb_io_capacity','innodb_flush_sync');
VARIABLE_NAME VARIABLE_SOURCE
innodb_flush_sync DYNAMIC
innodb_io_capacity DYNAMIC
# SET PERSIST statement should not be bin logged.
# Show binlog events
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
Show what is logged:
------ rewrite ------
SELECT argument FROM mysql.general_log WHERE argument LIKE 'SET PERSIST %';
argument
SET PERSIST general_log= 'ON'
SET PERSIST innodb_io_capacity=225
SET PERSIST innodb_flush_sync=DEFAULT
------ done ------
SET PERSIST general_log_file = 'MYSQLTEST_VARDIR/log/persist_general.log';
RESET PERSIST general_log_file;
SET PERSIST log_output=DEFAULT ,PERSIST general_log=DEFAULT;
SET GLOBAL general_log_file= @old_general_log_file;
SET GLOBAL general_log= @old_general_log;
SET GLOBAL log_output= @old_log_output;
TRUNCATE TABLE mysql.general_log;
SET PERSIST block_encryption_mode=DEFAULT, PERSIST ft_boolean_syntax=DEFAULT,
PERSIST innodb_checksum_algorithm=DEFAULT,
PERSIST log_error_services=DEFAULT,
PERSIST innodb_max_dirty_pages_pct=DEFAULT;
SET PERSIST innodb_fast_shutdown=DEFAULT,PERSIST innodb_default_row_format=DEFAULT,
PERSIST sql_mode=DEFAULT,PERSIST innodb_flush_log_at_trx_commit=DEFAULT,
PERSIST max_connections=default, PERSIST join_buffer_size=default,
PERSIST innodb_flush_sync=DEFAULT,PERSIST innodb_io_capacity=DEFAULT,
PERSIST log_bin_trust_function_creators=DEFAULT, PERSIST autocommit=DEFAULT;
Warnings:
Warning 1287 '@@log_bin_trust_function_creators' is deprecated and will be removed in a future release.
WL#9720 - SET PERSIST to capture user, host and timestamp
show create table performance_schema.variables_info;
Table Create Table
variables_info CREATE TABLE "variables_info" (
"VARIABLE_NAME" varchar(64) NOT NULL,
"VARIABLE_SOURCE" enum('COMPILED','GLOBAL','SERVER','EXPLICIT','EXTRA','USER','LOGIN','COMMAND_LINE','PERSISTED','DYNAMIC') DEFAULT 'COMPILED',
"VARIABLE_PATH" varchar(1024) DEFAULT NULL,
"MIN_VALUE" varchar(64) DEFAULT NULL,
"MAX_VALUE" varchar(64) DEFAULT NULL,
"SET_TIME" timestamp(6) NULL DEFAULT NULL,
"SET_USER" char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
"SET_HOST" char(255) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
CREATE USER 'user1'@'localhost' IDENTIFIED BY 'pass1';
GRANT ALL ON *.* TO 'user1'@'localhost';
SET @@global.max_connections = 100;
SET @@persist.event_scheduler=DEFAULT;
SET PERSIST auto_increment_increment=10;
SET PERSIST innodb_checksum_algorithm=strict_crc32;
SELECT VARIABLE_NAME, VARIABLE_SOURCE, SET_USER, SET_HOST
FROM performance_schema.variables_info
WHERE VARIABLE_NAME IN ('max_connections','event_scheduler',
'auto_increment_increment','innodb_checksum_algorithm');
VARIABLE_NAME VARIABLE_SOURCE SET_USER SET_HOST
auto_increment_increment DYNAMIC user1 localhost
event_scheduler DYNAMIC user1 localhost
innodb_checksum_algorithm DYNAMIC user1 localhost
max_connections DYNAMIC user1 localhost
RESET PERSIST auto_increment_increment;
RESET PERSIST innodb_checksum_algorithm;
SELECT VARIABLE_NAME, VARIABLE_SOURCE, SET_USER, SET_HOST
FROM performance_schema.variables_info
WHERE VARIABLE_NAME IN ('auto_increment_increment',
'innodb_checksum_algorithm');
VARIABLE_NAME VARIABLE_SOURCE SET_USER SET_HOST
auto_increment_increment DYNAMIC user1 localhost
innodb_checksum_algorithm DYNAMIC user1 localhost
select @@global.max_connections into @saved_max_connections;
select @@global.autocommit into @saved_autocommit;
CREATE USER 'internal_proxied'@'%' IDENTIFIED BY 'proxy_password';
CREATE USER 'external_u1'@'%' IDENTIFIED WITH test_plugin_server AS 'internal_proxied';
CREATE USER 'external_u2'@'%' IDENTIFIED WITH test_plugin_server AS 'internal_proxied';
GRANT PROXY ON 'internal_proxied'@'%' TO 'external_u1'@'%','external_u2'@'%';
GRANT ALL ON *.* TO 'internal_proxied'@'%';
SET @@global.max_connections=50;
SET @@global.autocommit=1;
SELECT VARIABLE_NAME, SET_USER, SET_HOST, SET_TIME from
performance_schema.variables_info where variable_name='max_connections' or
variable_name='autocommit';
VARIABLE_NAME SET_USER SET_HOST SET_TIME
autocommit external_u2 localhost #
max_connections external_u1 localhost #
# Cleanup
drop USER 'user1'@'localhost';
drop USER 'internal_proxied'@'%';
drop USER 'external_u1'@'%';
drop USER 'external_u2'@'%';
SET GLOBAL max_connections = @saved_max_connections;
SET GLOBAL autocommit = @saved_autocommit;
#
# Bug#25563891: OPTION SET BY !INCLUDE OR !INCLUDEDIR SHOWED AS 'COMPILED'
# IN P_S.VARIABLES_INFO
#
SELECT VARIABLE_NAME, VARIABLE_SOURCE
FROM performance_schema.variables_info WHERE VARIABLE_NAME IN
('sort_buffer_size', 'max_connections', 'max_digest_length',
'innodb_fast_shutdown', 'innodb_default_row_format', 'innodb_flush_log_at_trx_commit');
VARIABLE_NAME VARIABLE_SOURCE
innodb_default_row_format DYNAMIC
innodb_fast_shutdown DYNAMIC
innodb_flush_log_at_trx_commit DYNAMIC
max_connections DYNAMIC
max_digest_length COMPILED
sort_buffer_size COMPILED
SELECT @@sort_buffer_size, @@max_connections, @@max_digest_length;
@@sort_buffer_size @@max_connections @@max_digest_length
262144 100 1024
SELECT @@innodb_fast_shutdown, @@innodb_default_row_format, @@innodb_flush_log_at_trx_commit;
@@innodb_fast_shutdown @@innodb_default_row_format @@innodb_flush_log_at_trx_commit
1 dynamic 1
SELECT VARIABLE_NAME, VARIABLE_SOURCE
FROM performance_schema.variables_info WHERE VARIABLE_NAME IN
('sort_buffer_size', 'max_connections', 'max_digest_length',
'innodb_fast_shutdown', 'innodb_default_row_format', 'innodb_flush_log_at_trx_commit');
VARIABLE_NAME VARIABLE_SOURCE
innodb_default_row_format EXPLICIT
innodb_fast_shutdown EXPLICIT
innodb_flush_log_at_trx_commit EXPLICIT
max_connections EXPLICIT
max_digest_length EXPLICIT
sort_buffer_size EXPLICIT
SELECT @@sort_buffer_size, @@max_connections, @@max_digest_length;
@@sort_buffer_size @@max_connections @@max_digest_length
314156 51 2024
SELECT @@innodb_fast_shutdown, @@innodb_default_row_format, @@innodb_flush_log_at_trx_commit;
@@innodb_fast_shutdown @@innodb_default_row_format @@innodb_flush_log_at_trx_commit
1 redundant 2
# Cleanup
# Restart server with all defaults
# restart
#
# BUG#26085774: SERVER CRASHES WHEN STARTED USING CORRUPTED MYSQLD-AUTO.CNF
#
# this is the wrong format with event_scheduler value not being string
# server should fail to start
# on windows even though server fails to start return code is 0, thus expecting error to be 0 or 1
# this is the wrong format with binlog_gtid_simple_recovery value not being string
# server should fail to start
# this is the wrong format with no ',' between key/value pair
# server should fail to start
# this is the wrong format with wrong static variables group name
# server should fail to start
# this is the wrong format with group name
# server should fail to start
# start server with all defaults
# restart
#
# Bug#26100122: SERVER CRASHES WHEN SET PERSIST CALLS WITH A LONG STATEMENT
#
set @a=repeat('A',2000);
SET PERSIST init_connect=@a;;
set @b=repeat('A',24000);
SET PERSIST init_connect=@b;;
# Cleanup
SET GLOBAL init_connect=default;
RESET PERSIST;
#
# Bug#25677422: SET_TIME IN VARIABLES_INFO REFLECTS RESTART TIME FOR
# PERSISTED VARIABLES
#
RESET PERSIST;
CREATE USER bug25677422;
GRANT ALL ON *.* TO bug25677422;
SET PERSIST sort_buffer_size=256000;
SET PERSIST max_heap_table_size=999424, replica_net_timeout=124;
SET PERSIST_ONLY innodb_read_io_threads= 16;
SET PERSIST long_query_time= 8.3452;
SET PERSIST_ONLY innodb_redo_log_capacity= 8388608, ft_query_expansion_limit= 80;
SELECT VARIABLE_NAME, VARIABLE_SOURCE, SET_USER
FROM performance_schema.variables_info WHERE VARIABLE_NAME IN
('sort_buffer_size', 'max_heap_table_size', 'replica_net_timeout',
'long_query_time', 'innodb_read_io_threads', 'innodb_redo_log_capacity',
'ft_query_expansion_limit');
VARIABLE_NAME VARIABLE_SOURCE SET_USER
ft_query_expansion_limit COMPILED root
innodb_read_io_threads COMPILED bug25677422
innodb_redo_log_capacity EXPLICIT root
long_query_time DYNAMIC root
max_heap_table_size DYNAMIC bug25677422
replica_net_timeout DYNAMIC bug25677422
sort_buffer_size DYNAMIC bug25677422
SELECT VARIABLE_NAME, VARIABLE_SOURCE, SET_USER
FROM performance_schema.variables_info WHERE VARIABLE_NAME IN
('sort_buffer_size', 'max_heap_table_size', 'replica_net_timeout',
'long_query_time', 'innodb_read_io_threads', 'innodb_redo_log_capacity',
'ft_query_expansion_limit');
VARIABLE_NAME VARIABLE_SOURCE SET_USER
ft_query_expansion_limit COMPILED root
innodb_read_io_threads COMPILED bug25677422
innodb_redo_log_capacity EXPLICIT root
long_query_time DYNAMIC root
max_heap_table_size DYNAMIC bug25677422
replica_net_timeout DYNAMIC bug25677422
sort_buffer_size DYNAMIC bug25677422
# Restart server
# restart
SELECT VARIABLE_NAME FROM performance_schema.variables_info WHERE
VARIABLE_SOURCE = 'PERSISTED';
VARIABLE_NAME
ft_query_expansion_limit
innodb_read_io_threads
innodb_redo_log_capacity
long_query_time
max_heap_table_size
replica_net_timeout
slave_net_timeout
sort_buffer_size
SELECT VARIABLE_NAME, VARIABLE_SOURCE, SET_USER
FROM performance_schema.variables_info WHERE VARIABLE_NAME IN
('sort_buffer_size', 'max_heap_table_size', 'replica_net_timeout',
'long_query_time', 'innodb_read_io_threads', 'innodb_redo_log_capacity',
'ft_query_expansion_limit');
VARIABLE_NAME VARIABLE_SOURCE SET_USER
ft_query_expansion_limit PERSISTED root
innodb_read_io_threads PERSISTED bug25677422
innodb_redo_log_capacity PERSISTED root
long_query_time PERSISTED root
max_heap_table_size PERSISTED bug25677422
replica_net_timeout PERSISTED bug25677422
sort_buffer_size PERSISTED bug25677422
SELECT VARIABLE_NAME, VARIABLE_SOURCE, SET_USER
FROM performance_schema.variables_info WHERE VARIABLE_NAME IN
('sort_buffer_size', 'max_heap_table_size', 'replica_net_timeout',
'long_query_time', 'innodb_read_io_threads', 'innodb_redo_log_capacity',
'ft_query_expansion_limit');
VARIABLE_NAME VARIABLE_SOURCE SET_USER
ft_query_expansion_limit PERSISTED root
innodb_read_io_threads PERSISTED bug25677422
innodb_redo_log_capacity PERSISTED root
long_query_time PERSISTED root
max_heap_table_size PERSISTED bug25677422
replica_net_timeout PERSISTED bug25677422
sort_buffer_size PERSISTED bug25677422
DROP USER bug25677422;
RESET PERSIST;
SET GLOBAL sort_buffer_size=DEFAULT, max_heap_table_size=DEFAULT,
replica_net_timeout=DEFAULT, long_query_time=DEFAULT;
# Restart server with defaults
# restart
SELECT 'END OF TEST';
END OF TEST
END OF TEST
|