Sql database backup method to recover some data - large data

To get back up .gzcompressed file upload to linuxunzip the top

gzip -d  20191030_02.sql.gz

After decompression to obtain 20191030_02.sqlfiles split the file into SQL 100M each

split -b 100m 20191030_02.sql new_file

Split file contains the name of the query data table to find the corresponding data

grep " table name "   *

Finally, the command line displays the file name to download the file open if the file is divided go get his file on or next makes up a whole file with SQL editor

SQL file is very large so get recommended if small data, then directly import the new library on the line

Guess you like

Origin www.cnblogs.com/phper8/p/11820299.html