From 37189c132268137d9e9844c69c61d2f656b49abe Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Fri, 8 Jan 2021 23:51:02 -0800 Subject: [PATCH] update database README --- examples/database/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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