• Replication enables you to maintain identical data on multiple servers. This has several benefits,
such as enabling client query load to be distributed over servers, availability of data even if a given
server is taken offline or fails, and the ability to make backups with no impact on the master by using
a slave server. See
• MySQL Cluster provides a high-availability, high-redundancy version of MySQL adapted for the
distributed computing environment. See
about MySQL Cluster backup, see
7.1. Backup and Recovery Types
This section describes the characteristics of different types of backups.
Logical Versus Physical (Raw) Backups
Logical backups save information represented as logical database structure
CREATE TABLE
consist of raw copies of the directories and files that store database contents.
Logical backup methods have these characteristics:
• The backup is done by querying the MySQL server to obtain database structure and content
information.
• Backup is slower than physical methods because the server must access database information and
convert it to logical format. If the output is written on the client side, the server must also send it to
the backup program.
• Output is larger than for physical backup, particularly when saved in text format.
• Backup and restore granularity is available at the server level (all databases), database level (all
tables in a particular database), or table level. This is true regardless of storage engine.
• The backup does not include log or configuration files, or other database-related files that are not
part of databases.
• Backups stored in logical format are machine independent and highly portable.
• Logical backups are performed with the MySQL server running. The server is not taken offline.
• Logical backup tools include the
statement. These work for any storage engine, even MEMORY.
• To restore logical backups, SQL-format dump files can be processed using the
delimited-text files, use the
Physical backup methods have these characteristics:
• The backup consists of exact copies of database directories and files. Typically this is a copy of all or
part of the MySQL data directory. Data from
their contents are not stored on disk.
• Physical backup methods are faster than logical because they involve only file copying without
conversion.
• Output is more compact than for logical backup.
• Backup and restore granularity ranges from the level of the entire data directory down to the level of
individual files. This may or may not provide for table-level granularity, depending on storage engine.
(Each
MyISAM
with other
Backup and Recovery Types
Chapter 16,
Replication.
statements) and content
mysqldump
LOAD DATA INFILE
table corresponds uniquely to a set of files, but an
tables.)
InnoDB
Chapter 17, MySQL
Section 17.5.3, "Online Backup of MySQL
(INSERT
statements or delimited-text files). Physical backups
program and the
statement or the
tables cannot be backed up this way because
MEMORY
618
Cluster. For information specifically
Cluster".
(CREATE
SELECT ... INTO OUTFILE
mysql
client.
mysqlimport
table shares file storage
InnoDB
DATABASE,
client. To load
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers