If your local host runs Windows, you can use the MySQL Command Line Client to back up the MySQL database of your Web Hosting instance and save the backup to a specified location on your local host.
Prerequisites
MySQL is installed on your local host.
You can download MySQL from the official MySQL website.
Background
Compared to using the MySQL Command Line Client, the Web Hosting management console provides a simpler database backup feature. For more information, see Back up and restore data.
Procedure
- Obtain the database information.
- Log on to the Web Hosting management console.
- Find your Web Hosting instance and click Manage in the Actions column.
- In the left-side navigation pane, click Database Information.
- On the Database Information page, view your database information.Note If you forget the database password, you can reset it. For more information, see Reset the database password of a Web Hosting instance.

On your local host, open a command-line window.
On the desktop of your local host, press the Win and R keys at the same time.
In the Run dialog box, enter
cmdin the Open (O) text box.
Run the following command to back up the database of your Web Hosting instance.
mysqldump -h <database_address> -u <database_username> -p --default-character-set=utf8 <database_name> > <path_to_backup_file>Replace the placeholders with their corresponding values. For example, replace
<database_address>with your database address and<path_to_backup_file>with the desired local path for the backup file.Enter the database password when prompted to complete the backup.
ImportantIf you are using MySQL version 8 on your local host, you must also add the
--column-statistics=0parameter to the command.
Results
After the command runs successfully, you can find the backup data at the specified path.