create local postgres database mac code example
Example 1: postgresql create database mac
sudo psql -U postgres
psql: FATAL: role "postgres" does not exist
Example 2: 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 3: postgresql create database mac
postgres=
DROP ROLE
Example 4: postgresql create database mac
brew install postgresql