# ***************************************************************************** # BASICS # ***************************************************************************** sudo -u postgres psql # PSQL command line interface in full admin mode # Anything inside the angular brackets <> will be your variables sudo -u postgres createuser # Create user sudo -u postgres createdb # Create database # Setting a password for a user sudo -u postgres psql alter user with encrypted password ''; grant all privileges on database to ; # grant privileges on a database to a user