Go Back   Holdem Manager Forums > General > Manager General
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 03-14-2009, 07:40 PM   #1 (permalink)
Member
 
Join Date: Jan 2009
Posts: 96
Lightbulb Still Can't Connect to PosgreSQL? Try This!

So like many of you, I've been pulling my hair out for days because I could not get a connection to my database. After hours upon hours of research and failed attempts, I finally figured out a method that has worked on both of my comps and a friend's comp as well. Hopefully it will work for you as well. This worked for me on an XP PC, an XP laptop, and Vista Basic PC. Without further ado:

1. Do the standard step of fixing your host file
Instructions can be found here.

2. Uninstall any antivrus, anti-spyware, and firewall programs you may have.
This includes disabling windows firewall and windows defender, although you cannot uninstall them.

3. Follow steps 1 through 6 in FAQ 171
When you get step 6, stop after you have uninstalled PostgreSQL. DO NOT REINSTALL IT YET.

4. Find your PostgreSQL Data directory on your computer.
By default, this should be at C:\Program Files\PostgreSQL\8.3\data or something similar. Make note of its exact location and the exact name of the folder. You will need this info later. Now you need to Rename this Folder to something like data_original.

5. Now do a clean install of PostgreSQL.
Make sure you install the proper version number. If you were using 8.2, make sure you install 8.2. If you were using 8.3, install 8.3. Follow the instructions in FAQ 176. In step 5 of that FAQ, make sure you set up the data directory to match the info you wrote down in step 4 of this guide. Once you have PostgreSQL installed, verify that HoldemManager can connect to this new, empty database. You don't need to create a HoldemManager database, just verify that you can get a connection.

6. Now you need to copy some files from your new data directory to your old one.
Go to your newly created data directory and copy the following files:
pg_hba.conf
pg_ident.conf
PG_VERSION
postgresql.conf
and postmaster.opts
DO NOT COPY postmaster.pids

Go to your data_original folder and paste these files. They should already exist in that folder, so make sure you overwrite the exisiting ones. Also, delete the postmaster.pids file that should be in your data_original folder.

7. Uninstall PostgreSQL again.
After the uninstall has completed, go delete your data directory folder. Rename data_original so that it matches the name and location of the folder you just deleted.

8. Reinstall PostgreSQL using the steps in FAQ 177

9. Now Holdem Manager should be able to connect to your original database.
If you still can't connect, guess you're S.O.L.

10. Now reinstall and enable your firewalls, antiviruses, etc one by one.
After each one that you install or enable, make sure you test Holdem Manager to make sure it can still connect. If after installing or enabling something you can't connect to your database, then you have found the program that is most likely the cause of all this headache. Consult that programs support for ideas, or try another similar program.
__________________
People should not fear their governments. Governments should fear their people.

Last edited by fozzy71; 05-03-2010 at 10:33 AM. Reason: fix old faq links
PCP Poker is offline  
Old 03-15-2009, 09:33 PM   #2 (permalink)
Junior Member
 
Join Date: Mar 2009
Posts: 2
Default

this worked for me. took a while but obv worth it. thank you sir
bandin is offline  
Old 03-16-2009, 12:01 PM   #3 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 5
Default

Hello, I suddenly can not run holdem manager, problem would probably me in connection to postgress but I tried everything from FAQ and your new advice, but nothing changed...I even do not want to connect to my old databese, it is not problem to make a completely new database, but even after I unistall holdem manager and postgres and delete remaining folders and then make a new instalation of both programs...stil sam problem...please help
K4SIUS is offline  
Old 03-16-2009, 12:46 PM   #4 (permalink)
Member
 
Join Date: Dec 2008
Posts: 57
Default

I have two computers. And only one of them HEM works.

Can I copy any of the files from the working computer to the non-working computer to make HEM work instead of going through this long process?
langejan is offline  
Old 03-16-2009, 12:47 PM   #5 (permalink)
Moderator
 
morny's Avatar
 
Join Date: Jul 2008
Location: Ireland
Posts: 18,621
Default

Anyone having issues with this email me morny@holdemmanager.net and well do a teamviewer session, make sure you have steps 1-3 completed before we start the teamviewer session which includes completely uninstalling all antiviruses/firewalls/spyware etc
__________________
==========================IMPORTANT LINKS=========================
Latest Beta -- FAQ -- Manual -- Quick Start Guide -- Uservoice -- License registration
--- Postgresql not working -- Top 10 Performance Tips -- HUD FAQ -- Hud Videos ---
morny is offline  
Old 03-17-2009, 09:10 AM   #6 (permalink)
Member
 
Join Date: Jan 2009
Posts: 96
Default

Quote:
Originally Posted by langejan View Post
I have two computers. And only one of them HEM works.

Can I copy any of the files from the working computer to the non-working computer to make HEM work instead of going through this long process?
Most likely not. The problem is that the postgres service can't be restarted, and just changing a couple files isn't going to fix that. Only a full blown reinstall got it working in the end for me. But, your situation may be different, never hurts to try. The files contain information specific to the computer they are stored on, so unless the hardware profiles of your 2 computers are very similar, I doubt it would have any effect.
__________________
People should not fear their governments. Governments should fear their people.
PCP Poker is offline  
Old 03-17-2009, 01:12 PM   #7 (permalink)
Junior Member
 
Join Date: Mar 2009
Posts: 8
Default

Wow that hurts big time.

I have that problem on my other PC and I really wish there would be another (easier or faster) way to get it back working...

The whole process will prob. take two hours?
I really hope its worth it.

Oh and: "2. Uninstall any antivrus, anti-spyware, and firewall programs you may have."

- Are you serious?
WikiBruce is offline  
Old 03-17-2009, 07:13 PM   #8 (permalink)
Member
 
Join Date: Jan 2009
Posts: 96
Default

Quote:
Originally Posted by WikiBruce View Post
Wow that hurts big time.

I have that problem on my other PC and I really wish there would be another (easier or faster) way to get it back working...

The whole process will prob. take two hours?
I really hope its worth it.

Oh and: "2. Uninstall any antivrus, anti-spyware, and firewall programs you may have."

- Are you serious?
Depends on how fast your hardware is and your level of computer experience. By the 4th pc I did this on, it only took me 20 minutes or so. First couple times an hour tops.....

As far as uninstalling antivirus and firewall programs.....unfortunately that is a very necessary step. These programs monitor and block network traffic. Even though the database is located on your computer, PostgreSQL functions just like a web server. All communication between PostgreSQL and any program that attempts to access it goes through a port on your Network Card. These programs can get in the way of that communication happening.

My advice to keep your computer safe during this process is to download all of the necessary files ahead of time and then completely disconnect your computer from the internet before starting this process.

Also, if you have an antivirus or firewall program that you paid for, make sure you find out how to renew your license for that program once you uninstall and reinstall it. Some programs have limits on how long after purchase you are able to reinstall. Consult that progams support before uninstalling anything just to make sure you're not going to lose access to it.
__________________
People should not fear their governments. Governments should fear their people.
PCP Poker is offline  
Old 03-17-2009, 07:16 PM   #9 (permalink)
Member
 
Join Date: Jan 2009
Posts: 96
Default

Also, please keep in mind guys that this whole situation was in no way a defect or fault in Holdem Manager. Most of this was all caused by a patch to Micro$oft Windows that interfered with the ability of PostgreSQL to communicate with the rest of your system.

Also, FWIW, I'm also not affiliated with the programmers of Holdem Manager in any way. I'm just a paying customer like the rest of you, but I really love this program and the effect it has had on my game....
__________________
People should not fear their governments. Governments should fear their people.
PCP Poker is offline  
Old 03-17-2009, 08:12 PM   #10 (permalink)
Junior Member
 
Join Date: Nov 2008
Posts: 11
Default

Quote:
Originally Posted by PCP Poker View Post
faq/?f=176"]

7. Uninstall PostgreSQL again.
After the uninstall has completed, go delete your data directory folder. Rename data_original so that it matches the name and location of the folder you just deleted.
Could you be abit more specific? What folder are we talking about that I should delete?

I am so desperate and frustrated that my head is going to blow up!

Hold'em manager not working is ruing everything for me. I use about 3hours each day to get it working.

If someone could fix this problem for me I would be over my head
karimdaniel is offline  
Closed Thread

Thread Tools
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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hold em manager trial issues w posgresql or something? Higgleop Manager General 1 10-06-2009 02:50 PM
download holdem manager and posgresql hanneklofter Manager General 1 07-22-2009 09:10 AM
PosgreSQL instalation problem SpTB Manager General 1 06-22-2009 09:39 PM
installing posgreSQL NFTS problem Antny Manager General 1 04-20-2009 06:36 PM
Reinstalling posgresql JohnGalt65 Manager General 8 01-10-2009 12:54 PM


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2 All Rights Reserved 2008
All times are GMT -4. The time now is 04:21 PM.