PDA

View Full Version : My hard drive crashed...how do I get it to run on the new hard drive?



longshot
03-28-2009, 07:31 PM
My hard drive crashed...how do I get it to run on the new hard drive?
Thanks

morny
03-29-2009, 09:43 AM
You can try this method however its the least successful mehod of restoring a database but obviously your only option now

Ok in the PostgreSQL folder youll see a data folder, this is the only folder well need. This can be found at X:\Program Files\PostgreSQL\PostgreSQL8.3\Data

Then uninstall PostgreSQL 8.3 and it will leave the following folder X:\Program Files\PostgreSQL\PostgreSQL8.3\Data you need to copy all the files from the Dat folder on the disk to this location.

Then reinstall PostgreSQL 8.3 to the same location and during the installation when it asks for the username and password a 2nd time youll see an "Initialise Database Cluster" tickbox, untick this and finish the installation and then all should be fine.