1sudo -u postgres psql
2postgres=# create database mydb;
3postgres=# create user myuser with encrypted password 'mypass';
4postgres=# grant all privileges on database mydb to myuser;
1CREATE DATABASE yourdbname;CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
1# https://www.postgresql.org/docs/8.0/sql-createuser.html
2CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';
1CREATE USER visualscrapy WITH PASSWORD '123456';
2# it will create the new user in postgres
1CREATE USER jonathan;
2CREATE USER davide WITH PASSWORD 'jw8s0F4';
3CREATE USER miriam WITH PASSWORD 'jw8s0F4' VALID UNTIL '2005-01-01';
4CREATE USER manuel WITH PASSWORD 'jw8s0F4' CREATEDB;