You open your site, or log in, and WordPress greets you with "Welcome to the famous five-minute WordPress installation process" or a language picker, as if the site had never been set up. Your posts are almost always still there. WordPress shows the install screen when it reaches the database but cannot find its own tables under the name it expects. Here is how to tell why, and the fix for each case.
Running the installer on a live site writes a fresh, empty site on top of your settings, and can leave you with two sets of tables. Close the tab and work out the cause first. It takes about ten minutes.
wp-config.php and read $table_prefix. It is usually 'wp_', but many hosts and security plugins use something like 'wp8x2_'.<prefix>options, for example wp_options or wp8x2_options?DB_NAME in wp-config.php points at the wrong database (common after moving hosts, where the new database got a new name), or the import never finished.<prefix>options is missing or empty? The options table was damaged or dropped. Check for a siteurl row in it.$table_prefix in wp-config.php to the prefix the tables actually use (keep the underscore). Reload the site. This alone fixes most cases.DB_NAME (and DB_USER, DB_PASSWORD, DB_HOST if they changed) to the database that holds your tables. Your host's database page lists the right names.wp_user_roles option and the wp_capabilities user meta keys carry the new prefix too, or you will log in with no admin rights.| What you see | What it means | Usual fix |
|---|---|---|
| Install screen; tables use a different prefix | wp-config.php names the wrong prefix | Set $table_prefix to the tables' prefix |
| Install screen; database has no WordPress tables | DB_NAME points at an empty database | Point wp-config.php at the right database |
| Install screen after a move; only some tables present | The import stopped partway | Re-import the full export |
| Site loads, but "Sorry, you are not allowed" in admin | Prefix changed, role keys did not | Rename wp_user_roles and wp_capabilities keys |
| Install screen; options table missing or empty | Options table damaged or dropped | Repair it, or restore that one table |
Most cases are one line in wp-config.php. If your posts still do not come back, that is what the box below is for. Related: "Error establishing a database connection", Database update loop, Lost admin access, "Sorry, you are not allowed to access this page".