Moving between hosts or accounts.
THE PROCEDURE
- Export from the source, using the command line for anything large.
- Create the database and user on the destination, noting the new prefix.
- Import the dump.
- Update the application configuration with the new name, user and password.
- Update the site URL if the domain changed.
THE PREFIX PROBLEM
Database and user names carry the cPanel username. They will differ between accounts.
The configuration file must be updated, or the site shows a connection error immediately.
This is the most common post-migration failure.
THE TABLE PREFIX
Separate, and it travels with the dump. It does not change.
If the configuration specifies a different table prefix from what the dump contains, nothing works.
CHARACTER SETS
A mismatch between source and destination produces mangled accented characters.
Export and import with matching character sets, usually utf8mb4 on anything modern.
AFTER IMPORTING
Compare the table count against the source Check a sample of content Run a search and replace if the domain changed