phpMyAdmin: 7 Essential Steps for Safer Database Moves
Export, import, copy and reconnect your database with a recovery plan.
Export, import, copy and reconnect your database with a recovery plan.
Use phpMyAdmin to export a recovery copy, import an SQL file and copy database tables. On cPanel hosting, create and manage databases through cPanel first, then use phpMyAdmin for their contents. This guide also explains how to approach a rename or a data merge without treating either as a routine copy.
Identify the application, source database and intended destination. Record the full names displayed in your hosting panel, including any account prefix. Check the database server versions and available storage before moving data between servers.
Download a recovery copy before importing into an existing database or renaming anything. Keep SQL files outside public website folders: they can contain customer records, password hashes and other private data. For an existing website move, also back up its files using our cPanel backup and migration guide.
Arrange a maintenance window or an application-supported consistent backup method if the source is receiving orders, messages or other writes. A download completing does not prove that the backup can be restored; test it in a separate destination.
Quick export can be convenient, but do not assume every export method captures every object your application needs. Review the options for your installed version. See the official phpMyAdmin import and export documentation.
Open Databases → Manage My Databases, or use Database Wizard for a new database and user. Older cPanel versions call the management screen MySQL Databases.
cPanel specifically warns against creating databases or database users directly in phpMyAdmin because they may not be mapped correctly for account backup and restoration. Follow its Manage My Databases guidance rather than selecting a database-creation checkbox in phpMyAdmin.
An import into existing tables can replace or duplicate information, or stop partway through. Do not repeatedly rerun a failed import without checking what was already applied. Restore into a clean test destination when necessary.
If the file exceeds the displayed upload limit or the operation times out, ask your provider about a supported command-line or backup-restoration method. Do not split SQL at arbitrary line boundaries. The phpMyAdmin documentation linked above includes guidance for large imports.
The most portable approach on cPanel is to export the source and import it into a destination created through cPanel. Keep the application pointed at the source until the copy is verified.
Some versions also offer Operations → Copy database to. If your host supports copying into an existing database:
If those options are unavailable or the destination is refused, use export/import or ask support. Copying database contents does not automatically update application credentials, grants or external scheduled jobs.
On cPanel, use the supported rename option in Manage My Databases → Current Databases where available. Back up first, note the assigned users, and check warnings for your server configuration.
After a rename, confirm the database-user associations and update every application, scheduled task or integration referencing the old name. Our configuration-file guide helps locate the relevant settings.
If an in-place rename is unavailable, create a new database, copy and verify the data, then switch the application configuration. Keep the original and recovery copy until the replacement is tested. Do not approve an operation that drops the old database simply to make a naming change.
A database copy and a database merge are different operations. Importing two WordPress databases, for example, does not automatically combine their users, posts and relationships correctly.
Before a developer writes a merge, compare column definitions, character sets, primary keys, unique constraints, foreign keys and application identifiers. Define how conflicts and duplicate records should be handled, which source is authoritative, and how the result will be checked.
Build and test the merge against disposable copies. Use explicit column mappings and an application-supported migration tool where appropriate. The old blanket instruction to run INSERT INTO ... SELECT * across every table is unsuitable as a general merge recipe.
For command-line access, request the password interactively rather than including it in shell history:
mysql -h DATABASE_HOST -u DATABASE_USER -p DATABASE_NAME
Replace these placeholders with your actual connection details. This command opens a connection; it does not perform a merge.
For connection errors, follow our MySQL connection troubleshooting guide.
Do not rely on an application database export to recreate server accounts and grants. Create and assign the destination user through the hosting panel, then update the application credentials.
Only with a planned recovery procedure. Importing into a live database can remove data or leave a partially restored application. Prefer a separate destination, verify it, then perform a controlled switch.
Share the operation, server versions, approximate file size and a redacted error message. Do not attach a full SQL dump or password to a public ticket or message.
Contact DigitalBerg support if you need help identifying the supported import or restoration method for your hosting plan.
cPanel Backup: 7 Essential Steps for a Successful Move
