Uploaded a Wpress File and Pointed to Different Database
Thinking of changing hosts merely not sure how to drift a WordPress site from one host to another?
They say that moving house, getting married, and changing jobs are the three most stressful things in life… only I would argue that in that location's another potent contender for the top three.
Migrating your WordPress website from i host to some other!
Well, I accept some good news and some bad news.
The bad news offset… migrating a website to a new host volition always brand your heart race and your palms sweat, no thing how many times y'all've done it.
Proficient news: Migrating a WordPress site to a new host is substantially a serial of steps that you tin repeat each and every fourth dimension.
It's practically the same for every website you migrate.
This step-by-pace guide to seamlessly migrate your WordPress website will make the entire procedure a picayune less stressful.
iii Options For Migrating Your WordPress Site To A New Host
There are 3 main options for migrating a WordPress website from one hosting provider to a new hosting provider.
- Get your host to practise information technology for y'all.
- Employ a WordPress migration plugin.
- Go former school and use SFTP/FTP.
The best option for y'all will depend on your electric current hosting provider and new hosting provider and the size of the WordPress site y'all want to migrate.
ane. Get Your Host To Do WordPress Site Migration For You lot
The showtime option for migrating a WordPress site is by far the easiest (and to the lowest degree stressful!) but whether this is an option will depend on which hosting provider yous are migrating to.
Many managed WordPress hosting providers, such equally Flywheel or SiteGround, will either do a complimentary migration or will provide a plugin to install on your site to perform the migration (more on that in a moment).
Flywheel offers either a DIY plugin for you to consummate the migration or they will exercise the migration for free.
All you take to do is fill out a cursory grade on their website with the electric current hosting details and ask them to conduct the migration.
This tin take 1 – to three days but will relieve you lot so much time (and stress).
2. Move To A New Host Using A WordPress Migration Plugin
Equally I mentioned above, if your fully managed host will not practise the migration for you, they will ordinarily provide a plugin that you can install on your site to perform the migration.
Using this migration plugin is easy.
These plugins typically work every bit an installation wizard to guide you seamlessly through the process of moving the WordPress files and database from one location to some other.
They too automatically install WordPress on the new site in preparation for the files and database to be uploaded.
If you lot are not using a fully managed host, in that location is some other plugin pick.
Enter the All-In-One WP Migration plugin.
To migrate a WordPress site using this plugin, follow these steps:
Step 1: Log in to the backend of the WordPress site that y'all want to drift.
Step 2: From the WordPress dashboard, navigate to plugins and click on Install New.
Step 3: Search for All-In-One WP Migration and install the All-In-One WP Migration plugin by ServMask.
Screenshot from wordpress.org, February 2022
Stride four: Activate the plugin.
Step 5: Repeat steps one to four on the new WordPress site (the i you want to drift to) so you have the plugin installed on both the new and old site.
Pace six: Install the plugin Regenerate Thumbnails by Alex Mills (Viper007Bond) to the site you lot're wanting to migrate to.
Step 7: Update ALL plugins, themes & WordPress core files on BOTH the new site and the onetime site (Note: the WordPress version must exist the aforementioned on both sites).
Step viii: Create an export file using the "All-in-I WP Migration" plugin
Pace 9: Optional: Add a rule to "Find" your new site database prefix and "Supplant" with your sometime site database prefix (merely if necessary)
Step ten: Export to File and download the file to your calculator.
Pace 11: On the new site, open the ''All-in-I Migration' plugin and import the file from the previous pace.
Step 12: Once the file uploads, apply the uploaded consign file to the new site when prompted.
Step xiii: Become to Setting > Permalinks and relieve multiple times.
Step 14: Check all your plugins and make sure they're activated.
Step 15: Check the media library. If the images aren't there, use the Regenerate Thumbnails plugin to re-activate them if necessary.
Step sixteen: Check all pages/posts/etc. to make sure everything looks as it should. So you can refresh your newly migrated WordPress site to see how everything looks.
Step 17: Install the Amend Search Supervene upon plugin by Succulent Brains on the new site.
Screenshot from WordPress.org, February 2022
Step 18: In the WordPress dashboard, get to Tools > Better Search Replace.
Step 19: Add together your old site URL (i.e. oldwebsite.com) to the "Search for" field.
Footstep twenty: Add your new site URL (i.east. newwebsite.com) to the "Supersede with" field.
Step 21: Run a dry run. If you lot're happy with the dry run, run the plugin for existent.
Footstep 22: Go through theme files (primarily style.css, but maybe PHP files) to make sure all instances of "oldwebsite.com" are replaced with "newwebsite.com."
Step 23: Bank check your new site. If the changes haven't taken effect, clear your browser cache. If the changes nonetheless oasis't taken effect, clear your server cache.
The All-In-One WP Migration plugin has a limit on the size of the site that information technology can migrate (128MB).
If you have a very big site, these alternative plugins may aid you migrate your WordPress site from one host to some other:
- Duplicator.
- UpdraftPlus.
- Drift Guru.
Be sure to read all of the instructions for the plugin that you cull, to make sure that it is appropriate for the type of migration you want to do.
three. Erstwhile Schoolhouse WordPress Site Migration With SFTP/FTP
For many migrations, using a plugin should work fine.
Notwithstanding, for more complex migrations, yous may demand to manually migrate your WordPress site.
This tin be washed using either the File Manager in the cPanel of your hosting provider or by using an FTP or SFTP connection.
To use an SFTP/FTP client such as Filezilla or Cyberduck, you should consult with your hosting provider(due south) for the right configuration of this connection, but you typically need the username and password for your hosting account, the FTP or SFTP accost, and the correct port number.
Once you lot have this information, follow these steps:
Step 1: Using File Managing director in the cPanel or the SFTP/FTP connect, navigate to the root binder (public_html is the usual location) of the site you are migrating to. If you aren't sure where the root folder is, y'all may want to contact your hosting provider, equally it may be in a folder by a different name for security reasons.
Step two: If you're using the File Manager located in the cPanel, select public_html and download it to your computer.
If yous're using the SFTP/FTP client, select the public_html folder and download it to your computer. To make information technology easier to migrate, y'all can create a zip file of the downloaded folder.
Step 3: You now need to download your WordPress databases. Log into phpMyAdmin on the hosting where the site is currently located.
Step iv: Consign the database. (Note: Y'all may need to attain out to your hosting provider to discover out which database to use if you run across more than than one listed in phpMyAdmin).
Step v: Select the database to export. Click Export and and then Quick for the type of consign, and SQL as the file type. Click Go.
Screenshot from phpMyAdmin, February 2022
- Step 6: If you are going to use phpMyAdmin to import the site, you can create a nil file once the database is downloaded to your computer. Alternatively, you can select compressed in phpMyAdmin to compress the database before it downloads.
Step 7: Brand sure there is nothing installed on the site you lot are migrating to.
Step 8: Get to the new hosting provider and create a new empty database. In the cPanel, navigate to MySQL Databases and click on it, name the new database appropriately and click Create Database.
Step 9: Create a new user in the MySQL Users department. Create a username and password and select Create User. Note that all usernames and passwords you utilize to create the database and user. You lot will need to update those in the wp-config.php file.
Step 10: Add together the user to the database by going to the Add User to Database, selecting the new user and the database, and clicking Add.
Step 11: You lot next demand to edit the wp-config.php file from the WordPress files that you downloaded. Make sure, if you created a new database proper noun "DB_NAME", username "DB_USER, and/or password "DB_PASSWORD", you lot volition desire to update them hither and save the file.
-
Screenshot from PhpStorm by JetBrains, February 2022
Information technology is wise to first create a re-create of the original wp-config.php and store information technology elsewhere on your estimator.
This is a precaution in instance something happens and you lot demand the database information from the current site location.
Step 12: Log into the new site's phpMyAdmin. Select the new empty database y'all but created. Import the SQL database that was exported from the current location, by selecting the new database in the left window, hit the Import tab, choose the file to import, and click Go.
Choose the database nothing file you take exported and make sure information technology is ready to import every bit an SQL file and hitting Start Import.
Screenshot from phpMyAdmin, February 2022
Step xiii: Next, you volition want to upload the WordPress files to the new installation. Log into the File Director of the cPanel of the new site installation or connect to SFTP/FTP for the new site location. Upload the public_html folder to the new location.
Stride xiv: If y'all are migrating from a staging site, subdomain, or different domain name, install a plugin such as Better Search Supersede on the migrated site in society to switch all of the old site URLs to the new domain proper name URLs.
Pointing Your Domain Name To The New Website
Once you have migrated your WordPress site to a new host, you lot volition need to connect the new site to your domain name.
Update the new IP accost in the DNS records or if you prefer to maintain the DNS records on your web hosting, yous tin can update the nameserver on your domain hosting account.
Stride ane: Log in to your domain hosting account. (I'1000 using Namecheap for this demonstration.)
Step 2: Select the domain you will utilise for the new site.
Step 3: Click Manage Domain and Advanced DNS.
Step four: In the A Record, apply @ for Host, and add the new IP address provided by the new web hosting provider under Value. TTL should be automatic.
Stride five: In the CNAME record, use www for Host, put your new domain name under Value, and Automated for TTL.
Step 6: Save Changes.
Screenshot from namecheap.com, February 2022
- Follow the instructions from your specific domain hosting provider to make sure that all DNS records are present and updated to bespeak to your new website location.
Let 24 to 72 hours for complete net propagation.
The Stress-Free Way To Migrate A WordPress Site
Migrating a WordPress website doesn't have to exist stressful.
If your host can't do it for you lot, there are plugins that brand the migration process stress-complimentary.
In some rare instances, y'all might accept to utilize SFTP/FTP to migrate a more than circuitous site.
That being said, the steps are e'er like when information technology comes to WordPress migration.
Permit plenty of time for the migration process.
With enough do, y'all'll be a pro at moving WordPress sites from one host to another!
More than resources:
- Site Migration & SEO: Common Mistakes That Hurt Rankings
- Google Shares Advice on Site Migrations
- The Ultimate SEO Audit Checklist
Featured Image: stockovari/Shutterstock
Source: https://www.searchenginejournal.com/how-to-migrate-wordpress-site/439024/
0 Response to "Uploaded a Wpress File and Pointed to Different Database"
Post a Comment