How to migrate WordPress using File Manager and phpMyAdmin?

Migrating WordPress using File Manager and phpMyAdmin is as easy as creating a backup and restoring it on our servers. If you can use a WordPress plugin to generate a backup, you should also be able to migrate it using this method. Please feel free to contact support if you need any help.

 

Step 1: Create a WordPress Backup


Create a backup of your WordPress website that you can restore on our server. Please refer to the following article for step-by-step instructions:

Backup WordPress using File Manager and phpMyAdmin

 

Step 2: Restore the Backup


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 file in cPanel > File Manager.

  • Click Extract from the top menu or Right-click > Extract.

  • Done!

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.

 

Create a New Database:

  • Log in to your new hosting account with us.

  • Go to cPanel > MySQL Database Wizard.

  • Enter a database name and click Next Step.

  • Enter a database username and password, and click Create User.

  • Select [*] All Privileges.

  • Click Make Changes!

  • Done!

Note:

Take note of the new 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 from the top menu, or Right-click > Edit.

    Locate the following lines:

    define( 'DB_NAME', 'olddatabasename' );

    define( 'DB_USER', 'olddatabaseuser' );

    define( 'DB_PASSWORD', 'olddatabasepassword' );

    define( 'DB_HOST', 'olddatabaseserver' );


    In the above lines:

    olddatabasename is the database name.
    olddatabaseuser is the database user.
    olddatabasepassword is the password of the database user.
    olddatabaseserver is the database server.

    Note that the actual values of the database name, user, password, and server can be random.

  • Replace the above values with the database name, username, and password created in Step 2:

    olddatabasename with the new database name.
    olddatabaseuser with the new database username.
    olddatabasepassword with the new database password.
    olddatabaseserver with localhost.

  • Click Save.

  • Done!

 

Troubleshooting


If you get any errors after migration, refer to the following guide:

How to fix errors after migrating WordPress?

 

  • 462 Users Found This Useful
Was this answer helpful?

Related Articles

How to backup WordPress using File Manager and phpMyAdmin?

Most hosting servers have File Manager and phpMyAdmin that you can use to backup your WordPress...

How to access a website when SSL is not installed?

If you do not have SSL installed, you will likely get an SSL error (e.g., your connection is not...

How to request migration?

  MechanicWeb will assist you with migrating your websites free of charge with select hosting...

How to manually restore cPanel backups?

In this tutorial, you will learn how to manually restore a full/partial cPanel backup or home...

How to split addon domains into individual cPanel accounts?

To split addon domains into individual cPanel accounts, you need to, in chronological order:...