| 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 |
SET @saved_event_scheduler= @@GLOBAL.event_scheduler; |
| 7 |
SET GLOBAL EVENT_SCHEDULER= OFF; |
| 8 |
CREATE EVENT e1 |
| 9 |
ON SCHEDULE EVERY 1 SECOND |
| 10 |
STARTS NOW() ENDS NOW() + INTERVAL 2 SECOND |
| 11 |
ON COMPLETION NOT PRESERVE |
| 12 |
DO SELECT 1; |
| 13 |
SET GLOBAL EVENT_SCHEDULER= ON; |
| 14 |
Wait until the event is dropped to disable the event scheduler again. |
| 15 |
SET GLOBAL EVENT_SCHEDULER= OFF; |
| 16 |
include/sync_slave_sql_with_master.inc |
| 17 |
[connection master] |
| 18 |
CREATE EVENT e1 |
| 19 |
ON SCHEDULE EVERY 1 SECOND |
| 20 |
STARTS NOW() ENDS NOW() + INTERVAL 3 SECOND |
| 21 |
ON COMPLETION NOT PRESERVE |
| 22 |
DO SELECT 1; |
| 23 |
include/sync_slave_sql_with_master.inc |
| 24 |
[connection master] |
| 25 |
DROP EVENT e1; |
| 26 |
SET GLOBAL EVENT_SCHEDULER= @saved_event_scheduler; |
| 27 |
include/rpl_end.inc |