Debian Codegraph @

mysql-test/suite/rpl_nogtid/r/rpl_load_query_priv_check.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 #
7 # TC1. Execute Begin_load_query and Execute_load with and without the
8 # necessary privileges
9 # -------------------------------------------------------------------
10 SET @@SESSION.sql_log_bin = OFF;
11 CREATE TABLE t1 (word CHAR(20) NOT NULL);
12 SET @@SESSION.sql_log_bin = ON;
13 LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE t1;
14 include/save_master_pos.inc
15 [connection slave]
16 CALL mtr.add_suppression("The PRIVILEGE_CHECKS_USER for channel '' would need FILE");
17 CALL mtr.add_suppression(".*The replica coordinator and worker threads are stopped.*");
18 CREATE TABLE t1(word CHAR(20) NOT NULL);
19 START SLAVE;
20 Warnings:
21 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
22 include/wait_for_slave_sql_error.inc [errno=4117]
23 GRANT FILE, INSERT ON *.* TO 'u1'@'localhost';
24 START SLAVE;
25 Warnings:
26 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
27 include/sync_slave_sql.inc
28 STOP SLAVE;
29 Warnings:
30 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
31 REVOKE FILE, INSERT ON *.* FROM 'u1'@'localhost';
32 SET @@GLOBAL.DEBUG = "+d,skip_the_priv_check_in_begin_load";
33 CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_PORT=MASTER_PORT, SOURCE_HOST='127.0.0.1', PRIVILEGE_CHECKS_USER = 'u1'@'localhost', SOURCE_LOG_POS= MASTER_LOG_POS;
34 Warnings:
35 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
36 Note 1760 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.
37 START SLAVE;
38 Warnings:
39 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
40 SET DEBUG_SYNC= "now WAIT_FOR skipped_the_priv_check_in_begin_load";
41 include/wait_for_slave_sql_error.inc [errno=4117]
42 SET @@GLOBAL.DEBUG = "-d,skip_the_priv_check_in_begin_load";
43 STOP SLAVE;
44 Warnings:
45 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
46 GRANT FILE, INSERT ON *.* TO 'u1'@'localhost';
47 CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_PORT=MASTER_PORT, SOURCE_HOST='127.0.0.1', PRIVILEGE_CHECKS_USER = 'u1'@'localhost', SOURCE_LOG_POS= MASTER_LOG_POS;
48 Warnings:
49 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
50 Note 1760 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.
51 START SLAVE;
52 Warnings:
53 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
54 include/sync_slave_sql.inc
55 DROP TABLE t1;
56 STOP SLAVE;
57 Warnings:
58 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
59 REVOKE FILE, INSERT ON *.* FROM 'u1'@'localhost';
60 [connection master]
61 #
62 # TC2. Execute Begin_load_query and Delete_file with and without the
63 # necessary privileges
64 # -------------------------------------------------------------------
65 SET @@SESSION.sql_log_bin = OFF;
66 DROP TABLE t1;
67 CREATE TABLE t1 (c1 INT NOT NULL, PRIMARY KEY (c1)) ENGINE = MyISAM;
68 INSERT INTO t1 VALUES (1);
69 SET @@SESSION.sql_log_bin = ON;
70 LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/data01' INTO TABLE t1;
71 ERROR 23000: Duplicate entry '1' for key 't1.PRIMARY'
72 [connection slave]
73 CREATE TABLE t1 (c1 INT NOT NULL, PRIMARY KEY (c1)) ENGINE = MyISAM;
74 START SLAVE;
75 Warnings:
76 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
77 include/wait_for_slave_sql_error.inc [errno=4117]
78 GRANT FILE ON *.* TO 'u1'@'localhost';
79 START SLAVE;
80 Warnings:
81 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
82 include/sync_slave_sql.inc
83 STOP SLAVE;
84 Warnings:
85 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
86 REVOKE FILE ON *.* FROM 'u1'@'localhost';
87 SET @@GLOBAL.DEBUG = "+d,skip_the_priv_check_in_begin_load";
88 CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_PORT=MASTER_PORT, SOURCE_HOST='127.0.0.1', PRIVILEGE_CHECKS_USER = 'u1'@'localhost', SOURCE_LOG_POS= MASTER_LOG_POS;
89 Warnings:
90 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
91 Note 1760 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.
92 START SLAVE;
93 Warnings:
94 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
95 SET DEBUG_SYNC = "now WAIT_FOR skipped_the_priv_check_in_begin_load";
96 include/wait_for_slave_sql_error.inc [errno=4117]
97 SET @@GLOBAL.DEBUG = "-d,skip_the_priv_check_in_begin_load";
98 STOP SLAVE;
99 Warnings:
100 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
101 GRANT FILE ON *.* TO 'u1'@'localhost';
102 CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_PORT=MASTER_PORT, SOURCE_HOST='127.0.0.1', PRIVILEGE_CHECKS_USER = 'u1'@'localhost', SOURCE_LOG_POS= MASTER_LOG_POS;
103 Warnings:
104 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
105 Note 1760 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.
106 START SLAVE;
107 Warnings:
108 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
109 include/sync_slave_sql.inc
110 DROP TABLE t1;
111 STOP SLAVE;
112 Warnings:
113 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
114 DROP TABLE t1;
115 [connection master]
116 include/rpl_reset.inc
117 include/rpl_end.inc