Re: Recover lost database from DATA folder
От | Richard Huxton |
---|---|
Тема | Re: Recover lost database from DATA folder |
Дата | |
Msg-id | 44D39042.8000906@archonet.com обсуждение исходный текст |
Ответ на | Recover lost database from DATA folder ("Rohit Prakash Khare" <rohitprakash123@indiatimes.com>) |
Список | pgsql-general |
Rohit Prakash Khare wrote: > I created few tables in one of my PostgreSQL database, but because of some connection > problems I uninstalled it. have a DATA folder of my previous PostgreSQL installation. I want to use this directory ona new computer where I have presently installed PostgreSQL. > > I am using PostgreSQL 8.1 and pgAdminIII 1.4.3 on Windows XP. I want that the database in my previous DATA file shouldget attached to the new pg AdminIII. I have not got any backup of the database, but only the DATA folder is left. > > Is there any way? If you have *all* the required files: 1. Stop PostgreSQL 2. Replace the existing data directory with your backup 3. Make sure the owner/permissions are correct. 4. Start PostgreSQL 5. Check the logs This assumes your data directory was backed up while PostgreSQL was stopped, otherwise there will probably be problems. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления: