config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/group_replication/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/group_replication/r/gr_invoked_features.result

include/group_replication.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 server1]
CREATE TABLE t11 (a INT NOT NULL PRIMARY KEY, b INT, c VARCHAR(64)) ENGINE=innodb;
INSERT INTO t11 VALUES (1,1,'1');
INSERT INTO t11 VALUES (2,2,UUID());
CREATE TABLE t12 (a INT PRIMARY KEY, b INT, c VARCHAR(64)) ENGINE=innodb;
INSERT INTO t12 VALUES (1,1,'1');
INSERT INTO t12 VALUES (2,2,UUID());

CREATE VIEW v11 AS SELECT * FROM t11;
CREATE TRIGGER t11_tr1 BEFORE INSERT ON t11 FOR EACH ROW
BEGIN
INSERT INTO t12 VALUES (NEW.a, NEW.b, NEW.c);
INSERT INTO t13 VALUES (NEW.a, NEW.b, NEW.c);
END|
CREATE EVENT e1 ON SCHEDULE EVERY 1 SECOND DISABLE DO
BEGIN
ALTER EVENT e1 DISABLE;
CALL p11(10, '');
END|
CREATE FUNCTION f1 (x INT) RETURNS VARCHAR(64)
BEGIN
IF x > 5 THEN
RETURN UUID();
END IF;
RETURN '';
END|
CREATE PROCEDURE p11 (IN x INT, IN y VARCHAR(64))
BEGIN
INSERT IGNORE INTO t11 VALUES (x,x,y);
END|
include/rpl_sync.inc

CREATE TABLE t13(a INT NOT NULL PRIMARY KEY, b INT, c VARCHAR(64)) engine=InnoDB;
INSERT INTO t11 VALUES (3,3,'');
UPDATE t11 SET c='2' WHERE a = 1;
include/rpl_sync.inc
INSERT INTO t11 VALUES(4,4,f1(4));
INSERT INTO t11 VALUES(7,7,f1(7));
CALL p11(5, UUID());
CALL p11(10, UUID());
SET GLOBAL EVENT_SCHEDULER = on;
ALTER EVENT e1 ENABLE;
SET GLOBAL EVENT_SCHEDULER = off;
include/rpl_sync.inc

SHOW TABLES LIKE 't%';
Tables_in_test (t%)
t11
t12
t13
SELECT table_name FROM information_schema.views WHERE table_schema='test';
table_name
v11
SELECT trigger_name, event_manipulation, event_object_table FROM information_schema.triggers WHERE trigger_schema='test';
trigger_name	event_manipulation	event_object_table
t11_tr1	INSERT	t11
SELECT routine_type, routine_name FROM information_schema.routines WHERE routine_schema='test';
routine_type	routine_name
FUNCTION	f1
PROCEDURE	p11
SELECT event_name, status FROM information_schema.events WHERE event_schema='test';
event_name	status
e1	DISABLED
include/rpl_sync.inc
include/diff_tables.inc [server1:t11, server2:t11]
include/diff_tables.inc [server1:t12, server2:t12]
include/diff_tables.inc [server1:t13, server2:t13]

SHOW TABLES LIKE 't%';
Tables_in_test (t%)
t11
t12
t13
SELECT table_name FROM information_schema.views WHERE table_schema='test';
table_name
v11
SELECT trigger_name, event_manipulation, event_object_table FROM information_schema.triggers WHERE trigger_schema='test';
trigger_name	event_manipulation	event_object_table
t11_tr1	INSERT	t11
SELECT routine_type, routine_name FROM information_schema.routines WHERE routine_schema='test';
routine_type	routine_name
FUNCTION	f1
PROCEDURE	p11
SELECT event_name, status FROM information_schema.events WHERE event_schema='test';
event_name	status
e1	DISABLED
DROP VIEW IF EXISTS v11;
DROP TABLE IF EXISTS t11,t12,t13;
DROP PROCEDURE IF EXISTS p11;
DROP FUNCTION IF EXISTS f1;
DROP EVENT IF EXISTS e1;
include/group_replication_end.inc

Man Man