Backing up and exporting a database of your database server
Find out how to back up and export your database
Find out how to back up and export your database
Last updated 27th June 2022
Your database can contain a lot of essential information for your website. It is therefore important to be able to save it, or even export it.
Find out how to back up and export your database from your database server.
Please note that the CloudDB solutions do not give access to the database management system, but to the databases hosted on it.
- Please note that there is no "root" access.
- Generic SQL commands work normally, and software such as HeidiSQL, SQuirreL or Adminer is fully compatible.
Log in to your OVHcloud Control Panel and select Web Cloud
in the top navigation bar. Click Databases
, then choose the SQL instance concerned. Next, go to the Databases
tab.
In the Backups column, the number corresponds to the number of backups available for your database.
Click the ...
button to the right of the database, then click Back up now
.
Click the ...
button to the right of the database, then click Show backups
The list of available backups will appear. Click on the ...
button to the right of the backup you want to create, then click Download the backup
to retrieve this backup.
In some cases, the RAM available in your database server may not be sufficient to perform the desired import. If this is the case, we recommend using the tool available in the OVHcloud Control Panel. This will enable you to use resources external to your solution.
To export your database directly from phpMyAdmin, you will need to log in to the interface first. To do this, you can refer to our guide on connecting to a database.
Once you have logged in to phpMyAdmin, click on the name of the database you want to export, then on the Export
tab at the top.
You have two possible export modes. If you do not have a specific need, we recommend using quick mode in SQL format.
mysqldump --host=server --user=username --port=port --password=password database_name > database_name.sql
1. <?php echo "Your database is being backed up.......";
2. system("mysqldump --host=server --user=username --port=port --password=password database_name > database_name.sql");
3. echo "Completed. You can retrieve the database via FTP.";
4. ?>
In some cases, the RAM available in your database server may not be sufficient to perform the desired import. If this is the case, we recommend using the tool available in the OVHcloud Control Panel. This will enable you to use resources external to your solution.
pg_dump --host=server --port=port --user=usernmame --password=password database_name > database_name.sql
1. <?php echo "Your database is being backed up.......";
2. system("PGPASSWORD=password pg_dump --host=server --port=port --user=username --password=password database_name > database_name.sql");
3. echo "Completed. You can retrieve the database via FTP.";
4. ?>
Restoring and importing a database to your database server
Join our community of users on https://community.ovh.com/en/.
Please feel free to give any suggestions in order to improve this documentation.
Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.
Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.
Thank you. Your feedback has been received.
Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Discuss with the OVHcloud community