Debian Codegraph @

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

raw
1 #
2 #
3 #
4 # Test that "SET binlog_format" is not allowed without BINLOG ADMIN
5 CREATE USER user1@localhost;
6 GRANT ALL PRIVILEGES ON *.* TO user1@localhost;
7 REVOKE BINLOG ADMIN ON *.* FROM user1@localhost;
8 connect user1,localhost,user1,,;
9 connection user1;
10 SET binlog_format=mixed;
11 ERROR 42000: Access denied; you need (at least one of) the BINLOG ADMIN privilege(s) for this operation
12 SET GLOBAL binlog_format=mixed;
13 ERROR 42000: Access denied; you need (at least one of) the BINLOG ADMIN privilege(s) for this operation
14 SET SESSION binlog_format=mixed;
15 ERROR 42000: Access denied; you need (at least one of) the BINLOG ADMIN privilege(s) for this operation
16 disconnect user1;
17 connection default;
18 DROP USER user1@localhost;
19 # Test that "SET binlog_format" is allowed with BINLOG ADMIN
20 CREATE USER user1@localhost;
21 GRANT BINLOG ADMIN ON *.* TO user1@localhost;
22 connect user1,localhost,user1,,;
23 connection user1;
24 SET binlog_format=mixed;
25 SET GLOBAL binlog_format=mixed;
26 SET SESSION binlog_format=mixed;
27 disconnect user1;
28 connection default;
29 DROP USER user1@localhost;