This hosting maintenance note, published on February 6, 2013, is titled "Methods for Quickly Importing/Backing Up a MySQL Database on a Linux VPS Using Commands." The actual environment and tools involved include MySQL and Linux.
Software and deployment conditions
Today, while migrating a website, I encountered a database that was over 100MB. I don't know how long it would take if I imported it online.
Domain and site configuration
However, you need to download the laozuo.sql database from outside and place it in the root directory of this website first.
Data center and resources
In this way, the problem of websites with large databases can be solved by importing and backing up the database as described above.
Parameters recorded in the original text
- Operation and maintenanceDatabase backup, website migration
Usage Environment
MySQL, Linux.
Key points to check
Migration checksSimultaneously back up website files and the database. After migration, verify the homepage, backend login, form submissions, and static resources, and finally switch DNS settings.
Data verificationWhen databases are involved, the version, character set, and number of tables should be recorded, and it should be verified that the backup can be restored in an independent environment.