mysql --- overall backup and incremental backup

 

Overall backup:

Back up the entire table or the entire database or even all databases.

Incremental backup:

Back up data within a certain range.

1. Overall backup:

Make a backup of the table:

For a table whose storage engine is myisam, you can directly copy the three files frm, myd, and myi for backup. When it needs to be restored, it can be restored by copying it back.

If the storage engine is an innodb table, it is not so simple, because the data and indexes of all tables exist together (tablespace). Once a tablespace is copied, all table data and indexes are copied along with it.

How to make a backup? You can use the mysql dump tool

First create a table and insert some data

\"></p> <p>You need to exit mysql before backup, use mysqldump -u user -p library name table name> output backup path</p> <p>Enter password and export backup file</p> <p> <img style=

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326799847&siteId=291194637