Within your Parallels Windows VM you should now be able to connect to vmhost:5432 with PGAdmin, Connection String, or whatever. When using Postgres.app simply open it up and click followed by Note: You might not be able to save directly here, so copy that file to somewhere you have access, edit it, and then copy it back overwriting the original for ease You should note down this password for logging in to the PostgreSQL database server later. Inside of your Parallels Windows VM, edit the hosts file which appears at C:\Windows\System32\drivers\etc\hosts and add the line below, replacing the IP address (10.211.55.2) with whatever you had from Step 6. Fifth, enter the password for the postgres user account. Open System Preferences -> Network and click on Parallels Shared Network (or similar) and note down the IP Address, default is usually 10.211.55.2 You may have to click the Lock Icon if this is grayed out. On the right pane check the box for "Show in System Preferences". Homebrew is a popular package manager for OS X. Open up Parallels and go to Menu Preferences -> Network and make sure you are in 'Shared' in the left pane. In this article, we’ll walk through the process of installing a Postgres database on a Mac OS X machine and set it up for Ruby on Rails development. I used a /32 at the end of mine (just in case the address changes) but you could likely use a /4 or /8 if you wanted to constrain this more: Modify $PGDATA/pg_hba.conf and add the following line, replace the 10.211.55.1 with whatever you had in Step 3.This will output some data, you should look for the line that says "Default Gateway" it may have an ipv6 address (which may appear as gibberish) but the address you are looking at looks like below:ĭefault Gateway. On your Parallels virtual machine open up a CMD Prompt and type 'ipconfig'.Modify $PGDATA/nf and add the following to the end of the file and save it (if you already have this defined, modify it as needed):.As of this writing that would be 11:Įxport PGDATA="/Users//Library/Application Support/Postgres/var-Įxport PGDATA="/Users/LimpingNinja/Library/Application Support/Postgres/var-11 Replace with your OSX username and the with your version.
0 Comments
Leave a Reply. |