This post is about postgresql commands and other stuffs about it. It will updated when I update it.
)
Change PosgreSQL postgres user password
sudo -u postgres psql postgres postgres=# ALTER USER postgres WITH ENCRYPTED PASSWORD 'a'; ALTER ROLE postgres=# \q
Create a database with a user that have full rights on the database:
sudo -u postgres createuser -D -A -P myuser sudo -u postgres createdb -O myuser mydb
Recent Comments