Here’s how you can clone and migrate your WordPress blog to a new server in 10 steps:
If your WordPress database (the sql file you have created) is more than 2MB, the above method might not work since PhpMyAdmin only allows a maximum of 2MB file import.
To overcome this, you can use bigdump to dump the sql file to your new database.
- Download the wp-db-backup plugin.
- Upload to your existing server and activate it via the ‘Plugins‘ menu.
- Go to the ‘Manage‘ -> ‘Backup‘ menu. Select all the tables (including those tables created by the plugins) and click the Backup button to download the gzip file to your computer.
- In your computer, extract the gzip backup file. You should now have a sql file.
- Open the sql file with a text editor. Search for the line
INSERT INTO `wp_options` VALUES (1, 0, 'siteurl'
INSERT INTO `wp_options` VALUES (1, 0, 'siteurl', 'http://www.your-old-url.com', 'yes')
Next, search for the line
INSERT INTO `wp_options` VALUES (39, 0, 'home',</code>
INSERT INTO `wp_options` VALUES (39, 0, 'home', 'http://www.your-old-url.com', 'yes')
- Using a FTP program, download the whole WordPress folder from your current server to your computer. Keep the folder structure intact, especially the wp-content folder.
- Log in to the PhpMyAdmin in the new server (here is the instruction to access your PhpMyAdmin)
- Create a new database for your wordpress and import the sql file to the database
- Change the database configuration in the wp-config file in the WordPress folder that you have downloaded
- Upload the whole WordPress folder to the new server.
If your WordPress database (the sql file you have created) is more than 2MB, the above method might not work since PhpMyAdmin only allows a maximum of 2MB file import.
To overcome this, you can use bigdump to dump the sql file to your new database.
No comments:
Post a Comment