FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

I Made Crucial Mistake

 


the-guide
I tried to move my store-front to homepage but with my crucial mistake I then destroyed all my wordpress scripts. However, the database still remain, I need some help please, how can I reinstall wordpress to another directory by using an existing database.

Appreciate and thanks in advance.
Gieter
the-guide wrote:
I tried to move my store-front to homepage but with my crucial mistake I then destroyed all my wordpress scripts. However, the database still remain, I need some help please, how can I reinstall wordpress to another directory by using an existing database.

Appreciate and thanks in advance.


Upload all the files again in the first place. Then you can try to change the wp-config.php file, so that it points to your existing database (http://codex.wordpress.org/Editing_wp-config.php) . You also can try to run the installation script again, maybe it allows you use an existing database, I'm not sure about that.

Good luck!
rvec
or backup the database, install wordpress again and put the database back in.
Before installing you should also backup any files you added (themes and config file) which you can put back in place after the installation.
the-guide
Hi Gieter and rvec,

With your advice and a little change in my database, my blog now recovered, thanks a lot.

I back up my database - upload scripts to new directory (/blog) and re-installed wordpress using existing database and then all existing data are deleted so I restored it with backup file after that I changed data of siteurl and home in database manually from homepage's url to url that point to new directory ( http://www.the-guide.frih.net/blog/ ) and oh! it work.

Gieter and rvec, Appreciate and Thanks you very very much. Wink
Reply to topic    Frihost Forum Index -> Scripting -> Website Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.