Skip to content

Instantly share code, notes, and snippets.

@pH-7
Last active December 18, 2023 02:44
Show Gist options
  • Save pH-7/2867b203ab014335b600b9187c5fc458 to your computer and use it in GitHub Desktop.
Save pH-7/2867b203ab014335b600b9187c5fc458 to your computer and use it in GitHub Desktop.
Install Postgres 14 on Mac OS

Install Postgres 14

First, make sure you have homebrew installed.

Then, in your terminal, run brew install postgresql@14.9

Login into psql postgres

start/stop postgres

brew services start postgresql@14

brew services stop postgresql@14

Connect to Postgres locally on Mac

You might have difficulties connecting with Postgres for the first time. Something that did work for me was using psql postgres command instead of the traditional one psql -U postgres

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment