Configure PostgreSQL on your Mac from scratch

Felipe F Garcia
The Dev Project
Published in
9 min readApr 1, 2019

--

Here the intention is to teach how to do this on Mac only and using homebrew, if you are not interested in this way maybe could use some references but I don’t think that will satisfy everything about the installation.

If you don’t have Homebrew installed hit this command at your mac terminal, if you already have just skipped this:

/usr/bin/ruby -e "$(curl -fsSL [<https://raw.githubusercontent.com/Homebrew/install/master/install>](<https://raw.githubusercontent.com/Homebrew/install/master/install>))"

Go to the website Homebrew.

Now that you have, let’s install it by doing it on the terminal:

brew install postgresql

When finished let’s check if is working by typing on the terminal: postgres -V

And if is installed you should see something like this, depending on the version installed:

postgres (PostgreSQL) 11.2

But still is I believe that does not satisfy your basic needs, that is, have this up and running, you have two approaches one is to have this setup to always start the postgresql server or just when you want, here I will cover only when you want, as I prefer to have control always, I do not develop 100% of the time so what’s is the point always on ;).

--

--

Felipe F Garcia
The Dev Project

Backend Engineer 💻 Java 👾 Python 🐍 Top Writer in Medium at the topic Technology 🚀 With a mindset to help and share knowledge 📖.