Creating a MySQL database backup on Virtual Hosting

How do I make a backup of my MySQL database?

Log in to "cPanel""phpMyAdmin"

file

Next, select the database to be backed up on the left and click on the "Export" button in the top menu.

Important

If you select one table, the backup will be created only for that table.

file

A dialogue box will open, be sure to select the SQL database type, then click OK.

file

Wait for the database file to download to your computer.


It is also possible to export the database using console commands by connecting to the server via terminal, which can be found under Advanced.

mysqldump -uUSER -pPPASSWORD DBNAME > /path/to/DUMPFILE.sql

There is no space between the -u, -p flags and their arguments (in this case USER and PASSWORD).

  • "USER" is the database user (e.g. "f37295_wp1");

  • "PASSWORD" - database user password;

  • "DBNAME" - name of exported database (for example "f37295_wp");

  • "/path/to/" - directory path.

  • "DUMPFILE.sql" - name of the file with which the database dump in sql format will be saved.

file


Help

If you have any questions or need assistance, please contact us through the ticket system — we're always here to help!

Need help?Our engineers will help you free of charge with any question in minutesContact us