Moving Database from one HD to another

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

Moderator: Moderators

Moving Database from one HD to another

Postby FriskyPirate » Wed Apr 22, 2009 11:25 am

My desktop computer is acting up so I wanted to move my pokertracker databse to my laptop. If I toss my desktop HD into an external USB enclosure and plug it into the laptop, can I drag and drop the PT3 database onto the new computer?

1. Is this technically possiblle?
2. Which files need to be moved? (or if you can direct me to a link to read about it)

thanks for your time

Andy
FriskyPirate
 
Posts: 19
Joined: Wed Dec 31, 2008 12:51 am

Re: Moving Database from one HD to another

Postby kraada » Wed Apr 22, 2009 3:15 pm

Andy,

Yes this is possible. Make sure that the database is stopped (Start --> Programs --> PostgreSQL --> Stop Services) before you shut down your desktop to remove the hard drive.

To copy the database, you'd want to copy C:\Program Files\PostgreSQL in its entirety to the laptop (put it in the same location; it makes things easier later). Then install PostgreSQL on the laptop normally but when you get to the section about initializing the database UNCHECK the initialize database checkbox (it will make that whole screen grey, that's what we want). Once PostgreSQL finishes installing it should recognize the old database.

For PT3 backup files, see this post (you still want to install PT3 normally though.)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Moving Database from one HD to another

Postby FriskyPirate » Wed Apr 22, 2009 11:19 pm

I'm unable to start stop the database of the desktop since I can't bring up anything on the monitor...either the video card or motherboard is bad. I do have the HD in a docking station currently. Can I move files without doing PostgreSQLop services? Also, on the laptop, PT3 and PostgreSQL are already installed...can I select specific files from the donor HD and place then in the laptop which has a fairly new install of PT3? Or should I delete the install and start again?
FriskyPirate
 
Posts: 19
Joined: Wed Dec 31, 2008 12:51 am

Re: Moving Database from one HD to another

Postby WhiteRider » Thu Apr 23, 2009 4:29 am

Is this computer running now?
IF you can turn it off then you will be able to copy the files.
Kraada knows more about postgres than I do so I'll let him get back to you when he comes on later.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Moving Database from one HD to another

Postby kraada » Thu Apr 23, 2009 2:42 pm

Who hasn't fiddled with a computer where you can't see the monitor before? ;)

Hit these exact keys in order to stop the database:

Win
R
C:\Program Files\PostgreSQL\8.3\bin\pg_ctl.exe stop
Enter

where Win is the windows key, R really is the 'r' key, and enter is 'enter'.

That should do it.

Alternately you can shut the machine down headless and it should stop the postgres service for you: the windows key, followed by the up arrow and return twice will shut the computer down.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Moving Database from one HD to another

Postby FriskyPirate » Thu Apr 23, 2009 4:49 pm

Thank you for the tips. I just finished typing blindly so I hope the database closed correctly. Here is a screen cap of the old directory which is now on the external HD dock. Old Directory

I am struggling with some new issues. I blindly tried to copy some directories last night. Then I went on tilt and tried to drag postgresql to the trash. I ran into permission issues. PT3 and the database were already running on the laptop and I guess what I should try and do now is a clean install. The postgresql directory is a mess and I am unable to delete the last three folders.

I have tried reinstalling postgresql and get to data screen and then this error. Currently, PT3 and SQL no longer work on the laptop. Am I screwed at this point? Will I ever be able to install the two programs again and run a HUD?

And if I remove the data folder, the install continues with a password screen. If I type my windows login, it says the password is incorrect so I'm unable to get past this spot.
FriskyPirate
 
Posts: 19
Joined: Wed Dec 31, 2008 12:51 am

Re: Moving Database from one HD to another

Postby kraada » Thu Apr 23, 2009 5:06 pm

I think a clean install is the way to go. You've likely damaged that database enough that it's not going to be recoverable, so what you should do is uninstall PostgreSQL completely, then delete the C:\Program Files\PostgreSQL directory. If you copy the folder from the external HD it looks like it likely got everything you need, so try moving that directory to C:\Program Files\PostgreSQL, and reinstalling while leaving "Initialize Database Cluster unchecked. If the data copied to the external HD properly, when the database comes up after the installation is complete you should see all of your data there.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Moving Database from one HD to another

Postby FriskyPirate » Thu Apr 23, 2009 5:55 pm

Half way there! The clean install worked. Thank you for all the help. Your reinstall PDF was a huge help. How do I now get PokerTracker to see that old large database...I am not sure how to find it.

Database > Database Maintenance >

then do I delete the tiny ones? Or do I click new and try to browse to it? Or should it just be there automatically.
FriskyPirate
 
Posts: 19
Joined: Wed Dec 31, 2008 12:51 am

Re: Moving Database from one HD to another

Postby kraada » Thu Apr 23, 2009 6:04 pm

Click new and try to browse to it. You should see it in the list if it's there.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests