Debian Codegraph @

mysql-test/suite/rpl/r/rpl_row_sp012.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 DROP PROCEDURE IF EXISTS test.p1;
7 DROP PROCEDURE IF EXISTS test.p2;
8 DROP PROCEDURE IF EXISTS test.p3;
9 CREATE USER user1@localhost;
10 flush privileges;
11 SELECT CURRENT_USER();
12 CURRENT_USER()
13 root@localhost
14 SELECT USER();
15 USER()
16 root@localhost
17 CREATE PROCEDURE test.p1 () SQL SECURITY INVOKER SELECT CURRENT_USER(), USER();
18 CREATE PROCEDURE test.p2 () SQL SECURITY DEFINER CALL test.p1();
19 CREATE PROCEDURE test.p3 () SQL SECURITY INVOKER CALL test.p1();
20 GRANT EXECUTE ON PROCEDURE p1 TO user1@localhost;
21 GRANT EXECUTE ON PROCEDURE p2 TO user1@localhost;
22 GRANT EXECUTE ON PROCEDURE p3 TO user1@localhost;
23 include/sync_slave_sql_with_master.inc
24
25 <******** Master user1 p3 & p2 calls *******>
26 ----------------------------------------------
27 SELECT CURRENT_USER();
28 CURRENT_USER()
29 user1@localhost
30 SELECT USER();
31 USER()
32 user1@localhost
33 CALL test.p3();
34 CURRENT_USER() USER()
35 user1@localhost user1@localhost
36 CALL test.p2();
37 CURRENT_USER() USER()
38 root@localhost user1@localhost
39
40 <******** Slave user1 p3 & p2 calls *******>
41 ---------------------------------------------
42 SELECT CURRENT_USER();
43 CURRENT_USER()
44 user1@localhost
45 SELECT USER();
46 USER()
47 user1@localhost
48 CALL test.p3();
49 CURRENT_USER() USER()
50 user1@localhost user1@localhost
51 CALL test.p2();
52 CURRENT_USER() USER()
53 root@localhost user1@localhost
54 DROP PROCEDURE IF EXISTS test.p1;
55 DROP PROCEDURE IF EXISTS test.p3;
56 DROP PROCEDURE IF EXISTS test.p2;
57 DROP TABLE IF EXISTS test.t1;
58 DROP TABLE IF EXISTS test.t2;
59 DROP USER user1@localhost;
60 include/sync_slave_sql_with_master.inc
61 include/rpl_end.inc