SET @start_value_sec = @@global.binlog_expire_logs_seconds;
SELECT @start_value_sec;
@start_value_sec
0
SET @@global.binlog_expire_logs_seconds = DEFAULT;
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
0
SET @@global.binlog_expire_logs_seconds = @start_value_sec;
SELECT @@global.binlog_expire_logs_seconds = 0;
@@global.binlog_expire_logs_seconds = 0
1
SET @@global.binlog_expire_logs_seconds = 0;
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
0
SET @@global.binlog_expire_logs_seconds = 99;
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
99
SET @@global.binlog_expire_logs_seconds = 10;
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
10
SET @@global.binlog_expire_logs_seconds = 21;
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
21
SET @@global.binlog_expire_logs_seconds = -1;
Warnings:
Warning	1292	Truncated incorrect binlog_expire_logs_seconds value: '-1'
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
0
SET @@global.binlog_expire_logs_seconds = 10000.01;
ERROR 42000: Incorrect argument type to variable 'binlog_expire_logs_seconds'
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
0
SET @@global.binlog_expire_logs_seconds = -1024;
Warnings:
Warning	1292	Truncated incorrect binlog_expire_logs_seconds value: '-1024'
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
0
SET @@global.binlog_expire_logs_seconds = 42949672950;
Warnings:
Warning	1292	Truncated incorrect binlog_expire_logs_seconds value: '42949672950'
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
8553600
SET @@global.binlog_expire_logs_seconds = 8734635;
Warnings:
Warning	1292	Truncated incorrect binlog_expire_logs_seconds value: '8734635'
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
8553600
SET @@global.binlog_expire_logs_seconds = ON;
ERROR 42000: Incorrect argument type to variable 'binlog_expire_logs_seconds'
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
8553600
SET @@global.binlog_expire_logs_seconds = 'test';
ERROR 42000: Incorrect argument type to variable 'binlog_expire_logs_seconds'
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
8553600
SET @@session.binlog_expire_logs_seconds = 0;
ERROR HY000: Variable 'binlog_expire_logs_seconds' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@binlog_expire_logs_seconds;
@@binlog_expire_logs_seconds
8553600
SELECT @@global.binlog_expire_logs_seconds = VARIABLE_VALUE
FROM information_schema.global_variables
WHERE VARIABLE_NAME='binlog_expire_logs_seconds';
@@global.binlog_expire_logs_seconds = VARIABLE_VALUE
1
SELECT @@binlog_expire_logs_seconds = VARIABLE_VALUE
FROM information_schema.session_variables
WHERE VARIABLE_NAME='binlog_expire_logs_seconds';
@@binlog_expire_logs_seconds = VARIABLE_VALUE
1
SET @@global.binlog_expire_logs_seconds = TRUE;
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
1
SET @@global.binlog_expire_logs_seconds = FALSE;
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
0
SET @@global.binlog_expire_logs_seconds = 1;
SELECT @@binlog_expire_logs_seconds = @@global.binlog_expire_logs_seconds;
@@binlog_expire_logs_seconds = @@global.binlog_expire_logs_seconds
1
SET binlog_expire_logs_seconds = 1;
ERROR HY000: Variable 'binlog_expire_logs_seconds' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@binlog_expire_logs_seconds;
@@binlog_expire_logs_seconds
1
SELECT local.binlog_expire_logs_seconds;
ERROR 42S02: Unknown table 'local' in SELECT
SELECT global.binlog_expire_logs_seconds;
ERROR 42S02: Unknown table 'global' in SELECT
SELECT binlog_expire_logs_seconds = @@session.binlog_expire_logs_seconds;
ERROR 42S22: Unknown column 'binlog_expire_logs_seconds' in 'SELECT'
SET @@global.binlog_expire_logs_seconds = @start_value_sec;
SELECT @@global.binlog_expire_logs_seconds;
@@global.binlog_expire_logs_seconds
0
