Moving a MySQL database is done with an export and import.
- On your old host, open phpMyAdmin, select the database, click Export, and download the
.sqlfile (use Custom and gzip for large databases). - In Toshost cPanel, open MySQL Databases and create a new database and user, granting the user all privileges.
- Open phpMyAdmin on Toshost, select the new database, click Import, and upload your
.sqlfile. - Update your application's config (e.g.
wp-config.php,.envorconfig.php) with the new database name, user and password; the host is usuallylocalhost.
For very large databases that exceed the upload limit, import via Terminal/SSH or ask us. Need help? Open a ticket and we'll assist.