Restore MySQL database using source file method (applicable to virtual hosting and cloud hosting)
Published: 2011-03-16
Mysql database migration has many processing methods. In summary, there are two: one is to usesql statements, and this method is universal (http://www.west.cn/faq/list.asp?unid=875 ), and the other is to use source files. The simplest and most convenient is undoubtedly to restore directly using database source files, but the premise is that the database versions must be consistent; otherwise, garbled characters will appear (4.0 and 5.0 versions are incompatible), so when restoring with source files, be sure to clarifymysql version.
The database source file suffixes are .MYD .MYI .frm. Please note the file suffixes.

Use ftp software to connect to the server (ftp usage instructions), and upload the database source files to the databases directory (if the directory does not exist, create it in File Management)

After uploading, go to the hosting control panel and click “Restore mysql database from databases directory” to restore.

Cloud server: The method is the same. After uploading, just copy it to the corresponding database directory. The default path of mysql on windows systems is d:\SOFT_PHP_PACKAGE\mysql\data. Note to copy it to the directory with the corresponding database name. The default path on linux systems is: /home/wddata/var
