SET @start_global_value = @@global.innodb_api_bk_commit_interval;
SELECT @start_global_value;
@start_global_value
5
Valid values are positive number
SELECT @@global.innodb_api_bk_commit_interval > 0;
@@global.innodb_api_bk_commit_interval > 0
1
SELECT @@global.innodb_api_bk_commit_interval <= 1024*1024*1024;
@@global.innodb_api_bk_commit_interval <= 1024*1024*1024
1
SELECT @@global.innodb_api_bk_commit_interval;
@@global.innodb_api_bk_commit_interval
5
SELECT @@session.innodb_api_bk_commit_interval;
ERROR HY000: Variable 'innodb_api_bk_commit_interval' is a GLOBAL variable
SHOW global variables LIKE 'innodb_api_bk_commit_interval';
Variable_name	Value
innodb_api_bk_commit_interval	5
SHOW session variables LIKE 'innodb_api_bk_commit_interval';
Variable_name	Value
innodb_api_bk_commit_interval	5
SELECT * FROM information_schema.global_variables 
WHERE variable_name='innodb_api_bk_commit_interval';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_API_BK_COMMIT_INTERVAL	5
SELECT * FROM information_schema.session_variables 
WHERE variable_name='innodb_api_bk_commit_interval';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_API_BK_COMMIT_INTERVAL	5
SET global innodb_api_bk_commit_interval=100;
SELECT @@global.innodb_api_bk_commit_interval;
@@global.innodb_api_bk_commit_interval
100
SELECT * FROM information_schema.global_variables 
WHERE variable_name='innodb_api_bk_commit_interval';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_API_BK_COMMIT_INTERVAL	100
SELECT * FROM information_schema.session_variables 
WHERE variable_name='innodb_api_bk_commit_interval';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_API_BK_COMMIT_INTERVAL	100
SET session innodb_api_bk_commit_interval=1;
ERROR HY000: Variable 'innodb_api_bk_commit_interval' is a GLOBAL variable and should be set with SET GLOBAL
SET global innodb_api_bk_commit_interval=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_api_bk_commit_interval'
SET global innodb_api_bk_commit_interval=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_api_bk_commit_interval'
SET global innodb_api_bk_commit_interval="foo";
ERROR 42000: Incorrect argument type to variable 'innodb_api_bk_commit_interval'
SET global innodb_api_bk_commit_interval=-7;
Warnings:
Warning	1292	Truncated incorrect innodb_api_bk_commit_interval value: '-7'
SELECT @@global.innodb_api_bk_commit_interval;
@@global.innodb_api_bk_commit_interval
1
SELECT * FROM information_schema.global_variables 
WHERE variable_name='innodb_api_bk_commit_interval';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_API_BK_COMMIT_INTERVAL	1
SET @@global.innodb_api_bk_commit_interval = @start_global_value;
SELECT @@global.innodb_api_bk_commit_interval;
@@global.innodb_api_bk_commit_interval
5
