Wordpress blog is now showing Install page ? the db is still there and wp-config has correct details
Asked Answered
K

5

8

I am not sure what happened but I just looked at my wordpress site and it is showing the install page /wp-admin/install.php instead of showing the blog content.

  1. I checked wp-config and it has correct database details
  2. The database also exist and has all the content

What is going wrong and how can I fix this ?

Karren answered 21/11, 2013 at 8:1 Comment(4)
Check wp-options table in database and check your siteurl and home links are right OR not?Eliza
if possible, using a debug tool like Xdebug to debug function is_blog_installed() in wp-includes/functions.phpKell
database details correct - but also the wp_prefix ? ( a lot of people forget that .. )Spiraea
In my case my wp-config.php file was hacked. I just restaured the original version of it and everything went back to normal.Postoperative
A
8

Typically, this occurs when one or more of the database tables are corrupt — wp_options in particular.

Try issuing check table and repair table statements accordingly.

Ayrshire answered 21/11, 2013 at 9:19 Comment(2)
Try this, if worst comes to worst backup the table with all the information you need and import it into a new tableDoloresdolorimetry
Yes, this was the problem, thanks I repaired the table and now it is working fineKarren
D
8

In my case it was "$table_prefix" in wp-config.php. Once I created the new one:

New DB: $table_prefix = 'wp02_';

Old DB: $table_prefix = 'wp_';

hope this helps.

Cheers

Disguise answered 17/4, 2017 at 10:31 Comment(1)
@tom, thank you for edits, I will keep in mind these points in future.Disguise
A
0

In my case, WP was installed on a (free) shared hosting provider, with limited resources. There is a limit on the traffic to/from the database. So each day, after a lot of traffic, the database replies with error:

user has exceeded the 'max_questions' resource

and WP shows the install page.

Awlwort answered 9/9, 2018 at 14:44 Comment(0)
H
0

This happens to me all the time when I make too many changes. The hosting provider just shows this page for about half an hour and then I can continue working again. Try not having too many page editors open at the same time because they autosave every now and then, even if you don't do anything on them. But if it's doing this because of your visitors, you should probably upgrade to a stronger hosting plan.

Hulett answered 11/11, 2020 at 15:3 Comment(0)
H
0

If you migrate between a database from Windows to Linux or between different versions in which the destination is case sensitive...

In addition to changing the prefix (the export is usually in lower case from phpmyadmin) you must access the database and adapt all the fields in the _usermeta table.

Once you can log in, use a plugin to perform a prefix change on the entire restored database.

If this does not work, some plugins can insert table names into their configuration, the easiest option is to perform a dump/export, modify the text by searching with Notepad++ or similar, replace the references and re-import the database.

Homily answered 17/9, 2024 at 9:50 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.