You can use Phpmyadmin in cpanel to copy a database easily.
1
Login to your hosting control panel (cPanel) and click PhpMyadmin in the databases section.
2
Select the database that you wish to copy from the main menu.I have selected example_testing database from the main menu.
5
While choosing the database name ensure that the following options are checked.
- Structure and data
- CREATE DATABASE before copying
- Add AUTO_INCREMENT value