How do I migrate a Wordpress site to my 123-reg VPS?

This article applies to 123-reg VPS hosting.

This article will show you how to migrate your WordPress website hosting from your existing one to your 123-reg VPS.

Exporting and Importing your WordPress database

Important: It is advised that you upgrade your existing WordPress site to the latest version before exporting your data to avoid any potential version issues when importing your data into your new WordPress installation on your VPS.

First you must ensure that you use an FTP Client (such as Filezilla) to download a copy of your files from your Hosting package. Then you will have to download your database from your hosting package. 

1

Login to your Shared Hosting package. Use the MySQL Databases button from the Web Tools section. This will open up the list of your MySQL databases. 


2

Select the Database you would like to export and then click the Manage button. This will open the database manager. 


3

Click the Export tab at the top of the window. 


4

Use the preset settings, ensuring that the SQL file type is selected. Click Go to complete the process.


5

Open your wp-config file in a text editor such as Notepad. The wp-config file is one of the files that you will have downloaded via FTP earlier in the process. There will be a section at the top of the document that denotes your MySQL Settings. Within these settings you will need to change the MySQL hostname to "localhost", so that the server does not start looking for a Host that doesn't exist.

// ** MySQL settings - You can get this info from your web host ** //

/** The name of the database for WordPress */

define('DB_NAME', 'a__wordp_ ressdb2345');

/** MySQL database username */

define('DB_USER', 'a__wordp_ressdb2345');

/** MySQL database password */

define('DB_PASSWORD', 'RjN1234Tw');

/** MySQL hostname */

define('DB_HOST', 'Change_What_is_in_here_to>localhost');

6

You will then need to create a database in your server control panel, using the DB Name, DB User and DB Password that is in the wp-config file. You need to make sure you enter these accurately to ensure that this works correctly. 

7

You then need to access the Webadmin section of your server control panel to open up PHPMyadmin. From here, upload the .sql database that you downloaded earlier.


Offer

Answer options

Your feedback was successfully added.

Answer tracking

Track

Watch the content of this article for changes.