Debian Codegraph @

mysql-test/suite/sys_vars/r/read_binlog_speed_limit_grant.result

raw
1 #
2 # MDEV-21966 Bind REPLICATION SLAVE ADMIN to a number of global system variables
3 #
4 SET @global=@@global.read_binlog_speed_limit;
5 # Test that "SET read_binlog_speed_limit" is not allowed without REPLICATION SLAVE ADMIN
6 CREATE USER user1@localhost;
7 GRANT ALL PRIVILEGES ON *.* TO user1@localhost;
8 REVOKE REPLICATION SLAVE ADMIN ON *.* FROM user1@localhost;
9 connect user1,localhost,user1,,;
10 connection user1;
11 SET GLOBAL read_binlog_speed_limit=65536;
12 ERROR 42000: Access denied; you need (at least one of) the REPLICATION SLAVE ADMIN privilege(s) for this operation
13 SET read_binlog_speed_limit=65536;
14 ERROR HY000: Variable 'read_binlog_speed_limit' is a GLOBAL variable and should be set with SET GLOBAL
15 SET SESSION read_binlog_speed_limit=65536;
16 ERROR HY000: Variable 'read_binlog_speed_limit' is a GLOBAL variable and should be set with SET GLOBAL
17 disconnect user1;
18 connection default;
19 DROP USER user1@localhost;
20 # Test that "SET read_binlog_speed_limit" is allowed with REPLICATION SLAVE ADMIN
21 CREATE USER user1@localhost;
22 GRANT REPLICATION SLAVE ADMIN ON *.* TO user1@localhost;
23 connect user1,localhost,user1,,;
24 connection user1;
25 SET GLOBAL read_binlog_speed_limit=65536;
26 SET read_binlog_speed_limit=65536;
27 ERROR HY000: Variable 'read_binlog_speed_limit' is a GLOBAL variable and should be set with SET GLOBAL
28 SET SESSION read_binlog_speed_limit=65536;
29 ERROR HY000: Variable 'read_binlog_speed_limit' is a GLOBAL variable and should be set with SET GLOBAL
30 disconnect user1;
31 connection default;
32 DROP USER user1@localhost;
33 SET @@global.read_binlog_speed_limit=@global;