Mac database with Boot Camp

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Re: Mac database with Boot Camp

Postby pat3392 » Mon Mar 14, 2011 2:04 am

Just attempted to do this and have already stumbled across a problem: I don't know what I'm doing and all the guides I found are either for having a database on a network using IP address(I don't think this is what I'm doing, aren't I essentially storing it on another hard drive?) or they were made to tailor XP

This is what I think I need to do:

Install the same version of PT3/postgreSQL on both os

Somehow make both postgreSQL share the same database(or is postgreSQL the database and I need PT3 to connect to the same postgreSQL?)

Go to PT3 and somehow get it to "see" the new database in the database management screen and set it as the default
pat3392
 
Posts: 142
Joined: Wed Jan 27, 2010 7:44 pm

Re: Mac database with Boot Camp

Postby kraada » Mon Mar 14, 2011 9:09 am

The easiest way to do this is during the installation process - you want to install the same version of PostgreSQL to the same physical hard drive location in both places - the database will be created identically regardless of operating system so it will work in both places. If you've already installed it in both operating systems, you can change the data directory used from one of the two installations - in which installation is it easier to see the other operating system's files for you?
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Mac database with Boot Camp

Postby pat3392 » Tue Mar 15, 2011 4:29 am

Uninstalled postgreSQL on both computers and started from scratch but alas, it doesn't seem like it would work. Following pictures will illustrate the error:

For some reason I can't upload images to the PT3 forums anymore, it keeps saying that it cannot deternmine the dimensions of the pictures. Hopefully you'll be able to view these URL

http://img821.imageshack.us/i/screenshot20110315at652.png/

http://img195.imageshack.us/i/screenshot20110315at652.png/

http://img851.imageshack.us/i/screenshot20110315at654.png/

I guess it means the two systems aren't compatible?
pat3392
 
Posts: 142
Joined: Wed Jan 27, 2010 7:44 pm

Re: Mac database with Boot Camp

Postby kraada » Tue Mar 15, 2011 8:46 am

The reference for the folder won't be the same on both sides - on the Mac side it's going to be in a normal Mac folder somewhere. How do you have your hard drive partitioned?
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Mac database with Boot Camp

Postby pat3392 » Wed Mar 16, 2011 9:31 am

Not sure what you mean by the reference.

Hard drive is partitioned via boot camp assistant
pat3392
 
Posts: 142
Joined: Wed Jan 27, 2010 7:44 pm

Re: Mac database with Boot Camp

Postby kraada » Wed Mar 16, 2011 9:33 am

There is no C: drive on the Mac side. It actually looks like it's easier to access the Mac side from Windows than vice versa - see this tutorial for details.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Mac database with Boot Camp

Postby pat3392 » Wed Mar 16, 2011 6:01 pm

oh of course I see what I did wrong. I'm still going to try and install in on the windows side still, would prefer it that way.

I changed the installation directory to: /Volumes/BOOTCAMP/Program Files/PostgreSQL yet the same error occurs
pat3392
 
Posts: 142
Joined: Wed Jan 27, 2010 7:44 pm

Re: Mac database with Boot Camp

Postby kraada » Wed Mar 16, 2011 6:10 pm

Then this time it's probably the second part of the error message that's the problem - that folder needs to be writable. You should be able to set the permissions in the info for the folder though, and once it's writeable by everyone you should be able to connect. See here for more details on how to change OS X permissions.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Mac database with Boot Camp

Postby pat3392 » Fri Mar 18, 2011 9:38 pm

According to the GUI, the folder is all readable and writable. However, that guide was written for an earlier version of OS X and hence, I'm not sure how reliable it is. I attempted to use terminal to verify if the folder is writable but failed; I have practically zero experience with terminal.
pat3392
 
Posts: 142
Joined: Wed Jan 27, 2010 7:44 pm

Re: Mac database with Boot Camp

Postby WhiteRider » Sat Mar 19, 2011 5:27 am

That tutorial applies to all recent versions of Mac OS, so should be fine. If you right click the folder in Finder and choose Get Info you can see (and change) permissions at the bottom of the window that opens, but you may still need to follow the Repair Permissions tutorial regardless - it may be showing incorrectly.
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

PreviousNext

Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 12 guests

cron