---
title: "Duplicating the contents of one database to another"
description: "Find out how to duplicate the content of an OVHcloud database into another OVHcloud database"
url: https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/copy-database
lang: en
lastUpdated: 2026-06-08
---
# Duplicating the contents of one database to another

## Objective

Your database is a central part of building your dynamic website. During the life cycle of your website, for practical or technical reasons, you may copy the content of one database to a [Start SQL](https://www.ovhcloud.com/en-gb/web-hosting/options/start-sql/) or [Web Cloud Databases](https://www.ovhcloud.com/en-gb/web-cloud/databases/).

**This guide explains how to duplicate the content of an OVHcloud database into another OVHcloud database.**

:::info
With this feature, databases are not moved but copied. This is because the original database is not deleted automatically, as is the case with a migration process. Only the contents of the source database are duplicated for copying to the destination database.
:::

## Requirements

- You are using a [Start SQL](https://www.ovhcloud.com/en-gb/web-hosting/options/start-sql/) and/or [Web Cloud Databases](https://www.ovhcloud.com/en-gb/web-cloud/databases/) solution. The two databases concerned must be created beforehand in order to use the replication tool.
- You have sufficient rights to all database services concerned. You can find more information in our guide [Managing contacts for your services](/en/guides/account-and-service-management/account-information/managing-contacts.md).


***

### OVHcloud Control Panel Access

- **Direct link:** <ManagerLink to="/#/web/hosting">Hosting plans</ManagerLink>
- **Navigation path:** <code className="action">Web Cloud</code> > <code className="action">Hosting plans</code> > Select your web hosting plan

***


## Instructions

Before you begin, make sure that:

- Your **D**ata**b**ase **M**anagement **S**ystem (MySQL, PostgreSQL, etc.) is the same for your two databases (source and destination).
- The version of your DBMS is the same for both your databases (source and destination). Although the duplication may work with different versions, it is recommended that you use the same versions.
- The contents of the source database must not exceed the size of the destination database.

### Copy the contents of a database

This feature is available for copying:

- A [Start SQL](https://www.ovhcloud.com/en-gb/web-hosting/options/start-sql/) database (included in some of our [web hostings](https://www.ovhcloud.com/en-gb/web-hosting/) or [ordered separately](https://www.ovhcloud.com/en-gb/web-hosting/options/start-sql/)).
- A database hosted on a [Web Cloud Databases](https://www.ovhcloud.com/en-gb/web-cloud/databases/) server (included with our **Performance**, **Agency**, **Agency Plus** and **Agency Max** [web hosting plans](https://www.ovhcloud.com/en-gb/web-hosting/) or [ordered separately](https://www.ovhcloud.com/en-gb/web-cloud/databases/)).

Depending on your situation, the path to your source database is different.

**Click on your situation to view the content.**



From a Start SQL database

Click on the tabs below to view each of the **6** steps.

**Step 1**

Go to the <ManagerLink to="/#/web/hosting">Hosting plans</ManagerLink> page, then select the web hosting plan concerned.
![Web Hosting](/images/assets/screens/control-panel/product-selection/web-cloud/hosting-plans.png)

**Step 2**

Click on the <code className="action">Databases</code> tab. The table lists the databases created on your web hosting plan.
![Start SQL DB list](/images/assets/screens/control-panel/product-selection/web-cloud/web-hosting/databases/sharedsql-dashboard-db-list.png)

**Step 3**

Click the <code className="action">...</code> button to the right of the row of the database you want to copy, then select <code className="action">Copy database</code>.
![Copy database button](/images/assets/screens/control-panel/product-selection/web-cloud/web-cloud-databases/databases/copy-db-tool.png)

**Step 4**

A window will prompt you to choose your destination database.
![Database copy destination selection](/images/assets/screens/control-panel/product-selection/web-cloud/web-hosting/databases/copy-db-tool-step-1.png):::info
If you do not have a destination database, click the link in the window to purchase one. Remember to activate it:
- For a Shared SQL database: follow our guide [Creating a database on your web hosting plan](/en/guides/web-cloud/web-hosting/sql-create-database.md).
- For a database on a Web Cloud Databases server: follow our guide [Creating a database on a Web Cloud Databases server](/en/guides/web-cloud/databases/db-create-databases-users.md).
:::
- **Choice 1 - Copy to a Start SQL database**: select <code className="action">Copy to database</code>, then choose the destination database from the drop-down list.
- **Choice 2 - Copy to a Web Cloud Databases server**: select <code className="action">Copy to a Web Cloud Database</code>. Two drop-down lists appear. Click the first one to select the Web Cloud Databases solution, then click the second one to choose the destination database.


**Step 5**

Click <code className="action">Next</code>. The following confirmation message is displayed:
![Copy DB confirmation message](/images/assets/screens/control-panel/product-selection/web-cloud/web-hosting/databases/copy-db-tool-step-2.png)If you do not want to overwrite the destination database, click <code className="action">Back</code> to change your choice, or <code className="action">Cancel</code> to cancel everything. Otherwise, click <code className="action">Confirm</code> to confirm the duplication.


**Step 6**

The copy may take several minutes. In the <code className="action">Ongoing tasks</code> tab, a new row for your copy will appear with a "scheduled" status. Once the operation is complete, the row disappears.
![Ongoing tasks](/images/assets/screens/control-panel/product-selection/web-cloud/web-hosting/databases/copy-db-tool-ongoing-tasks.png)




From a Web Cloud Databases server

Click on the tabs below to view each of the **6** steps.

**Step 1**

Go to the <ManagerLink to="/#/web/web/private_database">Web Cloud Databases</ManagerLink> page, then select the solution concerned.
![Web Cloud Databases](/images/assets/screens/control-panel/product-selection/web-cloud/web-cloud-databases.png)

**Step 2**

Click on the <code className="action">Databases</code> tab. The list of databases on your Web Cloud Databases server is displayed.
![Web Cloud Databases database list](/images/assets/screens/control-panel/product-selection/web-cloud/web-cloud-databases/databases/wcdb-dashboard-db-list.png)

**Step 3**

Click the <code className="action">...</code> button to the right of the row of the database you want to copy, then select <code className="action">Copy database</code>.
![Copy database button](/images/assets/screens/control-panel/product-selection/web-cloud/web-cloud-databases/databases/copy-db-tool.png)

**Step 4**

A window will prompt you to choose your destination database.
![Database copy destination selection](/images/assets/screens/control-panel/product-selection/web-cloud/web-hosting/databases/copy-db-tool-step-1.png):::info
If you do not have a destination database, click the link in the window to purchase one. Remember to activate it:
- For a Shared SQL database: follow our guide [Creating a database on your web hosting plan](/en/guides/web-cloud/web-hosting/sql-create-database.md).
- For a database on a Web Cloud Databases server: follow our guide [Creating a database on a Web Cloud Databases server](/en/guides/web-cloud/databases/db-create-databases-users.md).
:::
- **Choice 1 - Copy to a Start SQL database**: select <code className="action">Copy to database</code>, then choose the destination database from the drop-down list.
- **Choice 2 - Copy to a Web Cloud Databases server**: select <code className="action">Copy to a Web Cloud Database</code>. Two drop-down lists appear. Click the first one to select the Web Cloud Databases solution, then click the second one to choose the destination database.


**Step 5**

Click <code className="action">Next</code>. The following confirmation message is displayed:
![Copy DB confirmation message](/images/assets/screens/control-panel/product-selection/web-cloud/web-hosting/databases/copy-db-tool-step-2.png)If you do not want to overwrite the destination database, click <code className="action">Back</code> to change your choice, or <code className="action">Cancel</code> to cancel everything. Otherwise, click <code className="action">Confirm</code> to confirm the duplication.


**Step 6**

The copy may take several minutes. In the <code className="action">Ongoing tasks</code> tab, a new row for your copy will appear with a "scheduled" status. Once the operation is complete, the row disappears.
![Ongoing tasks](/images/assets/screens/control-panel/product-selection/web-cloud/web-hosting/databases/copy-db-tool-ongoing-tasks.png)


### Configuring your website with a new database

Once you have made a copy of your source database, you will need to take a final action if you want to use your new database.

In the `Ongoing tasks
` tab, ensure that the duplication is complete (the line corresponding to your copy has disappeared).
To connect the new database to your website, edit the configuration file for your **C**ontent **M**anagement **S**ystem (**CMS**) and enter the connection information for the new database.

:::warning
It is recommended that you make a copy of your website's configuration file before editing it. This ensures that you can replace the new version of the file with the old one if your configuration fails.
:::

For example, if you use WordPress, you will need to modify the _wp-config.php_ configuration file in the root folder of your WordPress application, in your hosting plan's storage space (FTP), then update the following fields:

- DB\_NAME
- DB\_USER
- DB\_PASSWORD
- DB\_HOST

For more details, or if you are using another CMS, please refer to our guide on [Changing the password for a web hosting plan database](/en/guides/web-cloud/web-hosting/sql-change-password.md).

:::info
Copying your database is not a migration. Your source database still exists until you delete it. This way, you can still reconfigure your website with its old database if necessary.
:::

### Troubleshooting

During the process of copying the contents of the database, you may encounter difficulties.

**Click on your situation to view the content.**


No databases are displayed in the list

This means that you only have one active database. To copy your source database, you also need an active destination database. To do this, you can:
- Configure a new database available on your web hosting plan.
- Configure a new database on your [Web Cloud Databases](https://www.ovhcloud.com/en-gb/web-cloud/databases/) server.
- Order a [Start SQL](https://www.ovhcloud.com/en-gb/web-hosting/options/start-sql/) solution or a [Web Cloud Databases](https://www.ovhcloud.com/en-gb/web-cloud/databases/) database server.


You already have an action in progress

This message means that a task is already in progress on your database. Go to the <code className="action">Ongoing tasks</code> tab to check this. If so, wait for the task to finish, then restart the duplication process of your database.


The destination database does not contain enough space

Your destination database is not of a sufficient size. There are two ways to resolve this:
- Order a new [Start SQL](https://www.ovhcloud.com/en-gb/web-hosting/options/start-sql/) database with more space.
- If you have a [Web Cloud Databases](https://www.ovhcloud.com/en-gb/web-cloud/databases/) server, switch to a Web Cloud Databases solution with more storage space.


The source and destination databases are incompatible

This notification means that the **D**ata**b**ase **M**anagement **S**ystem (**DBMS**) in your source database is not the same as the DBMS in your destination database.
For example, this error can occur when you use MySQL for your source database, and PostgreSQL for your destination database.

## Go further

[Log in to the OVHcloud Control Panel](/en/guides/account-and-service-management/account-information/ovhcloud-account-login.md)

[Back up and export a database on your database server](/en/guides/web-cloud/databases/db-backup-export-database-server.md)

[Restore and import a database on your database server](/en/guides/web-cloud/databases/db-restore-import-database.md)

[Retrieve the backup of a web hosting plan's database](/en/guides/web-cloud/web-hosting/sql-database-export.md)

[Import a backup into a web hosting database](/en/guides/web-cloud/web-hosting/sql-importing-mysql-database.md)

For specialised services (SEO, development, etc.), contact [OVHcloud partners](https://partner.ovhcloud.com/en-gb/directory/).

If you would like assistance using and configuring your OVHcloud solutions, please refer to our [support offers](https://www.ovhcloud.com/en-gb/support-levels/).

Join our [community of users](https://community.ovhcloud.com/).
