How to migrate a Wordpress blog from another host to our servers?
Ryan Stratts
Last Update il y a 3 ans
To move your WordPress website from your old hosting account to this new one with us, please follow this migration tutorial, which consists of 9 steps:
Download and install the wp-db-backup plugin (http://wordpress.org/extend/plugins/wp-db-backup/)
Log in to your WordPress Administration Panel and go to the Manage > Backup menu. Select all the tables (including those tables created by the plugins) and click on the Backup button to download the gzip backup file to your computer.
On your computer, extract the gzip backup file. You should now have an .sql file.
Open the .sql file with a text editor (Notepad, for example). Search for the line:
INSERT INTO `wp_options` VALUES (1, 0, ''siteurl''
You should see something that resembles this format:
INSERT INTO `wp_options` VALUES (1, 0, ''siteurl'',
''http://www.your-old-url.com'', ''yes'')
Replace the URL with your new server URL.
IMPORTANT: Do this ONLY if your domain (website address) has also been changed, otherwise skip to step 5.
Next, search for the line:
INSERT INTO `wp_options` VALUES (39, 0, ''home'',
You should see:
INSERT INTO `wp_options` VALUES (39, 0, ''home'',
''http://www.your-old-url.com'', ''yes'')
Replace the URL with your new URL. Save and exit.
IMPORTANT: Do this ONLY if your domain (website address) has also been changed, otherwise skip to step 5.
Using an FTP program, download the entire WordPress folder from your current server to your computer. Keep the folder structure intact, especially the wp-content folder.
Go to the Databases > MySQL Databases section of your Web Hosting Control Panel and create a new database, which will hold the previously exported one.
Click on the newly created database to load the phpMyAdmin tool. In phpMyAdmin, click on the icon in the left frame that says SQL - a pop-up window opens where you should select the Import tab, click on Browse to select your dump file and then click on Go to import the database.
On your local computer, open the directory where you have saved the WordPress files, locate the wp-config.php file and edit it with Notepad. Change the MySQL database name, username, password and the MySQL server with the new ones.
Via FTP, upload the WordPress files from your local computer to the server. Make sure to place them inside your domain folder. This folder has, by default, the same name as your domain name (e.g. my-best-domain.com). Find out how to upload files via FTP in this article: How to connect via FTP and upload/download files.