If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Recover Database!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-11, 16:06
NeedHelpPls NeedHelpPls is offline
Registered User
 
Join Date: Jun 2011
Posts: 1
Recover Database!

Hi guys

Im a casual computer user and have no where else to run but this advanced forum..

I used postsql for a year now and gathered a lot of importent data in a database. A few days ago something went wrong with my OS so I had to do a format.

I have my old postsql folder intact on a c:\windows.old\ folder, but I cant seem to be able to detect it in any way..

Ive tried copiying entire data folder into a new database but it doesnt want to work. I used postsql 8.4 . Anyone have a clue how I should get this database to be detected ..?
Reply With Quote
  #2 (permalink)  
Old 06-26-11, 22:21
someidiot someidiot is offline
Registered User
 
Join Date: Mar 2011
Posts: 27
I'm not sure about running it on Windows, but if all the data files and logs are truly intact you just need to point the postgres binaries at that location. When starting the database I would simply:

pg_ctl start -D c:\windows.old\

On Windows, I guess you modify some config file or the service config?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On