install postgresql mac code example
Example 1: postgres install mac
$ brew install postgresql
Example 2: how to open postgresql in mac
brew services start postgresqlpsql postgres
Example 3: install postgresql on mac
brew install postgresql
Example 4: postgresql create database mac
sudo psql -U postgres
psql: FATAL: role "postgres" does not exist
Example 5: postgresql create database mac
postgres=
CREATE DATABASE
postgres=
CREATE ROLE
postgres=
GRANT
postgres=
You are now connected to database "DB_NAME" as user "postgres".
DB_NAME=
REVOKE
DB_NAME=
GRANT
DB_NAME=
Example 6: how to open postgresql in mac
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"