installing postrgres 9: how to restore in PGAdmin?

Experiencing technical difficulties? Think you've found a problem with PokerTracker 3? Report it here.

Moderator: Moderators

installing postrgres 9: how to restore in PGAdmin?

Postby cris70 » Sat Aug 06, 2011 3:15 am

hello and TY in advance,
I've installed postgres9 and, before it, I've done a backup of my database (saved in .zip file by PT3).
Now, I'm trying to restore in PGadmin the DB under Postgres9 (it created a db named "postgres" and I can right click on this and find "restore"), and in the popup windows I browse for the backup file, but It needs a .backup file. OK, i've extracted the DB0.backup file from the .Zip file but when I browse and choose it, then the 'ok' button is still unclickable.

Where I'm wrong?

Hoping being clear enough...
bye
cris
cris70
 
Posts: 15
Joined: Mon Jul 06, 2009 2:40 pm

Re: installing postrgres 9: how to restore in PGAdmin?

Postby WhiteRider » Sat Aug 06, 2011 4:33 am

You can restore the backup made by PT3 directly within PT3, from the File menu.
Tutorial: Backup and Restore
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: installing postrgres 9: how to restore in PGAdmin?

Postby cris70 » Sat Aug 06, 2011 10:58 am

thanks.
I tried and it seemed to restore all. At the end of the sequence, it told me "it's ok but there were some errors".
But after restart, PT3 gave me 0 players in the database.

Those are the errors it gave me on the staus windows popup panel:
PT3 DB Decompressing...Connect Error
Remove Temp TOC File...OK
Remove Temp Undo Folder...OK
Temp Databases Files...OK
Temp Optional Files...OK
Temp Aggregated Files...OK
Remove Temp Folder...OK
-------------------
Restore Complete. PokerTracker must to be restarted for all changes to take effect.

where am I wrong?
ty
cris70
 
Posts: 15
Joined: Mon Jul 06, 2009 2:40 pm

Re: installing postrgres 9: how to restore in PGAdmin?

Postby WhiteRider » Sat Aug 06, 2011 11:13 am

That doesn't look as if the database was restored - do you get the same error if you restore again?
Do you still have the old PostgreSQL version installed?
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: installing postrgres 9: how to restore in PGAdmin?

Postby cris70 » Sat Aug 06, 2011 11:32 am

Retrying, it's the same with the same error message.
Now I try to explicate everything:
first of all, launching pt3, it give me a popup in which ask me to configure postgresql db and if I check "db already exist" and browsedb, it give me this error: "unable to login to db reason:could not connect to server, connection refused ect"; but, if I change the port in 5490 and browse db, it find one of 2 dbs I have under Postgresql 9.0.4.

After this it tells me the connnection is ok and ask me to change configuration to set this db also as default DB.
Then open PT3 windows and I try to restore the .zip file I backupped previously. In database management i can see, above and on the right side that the version of Postgresql is 9.0.4.
Every time I try, the results and the messages are the same as the previous post.

I'm really not an expert, so I want to tell you also that in pgadmin I can see two DBs under postgresql 9.0.4: the one also PT3 recognizes during this process and another one called simply "postgres", never recognized by pt3.

Do I have to do anything in pgadmin, now?
Do I have to delete Postgresql 8.3?

Thanks in advance for patience, I'm really bad with this stuff...sorry
cris70
 
Posts: 15
Joined: Mon Jul 06, 2009 2:40 pm

Re: installing postrgres 9: how to restore in PGAdmin?

Postby WhiteRider » Sat Aug 06, 2011 12:47 pm

You shouldn't need to do anything in PGAdmin - whatever you do, do NOT touch the database called "postgres".

Assuming that you still have the old PostgreSQL installed..
What I would do is start the old version (8.3 or 8.4) again - click Start (on XP click Run) and type "Services" - and then start PT3 up. Connect to the original database and make another Backup.
Create a new database specifying port 5490 so that it uses 9.0 and set that to be active. This is only so that we can force PT3 to connect to 9.0 - we can delete this later, so just call the new DB "temp" or something.
Again in Database > Database Management click Restore and restore the backup you just made.

If this doesn't work please let me know.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: installing postrgres 9: how to restore in PGAdmin?

Postby cris70 » Sat Aug 06, 2011 2:30 pm

ehm...How can I "start" the old postgresql? Do I have to open Prompt from the program or what? Do I have to click on "start service"?
cris70
 
Posts: 15
Joined: Mon Jul 06, 2009 2:40 pm

Re: installing postrgres 9: how to restore in PGAdmin?

Postby cris70 » Sat Aug 06, 2011 2:48 pm

cris70 wrote:ehm...How can I "start" the old postgresql? Do I have to open Prompt from the program or what? Do I have to click on "start service"?



also: if I try to connect to old database I get this message..."could not connect to server: connection refused (0x0000274d/10061) Is the server running on host "localhost" and accepting TCP/IP connections on port 5432?"

I got this message also trying to connect old postgresql from pgadmin before...I don't know if it is useful for you.
TY
cris70
 
Posts: 15
Joined: Mon Jul 06, 2009 2:40 pm

Re: installing postrgres 9: how to restore in PGAdmin?

Postby WhiteRider » Sat Aug 06, 2011 3:14 pm

WhiteRider wrote:...click Start (on XP click Run) and type "Services"...

In the Services window (you can find it via Control Panel too) find the PostgreSQL service - there should be one for 8.3 (or whatever you had) and one for 9.0 (unless you uninstalled the old version?) - right click it and you can start or stop the services there.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: installing postrgres 9: how to restore in PGAdmin?

Postby cris70 » Sat Aug 06, 2011 4:15 pm

WhiteRider wrote:
WhiteRider wrote:...click Start (on XP click Run) and type "Services"...

In the Services window (you can find it via Control Panel too) find the PostgreSQL service - there should be one for 8.3 (or whatever you had) and one for 9.0 (unless you uninstalled the old version?) - right click it and you can start or stop the services there.



I didn't uninstall the old postgresql (8.3).
Now I found "start services" and "stop services" under old postgresql and I clicked on "start service". A popup appeared and then faded immediately. Nothing more.
I run PT3 but in database management I can see always in the top right that is running Postgresql 9.0.4. No way to connect to older DB and no way to restore from file.
cris70
 
Posts: 15
Joined: Mon Jul 06, 2009 2:40 pm

Next

Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests