CREATE USER visualscrapy WITH PASSWORD '123456';
# it will create the new user in postgres
CREATE DATABASE yourdbname;CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
$ sudo -u postgres createuser <username>
# https://www.postgresql.org/docs/8.0/sql-createuser.html
CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';
CREATE ROLE <username> WITH LOGIN PASSWORD '<pwd>';
$ sudo -u postgres createdb <dbname>
psql=# grant all privileges on database <dbname> to <username>
$ sudo -u postgres psqlpsql=# alter user <username> with encrypted password '<password>';