Create user and matching database
To support a given application, you often create a new user and database to match.
The shell commands to run would be these:
$ createuser -P blogger
Enter password for the new role: ⚫⚫⚫⚫⚫⚫⚫⚫
Enter it again: ⚫⚫⚫⚫⚫⚫⚫⚫
$ createdb -O blogger blogger
This assumes that pg_hba.conf
has been properly configured, which probably looks like this:
# TYPE DATABASE USER ADDRESS METHOD
host sameuser all localhost md5
local sameuser all md5
Sign up or log in
Save edit as a guest
Join Stack Overflow
We recognize you from another Stack Exchange Network site!
Join and Save Draft