Documentation Home
MySQL Backup and Recovery
Related Documentation Download this Excerpt
PDF (US Ltr) - 209.7Kb
PDF (A4) - 207.8Kb


MySQL Backup and Recovery

Abstract

This is the MySQL Backup and Recovery extract from the MySQL 8.0 Reference Manual.

For legal information, see theLegal Notices.

For help with using MySQL, please visit theMySQL Forums, where you can discuss your issues with other MySQL users.

Document generated on: 2025-12-09 (revision: 84099)


Table of Contents

Preface and Legal Notices
1 Backup and Recovery
1.1 Backup and Recovery Types
1.2 Database Backup Methods
1.3 Example Backup and Recovery Strategy
1.3.1 Establishing a Backup Policy
1.3.2 Using Backups for Recovery
1.3.3 Backup Strategy Summary
1.4 Using mysqldump for Backups
1.4.1 Dumping Data in SQL Format with mysqldump
1.4.2 Reloading SQL-Format Backups
1.4.3 Dumping Data in Delimited-Text Format with mysqldump
1.4.4 Reloading Delimited-Text Format Backups
1.4.5 mysqldump Tips
1.5 Point-in-Time (Incremental) Recovery
1.5.1 Point-in-Time Recovery Using Binary Log
1.5.2 Point-in-Time Recovery Using Event Positions
1.6 MyISAM Table Maintenance and Crash Recovery
1.6.1 Using myisamchk for Crash Recovery
1.6.2 How to Check MyISAM Tables for Errors
1.6.3 How to Repair MyISAM Tables
1.6.4 MyISAM Table Optimization
1.6.5 Setting Up a MyISAM Table Maintenance Schedule
2 Using Replication for Backups
2.1 Backing Up a Replica Using mysqldump
2.2 Backing Up Raw Data from a Replica
2.3 Backing Up a Source or Replica by Making It Read Only
3 InnoDB Backup