Debian Codegraph @

mysql-test/suite/rpl/r/rpl_sp_privileges.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 [connection master]
7 CREATE TABLE t1 (f INT NOT NULL PRIMARY KEY);
8 INSERT INTO t1 VALUES (10);
9 INSERT INTO t1 VALUES (20);
10 include/sync_slave_sql_with_master.inc
11 [connection master]
12 CREATE USER 'testuser'@'localhost';
13 GRANT CREATE ROUTINE ON test.* TO 'testuser'@'localhost';
14 GRANT REPLICATION CLIENT ON *.* TO 'testuser'@'localhost';
15 FLUSH PRIVILEGES;
16 CREATE DEFINER='testuser'@'localhost' PROCEDURE row_cnt()
17 BEGIN
18 SELECT COUNT(*) as total_rows FROM test.t1;
19 END|
20 include/sync_slave_sql_with_master.inc
21 [connection master]
22 include/assert.inc [Assert that mysql.procs_priv table is empty]
23 [connection slave]
24 include/assert.inc [Assert that mysql.procs_priv table is empty]
25 [connection master]
26 DROP PROCEDURE row_cnt;
27 include/sync_slave_sql_with_master.inc
28 [connection master]
29 CREATE PROCEDURE row_cnt()
30 BEGIN
31 SELECT COUNT(*) as total_rows FROM test.t1;
32 END|
33 include/sync_slave_sql_with_master.inc
34 [connection master]
35 include/assert.inc [Assert that mysql.procs_priv table is empty]
36 [connection slave]
37 include/assert.inc [Assert that mysql.procs_priv table is empty]
38 [connection master]
39 DROP PROCEDURE row_cnt;
40 include/sync_slave_sql_with_master.inc
41 CREATE DEFINER='testuser'@'localhost' PROCEDURE row_cnt()
42 BEGIN
43 SELECT COUNT(*) as total_rows FROM test.t1;
44 END|
45 include/sync_slave_sql_with_master.inc
46 [connection master]
47 include/assert.inc [Assert that mysql.procs_priv table has one row for testuser]
48 [connection slave]
49 include/assert.inc [Assert that mysql.procs_priv table has one row for testuser]
50 DROP PROCEDURE row_cnt;
51 include/sync_slave_sql_with_master.inc
52 CREATE PROCEDURE row_cnt()
53 BEGIN
54 SELECT COUNT(*) as total_rows FROM test.t1;
55 END|
56 include/sync_slave_sql_with_master.inc
57 [connection master]
58 include/assert.inc [Assert that mysql.procs_priv table has one row for testuser]
59 [connection slave]
60 include/assert.inc [Assert that mysql.procs_priv table has one row for testuser]
61 [connection master]
62 DROP TABLE t1;
63 DROP PROCEDURE row_cnt;
64 DROP USER 'testuser'@'localhost';
65 include/rpl_end.inc