How to move WordPress site to new hosting?

Moving your web site to a new host can be a complicated and stressful process, but if you do not know what to do. And only needed:

— Backup files

— Export database

— New database on the new host server

— Edited file wp-config.php

— Import the database

— Upload website files to the new host.

How to move a WordPress site to a new host?

Users often encounter the need to move to a new host. This process will not take a lot of time with the right approach and phased implementation of all steps.

So, how to migrate WordPress website to another hosting:

Step 1: create a file backup of the website.

The first action in the implementation of any project is to backup all files. Using an FTP program (e.g. FileZilla), connect to the web host and make backup files of your site to a separate folder on your PC.

Step 2. Export the WordPress database.

Exporting your database is a simple process, which requires only a few mouse clicks. Log in to the account your web server and open phpMyAdmin. Select the database that contains your WordPress installation from the list on the left sidebar, and then click Export on the navigation menu.

Standard options quick export and the SQL format for this step enough. Click Startand begin the process of exporting the database, and the file will be downloaded to your local computer.

Step 3. Preparation of database on the new host server.

Before performing a transition to a new web host, you must prepare the environment to install WordPress. To do this you must create a database in which to import the data to SQL.

For further work we suggest to use the app MySQL Databases. If your web host does not run this application, you should contact support to find out how to create a new database.

-Open MySQL database and create a new database with an appropriate name for your website.

— Create a new MySQL user (with password protected).

— Add a new database to this user account.

Step 4: Making changes to the file wp-config.php.

Navigate to the folder on the local computer where you downloaded the files for your web site. In the folder locate the file wp-config.phpthat controls the access between WordPress and your database.

Copy this file and save it in another folder on the local computer. It is necessary to recover changes in the event of any errors.

Open source version of the file in a convenient text editor and run the following three changes:

Change The Database Name.

In the line:

Replace db_name with the name of the new database.

Change Database Username.

Below you will find the line:

In this line you need to change the db_user to the new username that you created.

Change Database User Password (password).

Finally, edit the third line:

As for the rest, section db_pass this line needs to be changed to a protected password created for MySQL user.

Save all changes in the file wp-config.php and close it.

Step 5: Import the database.

Now that you have a new database to work with, you can begin the import process.

Run phpMyAdmin from the software on the new server and select your new database from the list on the left sidebar. After it has been opened, select Import in the navigation menu.

In the section of the File to import click Choose file, which you exported previously. Uncheck Partial import, make sure the format is set to SQL, and then click Start. Now start the database import.

The time required to import depends on the size of your database. In the end you will receive a message about the successful import.

Step 6: Upload the WordPress files to the new host.

Now that you have prepared a new database, and you have reconfigured the file wp-config.phpit’s time to start downloading files of your website to a new host.

Connect to the new web host using an FTP program, and navigate to the folder where you will load your website. Click on the desired directory and upload the files of your website, which must now include an updated version of wp-config.php. Do not delete these files from the local computer after the download is complete. They continue to be needed until you fully check the performance of your website on the new hosting.


As you can see, when divided into incremental steps, the process of moving the website to a new host is not so complicated. All you really need is to be attentive on every stage, and the opportunity to have (backup) to return to the original version, in case of any problems. So don’t think more about how to migrate a WordPress site, and start acting!

Leave a Comment

Your email address will not be published. Required fields are marked *