config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/rpl/r/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/rpl/r/rpl_binlog_grant.result

include/master-slave.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
Note	####	Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
create database d1;
use d1;
create table t (s1 int) engine=innodb;
set @@autocommit=0;
start transaction;
insert into t values (1);
set @orig_sql_mode= @@sql_mode;
set sql_mode= (select replace(@@sql_mode,'NO_AUTO_CREATE_USER',''));
Warnings:
Warning	3090	Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
grant select on t to x@y;
Warnings:
Warning	1287	Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement.
set sql_mode= @orig_sql_mode;
Warnings:
Warning	3090	Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
rollback;
show grants for x@y;
Grants for x@y
GRANT USAGE ON *.* TO 'x'@'y'
GRANT SELECT ON `d1`.`t` TO 'x'@'y'
start transaction;
insert into t values (2);
revoke select on t from x@y;
commit;
select * from t;
s1
1
2
show grants for x@y;
Grants for x@y
GRANT USAGE ON *.* TO 'x'@'y'
drop user x@y;
drop database d1;
[connection master]
CREATE USER foo@localhost IDENTIFIED WITH 'mysql_native_password';
CREATE USER bar@localhost IDENTIFIED WITH 'mysql_native_password';
GRANT PROXY ON foo@localhost TO bar@localhost;
include/assert.inc [Assert that the query logged is indeed the GRANT PROXY one]
SHOW GRANTS FOR bar@localhost;
Grants for bar@localhost
GRANT USAGE ON *.* TO 'bar'@'localhost'
GRANT PROXY ON 'foo'@'localhost' TO 'bar'@'localhost'
include/sync_slave_sql_with_master.inc
[connection slave]
SHOW GRANTS FOR bar@localhost;
Grants for bar@localhost
GRANT USAGE ON *.* TO 'bar'@'localhost'
GRANT PROXY ON 'foo'@'localhost' TO 'bar'@'localhost'
[connection master]
DROP USER foo@localhost;
DROP USER bar@localhost;
include/sync_slave_sql_with_master.inc
include/rpl_end.inc

Man Man