Member-only story
Set up PostgreSQL on macOS
Get a ready-to-use PostgreSQL server with some simple steps on macOS
PostgreSQL became quite famous in the past years and you would maybe like to set it up on your own macOS machine. Well, you are at the right place!
Install homebrew
For this tutorial, we are going to use homebrew to install PostgreSQL.
Homebrew is a packaging manager for macOS and makes the installation of packages super easy!
To install homebrew, it’s simple, have a look at their website and copy the command line under Install homebrew. Then paste it into your terminal and follow the instructions.
Install PostgreSQL
Now that you have installed homebrew (unless you had it already) it’s time to install PostgreSQL.
First, we are going to update homebrew. Simply run brew update
and homebrew is going to update itself or just say it’s already up to date.
You can also run
brew upgrade
but you may not want to upgrade your installed packages. I like to do it from time to time as I like having my packages up to date!
Now that homebrew is up to date, you can install PostgresSQL by running the command brew install postgresql
The installation…