データベースルールに新たにデータベース「accounting」を作成し、ユーザー「account_user」に接続権限を付与。作業ログをdiary.mdに追記。
This commit is contained in:
@@ -10,4 +10,23 @@
|
||||
|
||||
CREATE USER account_user WITH PASSWORD 'account_Hideyukey-1234';
|
||||
CREATE DATABASE accounting_db OWNER account_user ENCODING 'UTF8';
|
||||
\q
|
||||
|
||||
postgres=# CREATE DATABASE accounting OWNER account_user ENCODING 'UTF8';
|
||||
CREATE DATABASE
|
||||
postgres=# GRANT CONNECT ON DATABASE accounting TO account_user;
|
||||
GRANT
|
||||
|
||||
|
||||
root@x85-131-243-202:~# sudo -u postgres psql -c "\du"
|
||||
List of roles
|
||||
Role name | Attributes
|
||||
---------------+------------------------------------------------------------
|
||||
account_user |
|
||||
ai_ocr |
|
||||
appsmith_user |
|
||||
cerberus_user |
|
||||
filemaker | Create DB
|
||||
gitea_user |
|
||||
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS
|
||||
president |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user