| 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 |
CREATE TABLE t1 (c1 INT); |
| 7 |
include/sync_slave_sql_with_master.inc |
| 8 |
[connection master] |
| 9 |
SET @saved_expire_logs_days= @@GLOBAL.expire_logs_days; |
| 10 |
Warnings: |
| 11 |
Warning 1287 '@@expire_logs_days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. |
| 12 |
SET @saved_binlog_expire_logs_seconds= @@GLOBAL.binlog_expire_logs_seconds; |
| 13 |
SET @@GLOBAL.expire_logs_days= 0; |
| 14 |
Warnings: |
| 15 |
Warning 1287 '@@expire_logs_days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. |
| 16 |
SET @@GLOBAL.binlog_expire_logs_seconds= 1; |
| 17 |
[connection master1] |
| 18 |
LOCK INSTANCE FOR BACKUP; |
| 19 |
[connection slave] |
| 20 |
LOCK INSTANCE FOR BACKUP; |
| 21 |
[connection master] |
| 22 |
FLUSH LOCAL LOGS; |
| 23 |
INSERT INTO t1 VALUES (1); |
| 24 |
INSERT INTO t1 VALUES (2); |
| 25 |
INSERT INTO t1 VALUES (3); |
| 26 |
FLUSH LOCAL LOGS; |
| 27 |
INSERT INTO t1 VALUES (4); |
| 28 |
INSERT INTO t1 VALUES (5); |
| 29 |
INSERT INTO t1 VALUES (6); |
| 30 |
FLUSH LOCAL LOGS; |
| 31 |
INSERT INTO t1 VALUES (7); |
| 32 |
include/sync_slave_sql_with_master.inc |
| 33 |
[connection master] |
| 34 |
FLUSH LOCAL LOGS; |
| 35 |
INSERT INTO t1 VALUES (8); |
| 36 |
include/sync_slave_sql_with_master.inc |
| 37 |
SHOW RELAYLOG EVENTS IN 'FIRST_RELAY_LOG_FILE'; |
| 38 |
SHOW RELAYLOG EVENTS IN 'LAST_RELAY_LOG_FILE'; |
| 39 |
[connection master] |
| 40 |
include/assert.inc [1st binary log file should still be available] |
| 41 |
include/assert.inc [2nd binary log file should still be available] |
| 42 |
include/assert.inc [3rd binary log file should still be available] |
| 43 |
[connection slave] |
| 44 |
UNLOCK INSTANCE; |
| 45 |
[connection master1] |
| 46 |
UNLOCK INSTANCE; |
| 47 |
FLUSH LOCAL LOGS; |
| 48 |
include/assert.inc [1st to 3rd binary log file should be not available] |
| 49 |
DROP TABLE t1; |
| 50 |
include/sync_slave_sql_with_master.inc |
| 51 |
SHOW RELAYLOG EVENTS IN 'FIRST_RELAY_LOG_FILE'; |
| 52 |
SHOW RELAYLOG EVENTS IN 'LAST_RELAY_LOG_FILE'; |
| 53 |
[connection master] |
| 54 |
SET @@GLOBAL.binlog_expire_logs_seconds= @saved_binlog_expire_logs_seconds; |
| 55 |
SET @@GLOBAL.expire_logs_days= @saved_expire_logs_days; |
| 56 |
Warnings: |
| 57 |
Warning 1287 '@@expire_logs_days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. |
| 58 |
include/rpl_end.inc |