when i create a new user, but it cannot login the database. I do that like this:
postgres@Aspire:/home/XXX$ createuser dev Shall the new role be a superu
The easiest solution:
CREATE USER dev WITH PASSWORD 'dev'; CREATE DATABASE test_development; GRANT ALL PRIVILEGES ON DATABASE test_development to dev; ALTER ROLE dev CREATEROLE CREATEDB;