Skip to content

Instantly share code, notes, and snippets.

@apostergiou
Forked from kingbin/gist:9435292
Created December 27, 2018 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apostergiou/d43948a9b43d3535a796ca46234710fa to your computer and use it in GitHub Desktop.
Save apostergiou/d43948a9b43d3535a796ca46234710fa to your computer and use it in GitHub Desktop.
Manually Start/Stop PostgresSQL on Mac
# Stop PostgreSQL from auto starting
sudo launchctl unload -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist
# Enable PostgreSQL to auto start
sudo launchctl load -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist
# Start postgres
$ sudo su postgres
Password:
bash-3.2$ pg_ctl -D /Library/PostgreSQL/9.3/data/ start
waiting for server to shut down.... done
server stopped
bash-3.2$
# Stop postgres
$ sudo su postgres
Password:
bash-3.2$ pg_ctl -D /Library/PostgreSQL/9.3/data/ stop
waiting for server to shut down.... done
server stopped
bash-3.2$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment