27_ database Backup and Recovery

Source: Internet
Author: User

Backup and recovery system in operation, incremental backup, and overall backup example: Sunday overall backup, Monday to Saturday backup Day      If there is a problem in Friday, you can use the overall backup of Sunday + 周一、二, three or four incremental backup to recover. ----------------------------------------------------Backup: Backup tool: There are 3rd party fee backup tools, At present, we learn that the system comes with the backup function Mysqldumpmysqldump can export libraries, tables. Mysqldump does not need to log on to the MySQL command line. Example 1. Export the table under the WWW library     mysqldump -u user name  -p password   Library name   Table 1  table 2  table 3 >   Address/backup file name      exported is a build Table statement and insert statement.      Example 2. How to export all tables under a library     mysqldump -u user name  -p password   Library name   >  address/backup file name Example 3. How to export several libraries on a server in a library     mysqldump -u user name  -p password  -B  Library 1   Library 2  Library 3 >  address/backup file name Example 4. How to export all Library     mysqldump -u username  -p password  -A >  address/backup file name----------------------------------------------------recovery: There are two ways to recover, one is to log on to the MySQL command line , do not need to login to the MySQL command line 1. Log in to MySQL command line   ① for backup file: mysql>source  backup file address    ② for restoring a table-level backup file:msyql>use  library name     mysql>source  backup file address 2. Do not log on to the MySQL command line   ① for the recovery library-level backup file: C:\documents and settings\ Administrator>mysql -u User name  -p password  <  Library-level backup file address   ② for recovering table-level backup files:c:\documents  And settings\administrator>mysql -u User name  -p password   Library name  <  table-level backup file address


27_ database Backup and Recovery

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.