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