文档详情

MySQL平台数据库备份方案详细说明(MySQL platform database backup program details).doc

发布:2017-07-21约1.55万字共13页下载文档
文本预览下载声明
MySQL平台数据库备份方案详细说明(MySQL platform database backup program details) Administrators already know that tables have been destroyed. Its never a good thing to try to edit them directly with an editor such as VI or Emacs! The two primary method of backing up a database is to copy a database file directly with a mysqldump program (such as CP, CPIO, or tar). Each method has its advantages and disadvantages: Mysqldump cooperates with MySQL server. The direct copy method is performed outside the server, and you must take steps to ensure that no clients are modifying the tables you will copy. If you want to backup the database file system backup, also has the same problem: if the database table is modified in the file system backup process, inconsistent backup table file into the subject, and on the recovery table will lose its meaning. The difference between a filesystem backup and a direct copy file is the latter. You completely control the backup process so that you can take steps to ensure that the server keeps the table undisturbed. Mysqldump is slower than direct copy. Mysqldump generates text files that can be ported to other machines, even machines that have different hardware structures. Direct copy files cannot be ported to other machines unless you are copying tables using the MyISAM storage format. The ISAM table can only be copied on a machine with similar hardware structures. The MyISAM table storage format introduced in MySQL 3.23 solves the problem because the format is machine independent, so direct copy files can be ported to machines with different hardware structures. Just meet two criteria: another machine must also run MySQL 3.23 or later, and the file must be represented in MyISAM format instead of ISAM format. No matter which backup method you use, if you need to restore the database, there are several principles that should be followed to ensure the best results: Implement backup regularly. Establish a plan and adhere strictly to it. Let the server per
显示全部
相似文档