How To Back Up MySQL Databases Without Interrupting MySQL

Posted by falko on May 14, 2007 6:16 AM EDT
HowtoForge; By Falko Timme
Mail this story
Print this story

This article describes how you can back up MySQL databases without interrupting the MySQL service. Normally, when you want to create a MySQL backup, you either have to stop MySQL or issue a read lock on your MySQL tables in order to get a correct backup; if you do not do it this way, you can end up with an inconsistent backup. To get consistent backups without interrupting MySQL, I use a little trick: I replicate my MySQL database to a second MySQL server, and on the second MySQL server I use a cron job that creates regular backups of the replicated database.

This article describes how you can back up MySQL databases without interrupting the MySQL service. Normally, when you want to create a MySQL backup, you either have to stop MySQL or issue a read lock on your MySQL tables in order to get a correct backup; if you do not do it this way, you can end up with an inconsistent backup. To get consistent backups without interrupting MySQL, I use a little trick: I replicate my MySQL database to a second MySQL server, and on the second MySQL server I use a cron job that creates regular backups of the replicated database.

http://www.howtoforge.com/back_up_mysql_dbs_without_interruptions

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: MySQL

« Return to the newswire homepage

Subject Topic Starter Replies Views Last Post
Good article but... rodeoclown 0 1,487 May 14, 2007 2:09 PM

You cannot post until you login.