createdb psql pass password code example Example: setup password psql sudo -u postgres psql postgres \password postgres \q