2
set @saved_binlog_format = @@global.binlog_format;
3
create user mysqltest_1@localhost;
4
show grants for mysqltest_1@localhost;
5
Grants for mysqltest_1@localhost
6
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
7
**** Variable SQL_LOG_BIN ****
9
set global sql_log_bin = 1;
10
ERROR HY000: Variable 'sql_log_bin' is a SESSION variable and can't be used with SET GLOBAL
11
set session sql_log_bin = 1;
13
set global sql_log_bin = 1;
14
ERROR HY000: Variable 'sql_log_bin' is a SESSION variable and can't be used with SET GLOBAL
15
set session sql_log_bin = 1;
16
ERROR 42000: Access denied; you need the SUPER privilege for this operation
17
**** Variable BINLOG_FORMAT ****
19
set global binlog_format = row;
20
set session binlog_format = row;
22
set global binlog_format = row;
23
ERROR 42000: Access denied; you need the SUPER privilege for this operation
24
set session binlog_format = row;
25
ERROR 42000: Access denied; you need the SUPER privilege for this operation
27
set global binlog_format = @saved_binlog_format;
28
drop user mysqltest_1@localhost;