You can easily migrate your WordPress website using FTP, SSH, or migration plugins. Please follow the steps below to migrate your WordPress website manually.
Step 1: Migrate the Files
Download the Files:
- Log in to your old hosting account.
- Go to File Manager > WordPress install directory.
- Compress (.zip) all WordPress files and directories.
- Download the .zip file using FTP or File Manager.
Note:
We can help you download a large .zip file to your new hosting account with us directly from your old hosting account. Move the .zip file into your WordPress root directory and provide us with a downloadable URL or FTP details to download the file.
Upload the Files:
- Log in to your new hosting account with us.
- Go to cPanel > File Manager > Upload and upload the .zip file. You can also use FTP to upload.
- Move the .zip file inside the [public_html] directory.
- Select the .zip in cPanel > File Manager.
- Click Extract.
- Done!
Step 2: Migrate the Database
Download a Database Backup:
- Log in to your WordPress and install the UpdraftPlus WordPress Backup plugin.
- Go to Settings > UpdraftPlus Backups > Backup Now.
- Select [*] Include your database in the backup.
- Deselect [ ] Include your files in the backup.
- Click Backup Now. Wait for the backup to complete.
- Click Database next to the backup.
- Click Download to your computer.
Note:
It is a third-party plugin. MechanicWeb does not endorse its use and is not affiliated with them.
Create a New Database:
- Log in to your new hosting account with us.
- Go to cPanel > MySQL Database Wizard.
- Enter the database name and click Next Step.
- Enter the username and password, and click Create User.
- Select [*] All Privileges.
- Click Make Changes!
Note:
Take note of the database name, username, and password.
Import the Database Backup:
- Log in to your new hosting account with us.
- Go to cPanel > phpMyAdmin > [Select the database] > Import.
- Click Choose File and select the database backup.
- Click Go from the bottom of the page.
- Wait for the "Import has been successfully finished" message to appear.
- Done!
Step 3: Modify wp-config.php
After importing your database, you will need to modify the wp-config.php file with the new database name, username, and password:
- Log in to your new hosting account with us.
- Go to cPanel > File Manager.
- Navigate to [public_html].
- Select wp-config.php.
- Click Edit.
Locate the following details:
/** The name of the database for WordPress */
define( 'DB_NAME', 'olddatabasename' );
/** Database username */
define( 'DB_USER', 'oldusername' );
/** Database password */
define( 'DB_PASSWORD', 'oldpassword' );
/** Database hostname */
define( 'DB_HOST', 'oldserver' );
Replace the following values:[oldserver] with localhost
[olddatabasename] with the new database name
[oldusername] with the new database username
[oldpassword] with the new database password
- Done!