We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,379 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Removing postgresql error

Hello, I want to reinstall postgreSQL. I uninstaled via control panel and then try to run the installer. I get error meesage that the service name postgresql 8.4 already exists, try diffrernt name. But I don't know how to change the name, it does not give any field to enter it. So I go to services and see there still exists postgre 8.4 service.

I google and found the command how to delete:

sc delete postgresql-8.4

I run this command and I get :

[SC] OpenService FAILED 5:

Access is denied.


can you help me delete the service so I could reinstall?


Actually what I wanted to do at first is to recover the database from another hard drive of dead computer. So I read tutorial that I need to reinstal the posgresql. At first I tried to just stop the service, put data folder from old disk to new instalation, but that did not work out, the service was not able to start.

2
Contributors
5
Replies
20 Hours
Discussion Span
1 Year Ago
Last Updated
6
Views
Question
Answered
SPeed_FANat1c
Posting Pro in Training
494 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 0

I think postgresql on Windows is one of those things where you have to reboot the computer after you uninstall it so it can deal with the background services it starts.

rubberman
Posting Maven
2,581 posts since Mar 2010
Reputation Points: 365
Solved Threads: 308
Skill Endorsements: 52

I think postgresql on Windows is one of those things where you have to reboot the computer after you uninstall it so it can deal with the background services it starts.

I have rebooted it after uninstall.

Edit:

btw I am using win 7

SPeed_FANat1c
Posting Pro in Training
494 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 0

Well, then you may need to go into services and stop/disable the servers that are causing this problem before you can reinstall postgresql.

rubberman
Posting Maven
2,581 posts since Mar 2010
Reputation Points: 365
Solved Threads: 308
Skill Endorsements: 52

Well, then you may need to go into services and stop/disable the servers that are causing this problem before you can reinstall postgresql.

Hmm, I stopped the posgresql service, and I thought thats enough. Or is there any other services which I should stop as well?

SPeed_FANat1c
Posting Pro in Training
494 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 0

removed postgre records in windows registry here and there, rebooted and it let me finally install. It all works now :)

SPeed_FANat1c
Posting Pro in Training
494 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 0
Question Answered as of 1 Year Ago by rubberman

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0799 seconds using 2.65MB