SET @old = @@global.max_slowlog_files;
SET GLOBAL max_slowlog_files = 0;
SELECT @@global.max_slowlog_files;
@@global.max_slowlog_files
0
SET GLOBAL max_slowlog_files = 4096;
SELECT @@global.max_slowlog_files;
@@global.max_slowlog_files
4096
SET GLOBAL max_slowlog_files = 1000;
SELECT @@global.max_slowlog_files;
@@global.max_slowlog_files
1000
SET GLOBAL max_slowlog_files = -1;
Warnings:
Warning	1292	Truncated incorrect max_slowlog_files value: '-1'
SELECT @@global.max_slowlog_files;
@@global.max_slowlog_files
0
SET GLOBAL max_slowlog_files = 102400;
SELECT @@global.max_slowlog_files;
@@global.max_slowlog_files
102400
SET GLOBAL max_slowlog_files = 102401;
Warnings:
Warning	1292	Truncated incorrect max_slowlog_files value: '102401'
SELECT @@global.max_slowlog_files;
@@global.max_slowlog_files
102400
SET @@global.max_slowlog_files = @old;
