You should now have Postgres running locally, and you should see a little elephant icon on the top right section of your menu bar. You might be asked if you want to open this application because it was downloaded from the internet. Once you have unzipped the download you will want to copy the Postgres app to your Applications folder and then open it. You can grab whatever version you need at the “Other versions” section of the page, but I will be using th emost recent version which currently uses PostgreSQL 9.6.0. It runs like any other you would download, can automatically start up with your Mac, and allows us to skip a lot of command line steps that used to be required to set up Postgres on a Mac. Postgres.app is about 50mb, and is by far the easiest way to setup Postgres on a Mac. The first thing we want to do is install PostgreSQL using Postgres.app. It is important to note that this step IS NOT required to use postgres, but it is nice to have so I suggest doing it. Once we have Postgres setup we will also look at adding all of the executables to our path so that we can type things like psql in the terminal in order to access Postgres. In this guide we are going to walk through installing PostgreSQL 9.6 on Mac OS X (10.7 or later) so that we can eventually start using it with a Go application, but you can follow along with this guide to set up Postgres for use with pretty much anything, including Rails, Django, or Go. PostgreSQL is an open source relational database system that has been around for well over a decade and has proven to be a great all around storage choice when developing a web application. How to install PostgreSQL 9.6 on Mac OS X (10.7 or later)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |