DigitalBerg
  • HOME
  • WINDOWS VPS
  • VIRTUAL SERVER
    • Virtuozzo VPS
    • OpenStack VPS
    • Amazon Lightsail VPS
    • VMware VPS
  • DEDICATED SERVER
    • INSTAND DEDICATED SERVERS
    • HOSTING DEDICATED SERVERS
    • DEDICATED ENTERPRISE SERVERS
    • INFRA. DEDICATED SERVERS
    • DEDICATED GAME SERVERS
  • MORE
    • SSL SHOP
    • FREE SSD WEBHOSTING
  • LOGIN
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

phpMyAdmin: 7 Essential Steps for Safer Database Moves

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.

In this guide

  1. Prepare a backup and recovery plan
  2. Export the source database
  3. Create the destination in cPanel
  4. Import and verify the SQL file
  5. Copy a database
  6. Rename and reconnect applications
  7. Plan a compatible data merge

1. Prepare before changing a database

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.

2. Export a database in phpMyAdmin

  1. Open cPanel → Databases → phpMyAdmin.
  2. Select the source database in the left sidebar. Check its name and tables.
  3. Open Export. For a straightforward SQL backup, select SQL as the format.
  4. Use Custom options when you need to select tables or review which structure and data are included. Check any required views, triggers, routines and events against the available options and your account permissions.
  5. Download the export and confirm that the file is present and has a plausible size. Keep a record of the source and export time without recording credentials.

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.

3. Create the destination through cPanel

Open Databases → Manage My Databases, or use Database Wizard for a new database and user. Older cPanel versions call the management screen MySQL Databases.

  1. Create the destination database with a recognisable name.
  2. Create a dedicated database user or select the appropriate existing user.
  3. Assign that user to the destination database with the privileges the application requires.
  4. Record the complete database name and username. Store the password privately.

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.

4. Import and verify an SQL backup

  1. Select the intended destination database in phpMyAdmin. For a fresh copy, use an empty destination.
  2. Open Import and select the SQL file from your computer.
  3. Confirm the format and review the file’s intended operations. An SQL dump can contain DROP, CREATE or USE statements; selecting a destination does not make every dump safe for that destination.
  4. Start the import using the button shown by your version, then read the completion message and any errors.
  5. Check expected tables, representative records and important object definitions before connecting the application.

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.

5. Copy a database without changing the original

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:

  1. Create the empty destination in cPanel first.
  2. Select the source database, then open Operations.
  3. Enter the complete existing destination name and choose Structure and data for a populated copy, or Structure only for an empty schema.
  4. Do not enable CREATE DATABASE before copying on cPanel. Avoid options that drop existing destination objects unless you have deliberately planned that replacement.
  5. Review available AUTO_INCREMENT and object-copy options, run the copy, and verify the destination.

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.

6. Rename a database and update its applications

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.

7. Treat merging as an application-specific task

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.

Check the application after a database move

  • Confirm the hostname, full database name, username and user permissions.
  • Test a database-backed page and the administrator login.
  • Check an appropriate read and write workflow in staging before production use.
  • Review errors, record counts and application-specific relationships.
  • Keep backups and the recovery plan until the change is accepted.

For connection errors, follow our MySQL connection troubleshooting guide.

Frequently asked questions

Does an export include database users and passwords?

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.

Can I restore over a live database?

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.

What should I send to support?

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.

Search WiKi

Search Search
  • Three steps to diagnose a cPanel request timeout: identify the failure, check the responsible layer, then test and optimise.
    cPanel Request Timeout: The Ultimate 7-Step GuideOctober 22, 2026 - 3:55 pm

    Troubleshoot cPanel Request Timeout errors with PHP settings, scoped LiteSpeed rules, proxy checks and practical optimisation steps.

  • How to Install Webmin and Virtualmin on Your VPS for Powerful Server ManagementNovember 19, 2025 - 7:52 pm

    Looking for a cPanel alternative to manage your Linux VPS or cloud server? Learn how to install Webmin and Virtualmin with this easy guide, optimised for performance and scalability—perfect for Digitalberg VPS clients.

  • How to Add Additional IP in AlmaLinux/Rocky Linux | DigitalbergNovember 19, 2025 - 5:11 pm

    A detailed, beginner-friendly tutorial on adding additional IP addresses to AlmaLinux or Rocky Linux servers for Digitalberg clients. Covers configuration, restart steps, and troubleshooting tips.

  • WordPress cheat sheet guide: plan the change, use the right tools and verify the result
    WordPress Cheat Sheet: 7 Essential Tips for SuccessFebruary 8, 2025 - 1:01 am

    Use this WordPress cheat sheet for 7 practical workflows covering WP-CLI, backups, themes, SEO, performance, security and release checks.

  • Debian 12 ionCube Loader installation for PHP 8.2, Virtualmin and WHMCS
    Step-by-Step Guide to Install IonCube Loader on Debian with PHP 8.2 in Virtualmin for WHMCSFebruary 8, 2025 - 12:35 am

    Installation of IonCube Installer (for WHMCS)

Search Search

Recent Posts

  • AI Agent Backup and Disaster Recovery on Dedicated Servers: Practical Runbook
  • How to Fix the WordPress Critical Error: Step-by-Step Troubleshooting Guide
  • Deploy an OpenAI-Compatible API Gateway on Ubuntu with Docker Compose
  • Managed vs Unmanaged Dedicated Hosting in the UK: Costs, Performance and Support
  • Read-Only AI Server Monitoring: 7 Essential Steps

Recent Comments

  • AI Agent Backup and Disaster Recovery on Dedicated Servers: on How to Install OpenClaw, DeepSeek Harness, OpenRouter and FreeLLMAPI on a DigitalBerg Jupiter Dedicated Server
  • Unmetered Dedicated Servers: Bandwidth & Buying Guide on 1Gbps vs 10Gbps Dedicated Servers: The Ultimate 2026 Speed & Cost Guide
  • How to Set Up vRack on Dedicated Servers | DigitalBerg on Dedicated Server
  • WordPress Critical Error: How to Fix It Step by Step (2026) on Website Backup vs Server Snapshot: What’s the Difference and Which One Do You Need?
  • Deploy an OpenAI-Compatible API Gateway on Ubuntu with Docke on How to Install OpenClaw, DeepSeek Harness, OpenRouter and FreeLLMAPI on a DigitalBerg Jupiter Dedicated Server

Archives

  • November 2026
  • October 2026
  • September 2026
  • August 2026
  • March 2026
  • February 2026
  • November 2025
  • February 2025
  • May 2016
  • February 2016
  • January 2016
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • June 2008

Categories

  • BaaS
  • Blogs
  • Cloud
  • CloudFlare
  • Dedicated Servers
  • Design
  • News
  • Uncategorized
  • VPS
  • Web hosting
  • WordPress
digitalberg.com

DigitalBerg fuels apps, websites, emails, and much more for numerous clients globally.

Virtual servers to dedicated servers at affordable prices that any hostinger student can afford.

Services

  • Web Hosting
  • Virtual Server
  • Instant Servers
  • Dedicated Servers
  • Enterprise Servers
  • Infrastructure Servers
  • Gaming Servers
  • SSL Shop

SUPPORT

  • Contact Us
  • Wiki
  • FAQ
  • Blogs

Company

  • About Us
  • Partners
  • Privacy Policy
  • Term of Service
  • Acceptable Use Policy
  • Green Hosting
  • Data center

CLIENT AREA

  • Registration
  • Client Area
  • Server Status
  • Support

OTHER SERVICES

  • Domain Registration
  • Transfer Domain
  • Add ons / Management
  • SSL Certificates
  • Server Monitoring
  • Server hardware
DigitalBerg review
DigitalBerg review
© Copyright - DigitalBerg | From January 1st 2015, in accordance with the amended Directive 2006/112/EC, prices inclusive of VAT may vary depending on the country of residence of the customer.
  • Link to Facebook
  • Link to X
  • Link to LinkedIn
Link to: How to Create a MySQL Database, a User, and Then Delete Link to: How to Create a MySQL Database, a User, and Then Delete How to Create a MySQL Database, a User, and Then Delete Link to: cPanel Backup: 7 Essential Steps for a Successful Move Link to: cPanel Backup: 7 Essential Steps for a Successful Move cPanel backup workflow for full account restoration, partial backups and migrationcPanel Backup: 7 Essential Steps for a Successful Move
Scroll to top Scroll to top Scroll to top