Backup Software / Backup Terms Glossary / Program Backup / MySQL Table Backup: 7 ways to backup MySQL table
Many people are interested in the question how to make a backup of a single MySQL database table, not the entire database.
This backup can be used, for example, if you exceed the size limit of the files on the hosting, where you store the database. It may also be convenient if you have a table or tables that are updated more frequently than the rest of the database - then it makes sense to do a backup of the single table more often.
Frequent backups of the heavily used data files can shorten the recovery time in some situations. Daily backups of frequently updated table spaces will reduce the number of transactions that have to be re-applied without having to do a full daily backup of the database.
There are several ways to make a backup of the MySQL table.
The "backup table" MySQL operator can make up individual database tables. That can be applied to the MyISAM table type only.
The syntax of the backup table:
BACKUP TABLE tbl_name [, tbl_name] ... TO '/way-to-backup-catalog'
Please note this operator is available in MySQL version 5.0 and earlier versions. Now, it is deprecated and the recommendation is to use the mysqlhotcopy script and the mysqldump utility.
Mysqlhotcopy is a special Perl script for MySQL backup. This script allows you to make a backup of a single database table, but it has several restrictions:
Firstly, it does not work remotely (you have to run it on the computer where the database is located).
Secondly, the script makes a backup of only certain types of tables such as MyISAM and ARCHIVE.
Thirdly, it does not work on Window systems.
The mysqldump utility is more general than the mysqlhotcopy, because it allows you to backup any type of tables. This is “built-in” utility and you do not need to download it.
Mysqldump allows you to make a backup of a single or multiple MySQL database tables. The syntax is:
mysqldump-u USER-p PASSWORD DATABASE TABLE_NAME> C: \ table_backup.sql
In some cases, the tables are stored in separate files (eg, tables MyISAM). This allows you to make a backup by simple copying all the files associated with the table (.frm, .MYD, and .MYI). You need to stop the server, or do the “read lock” (you can make copies of all files under the condition that the server is currently in the “no updates” state).
This method does not work for the InnoDB table type, because in that case MySQL can store the table data to different locations and not only in the database directory.
MySQL backup table can be done also by using special software.
MySQL Workbench is a visual development tool that includes a variety of components for graphical MySQL database administration.
MySQL Workbench allows you to make a backup of a single database table using the visual editor. To do this, go to the Server Administration, open the database and select the Data Dump. Click on your database and select a table from the list that you want to back up.
Handy Backup has a built-in plug-in that allows you to make a backup of a single MySQL database table.
The program makes a dump file for each table. This file contains all the information necessary to rebuild the table.
You can use many additional options and advantages of Handy Backup when saving MySQL tables, including such things as:
Version 8.1.2, built on 21 February 2020. 106 MBBackup Software from Novosoft LLC. 249 USD per license.
The perfect solution for one server, the Small Business edition contains the dedicated MySQL plug-in and all storage plug-ins just out of the box!
You can also buy this plug-in independently for Standard and Professional versions. In addition, you can find much more information about the plug-in on this page.
Version 8.1.2, built on 21 February 2020 106 MB
MySQL table backup is easy with a Handy Backup. Try free for 30 days!
Copyright © 2004-2020 Novosoft LLC. All rights reserved. Handy Backup software.
10685-B Hazelhurst Dr., Houston, TX 77043, United States Tel.: +1 (707) 703-13-11
Back to Top