Skip to content

Instantly share code, notes, and snippets.

@mdavid626
Created April 4, 2023 09:43
Show Gist options
  • Save mdavid626/e7651e98f4566f5d0c2f95a9fa11e539 to your computer and use it in GitHub Desktop.
Save mdavid626/e7651e98f4566f5d0c2f95a9fa11e539 to your computer and use it in GitHub Desktop.
brew install postgres@13
sudo mkdir -p /usr/local/var/postgres
sudo chmod 775 /usr/local/var/postgres
sudo chown $(whoami) /usr/local/var/postgres
initdb /usr/local/var/postgres
createuser -s postgres
brew services restart postgres@13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment