Hey guys, i did a mistake on a wp site, i uploaded a wrong wp-config.php file on the server during a 3.1 update, saw the mistake, recreated a good one with the good infos, uploaded the file and didnt get back the site! Now wordpress askes me to install it! Which i dont want to, cos it's all already installed. I backuped the database and checked it online, it's all fine, with for exemple the good infos for 'home' and 'url' tables.
If anyone knows what's going on (the install question) and i could get it back, it'd be more than welcome (am kinda stressed a lot now).
Second question, if i do reinstall it, will it crash the existing datas in the database?
EDIT: i checked the english version which is on the same database on the same server, site/en, it works fine.
Hey guys, i did a mistake on a wp site, i uploaded a wrong wp-config.php file on the server during a 3.1 update, saw the mistake, recreated a good one with the good infos, uploaded the file and didnt get back the site! Now wordpress askes me to install it! Which i dont want to, cos it's all already installed. I backuped the database and checked it online, it's all fine, with for exemple the good infos for 'home' and 'url' tables.
If anyone knows what's going on (the install question) and i could get it back, it'd be more than welcome (am kinda stressed a lot now).
Second question, if i do reinstall it, will it crash the existing datas in the database?
EDIT: i checked the english version which is on the same database on the same server, site/en, it works fine.
Share Improve this question asked Feb 25, 2011 at 16:40 kevinkevin 1,0623 gold badges11 silver badges22 bronze badges 2- make sure that the config file is named wp-config.php – Bainternet Commented Feb 25, 2011 at 17:02
- I realize its 2018 so this is more for new ppl that run across this, if your site is prompting to reinstall WP, you've left the install scripts in place and they should not be there if this is a production site. – HPWD Commented Aug 4, 2018 at 1:58
3 Answers
Reset to default 14Got it back, the $table_prefix
line was wrong in my wp-config.php. Fiu.
For me the solution was fixing the DB_NAME
value in wp-config.php
In one case i had, i replaced the wp-config.php file and forgot to edit the database prefix configuration to my database prefix.