createuser -s -P <username> # the CLI will ask you to enter the password
createdb -O <username> <dbname>
Please replace names like <username>
and <dbname>
with your own names.
CREATE USER <username> WITH PASSWORD '<password>' SUPERUSER;
CREATE DATABASE <dbname> OWNER <username>;