| 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 |
# Case 1: Verify source_pos_wait can block RESET SLAVE ALL |
| 8 |
# |
| 9 |
[connection slave] |
| 10 |
SET debug_sync = "begin_source_pos_wait SIGNAL wait_func_begin WAIT_FOR wait_func_continue"; |
| 11 |
SELECT source_pos_wait("master-bin.000001", 10000);; |
| 12 |
[connection slave1] |
| 13 |
SET debug_sync = "now WAIT_FOR wait_func_begin"; |
| 14 |
include/stop_slave.inc |
| 15 |
RESET SLAVE ALL; |
| 16 |
[connection server_2] |
| 17 |
SET debug_sync = "now signal wait_func_continue"; |
| 18 |
[connection slave1] |
| 19 |
Warnings: |
| 20 |
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead |
| 21 |
SET debug_sync = 'RESET'; |
| 22 |
[connection slave] |
| 23 |
source_pos_wait("master-bin.000001", 10000) |
| 24 |
NULL |
| 25 |
SET debug_sync = 'RESET'; |
| 26 |
[connection master] |
| 27 |
include/save_binlog_position.inc |
| 28 |
[connection slave] |
| 29 |
CHANGE REPLICATION SOURCE TO SOURCE_LOG_FILE = "BINLOG_FILE", |
| 30 |
SOURCE_LOG_POS = BINLOG_POS, SOURCE_USER='root', |
| 31 |
SOURCE_HOST='127.0.0.1', SOURCE_PORT=MASTER_PORT; |
| 32 |
Warnings: |
| 33 |
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 34 |
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. |
| 35 |
# |
| 36 |
# Case 2: Verify wait_for_gtid_set can block RESET SLAVE ALL |
| 37 |
# |
| 38 |
[connection slave] |
| 39 |
include/start_slave.inc |
| 40 |
SET debug_sync = "begin_wait_for_gtid_set SIGNAL wait_func_begin WAIT_FOR wait_func_continue"; |
| 41 |
SELECT wait_until_sql_thread_after_gtids(CONCAT(@@GLOBAL.server_uuid, ":100")); |
| 42 |
[connection slave1] |
| 43 |
SET debug_sync = "now WAIT_FOR wait_func_begin"; |
| 44 |
include/stop_slave.inc |
| 45 |
RESET SLAVE ALL; |
| 46 |
[connection server_2] |
| 47 |
SET debug_sync = "now signal wait_func_continue"; |
| 48 |
[connection slave1] |
| 49 |
Warnings: |
| 50 |
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead |
| 51 |
SET debug_sync = 'RESET'; |
| 52 |
[connection slave] |
| 53 |
wait_until_sql_thread_after_gtids(CONCAT(@@GLOBAL.server_uuid, ":100")) |
| 54 |
NULL |
| 55 |
Warnings: |
| 56 |
Warning 1287 'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS' is deprecated and will be removed in a future release. Please use WAIT_FOR_EXECUTED_GTID_SET instead |
| 57 |
SET debug_sync = 'RESET'; |
| 58 |
[connection master] |
| 59 |
include/save_binlog_position.inc |
| 60 |
[connection slave] |
| 61 |
CHANGE REPLICATION SOURCE TO SOURCE_LOG_FILE = "BINLOG_FILE", |
| 62 |
SOURCE_LOG_POS = BINLOG_POS, SOURCE_USER='root', |
| 63 |
SOURCE_HOST='127.0.0.1', SOURCE_PORT=MASTER_PORT; |
| 64 |
Warnings: |
| 65 |
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 66 |
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. |
| 67 |
include/rpl_end.inc |