In actual work, the implementation of MySQL delayed backup bitsCN.com often happens when you accidentally delete the database or table and regret it. is there any regret? The delayed backup described today can be achieved.
Delayed backup causes slave to lag behind the master for a period of time. when a misoperation occurs, you only need to immediately stop slave synchronization, and you can easily retrieve the accidentally deleted data from the delayed backup database.
The following describes how to use mk-slave-delay in the maatkit tool to implement delayed backup.
1. Introduction to maatkit
Http://www.maatkit.org/doc/
Maatkit is a tool set that includes multiple practical MySQL tools. using them can make your MySQL server more convenient and secure. Maatkit is an open-source software. you can freely improve the software and publish your own improved version to the public.
The maatkit tool currently contains 26 tools with different functions.
Mainly include:
Mk-archiver, mk-audit, mk-find, mk-kill, mk-heartbeat, mk-query-digest, mk-parallel-dump, mk-parallel-restore, mk-show-grants, mk-slave-delay, mk-slave-move, mk-slave-restart and other tools.
Mk-slave-delay is a delayed backup tool. Mk-slave-delay controls the MySQL slave end so that it lags behind its master.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.