Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Want it done for you?

Let the Duplicator experts migrate your WordPress site for you — quick, safe, and hassle-free.

Get Migration Help

Tips on Creating Database for Importing Backup


When installing a site with Duplicator, you need to create a database or connect to an existing one.

Below are several options to set up the database. For a full walkthrough of every screen in the installer, see The Ultimate Guide to the Installer.

Creating a new database

Option 1: Using Your Host’s Control Panel

  • Log in to your host’s control panel and navigate to the section for database management.
  • Create a new database and note down the database name.
  • Create a new database user or assign an existing user to the new database. Ensure this user has full permissions for the database, and note down the username and password.
  • Open the installer.php file generated by Duplicator and use these credentials to test the connection to the new database. If successful, proceed with the installation.

Option 2: Using Duplicator’s Database Creation Tool

  • On Step 1 of the installer, select the option for Create New Database from the Database Action dropdown.
  • Enter the name of the new database you want to create.
  • Provide the name of an existing database user with the necessary permissions.

Note: If your database server runs on a non-default port, enter it directly in the Host field using the format host:port, for example localhost:3306.

Option 3: Duplicator Pro with cPanel Integration

  • On installer Step 1, Setup section, select the CPanel tab.
  • The cPanel integration will use the cPanel API to create a new database and user.
  • Select the database and user from the dropdown boxes that appear.

Note: Most hosting providers do not support creating a new database through this option due to server restrictions.

Connecting to an existing database:

Option 4: Overwrite Mode

  • Overwrite Mode is used when you place the installer.php and archive file (.zip or .daf) into a directory where WordPress already exists.
  • This mode allows you to overwrite the existing site’s database and files with the database and files of the backup.
  • During the installation, you’ll see the existing database and user details. Confirm these details and click Apply to use the existing database settings.

Note: By default, this option overwrites the existing website files and database with the content from the backup. To skip overwriting specific database tables, enable Advanced Mode in Step 1 of the installer, then go to Step 2 → Tables tab, and uncheck the tables to exclude from being overwritten.

Option 5: Importing to the Same Site

  • When you import a backup onto the same site it was created for (rather than a different site), the installer reuses that site’s existing database settings automatically instead of asking you to enter them. See Importing a Backup using Duplicator Pro for the exact steps and which Install Type to select.

Video Resources

Follow Along Step-By-Step (starting @ 14:30 of 24:57)
How to Set Up Database in cPanel

Once your database is set up and the installer confirms the connection, move on to the rest of the installation. See The Ultimate Guide to the Installer for what comes next.


Was this article helpful?


Related Articles

Don't Let Another Day Pass Unprotected

Every hour without proper WordPress backups puts your site at risk • Every delayed WordPress migration costs you performance and growth

Get Duplicator Now
Duplicator Plugin

Wait! Don't miss your
exclusive deal!

As a customer, you get 60% OFF

Try Duplicator free on your site — see why 1.5M+ WordPress pros trust us. But don't wait — this exclusive 60% discount is only available for a limited time.

or
Get 60% Off Duplicator Pro Now →