How do I create a postgreSQL database if I already have it?

Hold'em or Poker Tracker Hold'em related posts go here

How do I create a postgreSQL database if I already have it?

Postby jmflu » Fri Aug 22, 2008 5:02 am

I already have postgreSQL 8.2 installed for PT3 and the documentation about the postgresql dbs on here tell you to install it, should I do a second install or can I just use my already installed version to create a db for pt2?

thx
jmflu
 
Posts: 318
Joined: Sun Mar 30, 2008 10:31 pm

Re: How do I create a postgreSQL database if I already have it?

Postby WhiteRider » Fri Aug 22, 2008 5:12 am

You can use the already installed version - PT2 should pick up the postgres service that is running.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: How do I create a postgreSQL database if I already have it?

Postby jmflu » Fri Aug 22, 2008 5:21 am

well for some more into I just had problems with PT3 db and I uninstalled and removed both versions (postgres 8.2 and 8.3) and re installed (8.2) using the doc from here viewtopic.php?f=45&t=8047#p36976 and I re installed and it fixed my PT3 problem and I am in the process of re importing my db, now I am trying to get my PT2 db re imported (because I uninstalled/deleted both 8.2 and 8.3 versions of postgres just a few mins ago) but when I create a db in pt2 and try to convert it I get this message...

[ img ]

So pt3 db is working fine but now pt2 says cant connect.
Last edited by jmflu on Fri Aug 22, 2008 5:38 am, edited 1 time in total.
jmflu
 
Posts: 318
Joined: Sun Mar 30, 2008 10:31 pm

Re: How do I create a postgreSQL database if I already have it?

Postby WhiteRider » Fri Aug 22, 2008 5:31 am

That message says that PT2 is trying to use port 5433 to access postgres - if you have a single installation then postgres is probably on port 5432.
Have a look at the postgres settings under the Utilties menu.
There may be more to it than just changing the port number here, I'm not sure, but that's worth a try until Pat comes online.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: How do I create a postgreSQL database if I already have it?

Postby jmflu » Fri Aug 22, 2008 5:35 am

Well I dont know much about how this works but under pgAdmin it only shows a server for 8.2 and port (5432 - the one pt3 uses right?) but there is nothing for port 5433 how do I get a server created for 5433 and pt2?
jmflu
 
Posts: 318
Joined: Sun Mar 30, 2008 10:31 pm

Re: How do I create a postgreSQL database if I already have it?

Postby WhiteRider » Fri Aug 22, 2008 5:46 am

I think it's the other way round - you need to configure PT2 to use 5432.
Utilities -> Postgres Settings...
Try changing it to port 5432 and restart.
(There may be more settings you need to change too, but that might do it..)
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: How do I create a postgreSQL database if I already have it?

Postby jmflu » Fri Aug 22, 2008 5:48 am

in the settings on pt2 the port is greyed out at 5433 and I cant change it but when I look at my pt3 db info it says port 5432 so I think that is the right order.
jmflu
 
Posts: 318
Joined: Sun Mar 30, 2008 10:31 pm

Re: How do I create a postgreSQL database if I already have it?

Postby WhiteRider » Fri Aug 22, 2008 6:08 am

OK, then Pat will have to tell you how to set this up, I'm afraid.
The point is that the postgres service is running on port 5432, so PT3 and PT2 both need to connect to it on that port.
You have one postgres service running that both will connect to.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: How do I create a postgreSQL database if I already have it?

Postby jmflu » Fri Aug 22, 2008 6:11 am

ahhh actually there is an 'add' button that I was able to change the port to and it worked, thanks for the help I should have seen that earlier.
jmflu
 
Posts: 318
Joined: Sun Mar 30, 2008 10:31 pm

Re: How do I create a postgreSQL database if I already have it?

Postby WhiteRider » Fri Aug 22, 2008 6:22 am

Great, glad you got it working.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to PokerTracker Holdem

Who is online

Users browsing this forum: No registered users and 0 guests