~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/binlog/r/binlog_grant.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
reset master;
 
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 ****
 
8
[root]
 
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;
 
12
[plain]
 
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 ****
 
18
[root]
 
19
set global binlog_format = row;
 
20
set session binlog_format = row;
 
21
[plain]
 
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
 
26
**** Clean up ****
 
27
set global binlog_format = @saved_binlog_format;
 
28
drop user mysqltest_1@localhost;