简体   繁体   English

如何在不停止mysql服务器的情况下对mysql db进行db备份

[英]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.在 mysql db 中有转储数据的 API,我需要进行 mysql db 备份并运行数据迁移。 I need to stop the API server which is preforming insert and might cause data to be inconsistant with the backup.我需要停止执行插入操作的 API 服务器,这可能会导致数据与备份不一致。 Stopping API server/Mysql server makes our environment to be idle for couple of minutes.停止 API 服务器/Mysql 服务器会使我们的环境闲置几分钟。 Is there any way I can do it without stopping the servers.有什么办法可以在不停止服务器的情况下做到这一点。

You can use mysqldump to dump the contents of the database.您可以使用mysqldump转储数据库的内容。 There are many guides showing how to use it, such as Dumping Data in SQL Format with mysqldump .有很多指南展示了如何使用它,例如使用 mysqldump 以 SQL 格式转储数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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