createdb with postgresql on ubuntu

Solutions on MaxInterview for createdb with postgresql on ubuntu by the best coders in the world

showing results for - "createdb with postgresql on ubuntu"
Niclas
21 Oct 2020
1susudo -u postgres
2psqlpostgres=# create database mydb;
3postgres=# create user myuser with encrypted password 'mypass';
4postgres=# grant all privileges on database mydb to myuser;