WordPress Going to Installation Wizard, Even Though WordPress is Installed
I tend to find myself installing, moving and updating lots of WordPress sites as part of my day-to-day routine. When moving sites between servers, or switching the code to a live environment, I sometimes come across a problem that has previously resulted in me re-installing a fresh copy of WordPress.
After moving a WordPress database to a different location, the first thing I do is update the home and siteurl values in the wp_options table to reflect the new domain.
There have been numerous times however when, having gone to visit the moved site in a browser, I then get redirected to the WordPress Installation wizard, as if the database doesn’t exist at all.
After coming up against this a few times I decided to do some further digging and was amazed at how easy the solution was.
It’s easy to resolve this. The problem in my cases was that the wp_options table had become corrupt and needed repairing and optimising.
To do this in phpMyAdmin, you can follow the steps below:
1. Login to phpMyAdmin and navigate to the database in question.
2. With the list of tables visible, check the tickbox next to the ‘wp_options‘ table.
3. From the dropdown at the bottom, select ‘Repair Table‘.
4. Repeat steps 1 and 2 but instead then select ‘Optimize Table‘.
Visiting the website in a browser should now present you with the correct site, as opposed to the installation wizard.