How to Duplicate a Database using phpMyAdmin

To duplicate the database follow these steps:

1. Log into cPanel >> Databases section >> phpMyAdmin menu.
 
For quick access, you may use cPanel Shortcuts in the Wvphost account.




2. Select the database from the list on the left and click the Operations option from the top bar:



3. On the next step, you need to specify a name for the new duplicate database in the Copy database to field.
Make sure the following options are selected:
'Structure and Data'
'CREATE DATABASE before copying'
'Add AUTO_INCREMENT value'

and then click the Go button:



4. Once the process is completed, you will see a message and the new database will appear in the list of the databases on the left side:




It’s also possible to copy the database manually. You need to follow these steps:

1. Log into cPanel Databases section > MySQL Databases menu:



2. Create a new database following this article. We will use “nctests_wp952_copy2” database as the newly created one.
3. Once the database is created, navigate to phpMyAdmin menu:



4. Choose the database that you need to copy. (to select the tables, checkmark Check All  under the tables) > click Export option from the top bar:



5. Select Export Method: Quick and Format: SQL
Click Go:



The selected database will be saved to your computer.

6. After that, select the newly created database from the left side of phpMyAdmin and click Import from the top bar:



7. Select the exported sql file from your computer using the Browse button and then click the Go button:



8. Once done, you will see a notification that your database was successfully imported and all the tables will appear in the new database:



NOTE: Maximum size of the database that can be imported in phpMyAdmin is 50MB. Larger databases have to be imported/exported via SSH.


That's it!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to import and export a database via SSH

You can easily import/export your database using phpMyAdmin menu in cPanel. To do so, follow the...

How to connect to a database using Sequel Pro

Although remote MySQL connection is disabled on our shared servers due to security reasons, you...

How to connect to a database using the Workbench MySQL client

Remote MySQL connection is disabled on our shared servers due to security reasons, but you can...

How to connect to database using NaviCat MySQL client

Remote MySQL connection is disabled on our Shared servers due to security reasons, but you can...

How to create and maintain MySQL Databases in cPanel

This tutorial describes the process of creating and managing MySQL Databases in cPanel. There are...