简体   繁体   中英

How to take db backup of mysql db without stopping mysql server

There are APIs dumping data in mysql db and I need to take mysql db backup and run data migration. I need to stop the API server which is preforming insert and might cause data to be inconsistant with the backup. Stopping API server/Mysql server makes our environment to be idle for couple of minutes. Is there any way I can do it without stopping the servers.

You can use mysqldump to dump the contents of the database. There are many guides showing how to use it, such as Dumping Data in SQL Format with mysqldump .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM