diff --git a/examples/database/README.md b/examples/database/README.md index a0085e4..9856be8 100644 --- a/examples/database/README.md +++ b/examples/database/README.md @@ -13,12 +13,24 @@ but you probably want the default format which is *aligned* `\password ` `GRANT ALL PRIVILEGES ON DATABASE TO ;` +## allow app user in postgresql + +add line **above** `local all all peer` + +```conf +# /etc/postgresql/11/main/pg_hba.conf +local md5 +local all all peer +``` + +and then restart postgresql `systemctl restart postgresql` + ## change database `\c ` ## create the database tables -`sudo -u postgres psql < create_database_tables.sql` +`sudo -u '' psql < create_database_tables.sql` ## sanity check In order to be able to register, login to the psql command line