| 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 slave] |
| 7 |
include/stop_slave_sql.inc |
| 8 |
# Saving master position to use on UNTIL clause of START SLAVE |
| 9 |
[connection master] |
| 10 |
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
| 11 |
BEGIN; |
| 12 |
INSERT INTO t1 VALUES (1); |
| 13 |
COMMIT; |
| 14 |
include/sync_slave_io_with_master.inc |
| 15 |
# Start SQL thread until it executed the CREATE TABLE |
| 16 |
START SLAVE SQL_THREAD UNTIL SOURCE_LOG_FILE = "MASTER_FILE", SOURCE_LOG_POS = MASTER_POS; |
| 17 |
# Wait until SQL thread reaches last master binlog file |
| 18 |
include/wait_for_slave_param.inc [Relay_Master_Log_File] |
| 19 |
# Wait until SQL thread reaches desired master binlog position |
| 20 |
include/wait_for_slave_param.inc [Exec_Master_Log_Pos] |
| 21 |
# If the desired position was reached, SQL thread should stop. |
| 22 |
include/wait_for_slave_sql_to_stop.inc |
| 23 |
include/assert.inc [t1 should be replicated] |
| 24 |
include/start_slave_sql.inc |
| 25 |
[connection master] |
| 26 |
DROP TABLE t1; |
| 27 |
include/rpl_end.inc |