| 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 |
############################################################ |
| 8 |
# 1. Create a replication channel ch1 to replicate from |
| 9 |
# server2 to server1. |
| 10 |
[connection slave] |
| 11 |
CHANGE REPLICATION SOURCE TO SOURCE_HOST='127.0.0.1', SOURCE_USER='root', SOURCE_AUTO_POSITION=1, SOURCE_PORT=SERVER_1_PORT, SOURCE_CONNECT_RETRY=1, SOURCE_RETRY_COUNT=1, SOURCE_CONNECTION_AUTO_FAILOVER=1 FOR CHANNEL 'ch1'; |
| 12 |
Warnings: |
| 13 |
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 14 |
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. |
| 15 |
include/start_slave.inc [FOR CHANNEL 'ch1'] |
| 16 |
|
| 17 |
############################################################ |
| 18 |
# 2. Stop IO thread |
| 19 |
# Verify that SQL thread is running |
| 20 |
# It will be allowed. |
| 21 |
include/stop_slave_io.inc [FOR CHANNEL 'ch1'] |
| 22 |
include/assert.inc [Verify replica_monitor thread is not running] |
| 23 |
include/assert.inc [Verify replica SQL thread is running] |
| 24 |
|
| 25 |
############################################################ |
| 26 |
# 3. Clean up. |
| 27 |
include/stop_slave_sql.inc [FOR CHANNEL 'ch1'] |
| 28 |
include/rpl_reset_slave.inc |
| 29 |
include/rpl_end.inc |
| 30 |
Warnings: |
| 31 |
Note 3084 Replication thread(s) for channel '' are already stopped. |