# Default user is postgres with no password # To change user use: sudo -u postgres # To connect to database use: psql mydatabase
$ sudo -u postgres psql
# in the terminal set PGUSER=ExampleUser