Backup Restore Migration Wordpress hosted on 1and1
-
Upload
francisco-servera -
Category
Education
-
view
3.243 -
download
1
description
Transcript of Backup Restore Migration Wordpress hosted on 1and1
Wordpress hosted on 1and1
BackUp / Restoration / Migration
Initial problem1and1 basic hosting doesn’t gives you direct
access to MySQL database
UpdraftPlus pluginA solution is to use a plugin that makes a
backup of your wordpress files and also the database
Make a BackUpYou can store files on Dropbox, Google Drive,
Amazon, etc and have the files zipped.
Install new wordpressWordPress installation process It’s completly
documented but in case You’re using XAMPP Lite It can be resumed like this:
Install WordPress in local machine (localhost)Files: Uncompress WordPress.zip on subfolder
HTDOCSData: Create a new database using PhpMyAdmin
Connect WordPress with the databaseFill database name, user and password in WP-CONFIG
(file created from WP-CONFIG-SAMPLE)Open install URL on browser
http://*new_location*/wp-admin/install.php
Install updraftplus pluginReinstall UpdraftPlus plugin in your new Wordpress instalation and restore the
BackUp
Select restore everythingWe want to restore all the files and the
database
Now the process is finishedCongratulations! You’re close to a successful
migration / restoration
But the url is different!As you can see there are some changes to
do on the database yet
Sql queries to replace old urlUPDATE wp_posts SET guid = replace(guid, ‘http://www.old-domain.com’,'http://www.new-domain.com’);
UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’);
UPDATE wp_postmeta SET meta_value = replace(meta_value, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’);
UPDATE wp_options SET option_value = replace(option_value, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
You got it!After the SQL queries are executed your
migration / backup is ready to work
www.audit2me.com@FranServera
References:How To Install WordPress on XAMPPMigrating a WordPress Site