postgreSQL

switch over to Posgres user

sudo -i -u postgres



Then get into the sql terminal



psql


Edit password

sudo -i -u postgrespsql \password


Basically



sudo -u postgres psqlpostgres=# create database mydb;postgres=# create user myuser with encrypted password 'mypass';postgres=# grant all privileges on database mydb to myuser;



To quit


postgres-# /q