Setup - Mac M1
1. Install PostgreSQL using Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install postgresql
brew services start postgresql
psql --version
2. Initialize the Database
initdb /usr/local/var/postgrespg_ctl -D /usr/local/var/postgres start
3. Create a User and Database
4. Configure PostgreSQL
5. Connect to PostgreSQL
6. (Optional) Install pgAdmin
1. Install pgAdmin using Homebrew
2. Launch pgAdmin
3. Initial Setup
4. Connect pgAdmin to PostgreSQL
5. Verify the Connection
6. Troubleshooting (if needed)
Last updated