From 02d8cd6a30336d4c6ec23d005dc3c7265f2fa738 Mon Sep 17 00:00:00 2001 From: president Date: Fri, 19 Dec 2025 17:13:09 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=BC=E3=82=BF=E3=83=99=E3=83=BC?= =?UTF-8?q?=E3=82=B9=E3=83=AB=E3=83=BC=E3=83=AB=E3=81=AB=E6=96=B0=E3=81=9F?= =?UTF-8?q?=E3=81=AB=E3=83=87=E3=83=BC=E3=82=BF=E3=83=99=E3=83=BC=E3=82=B9?= =?UTF-8?q?=E3=80=8Caccounting=E3=80=8D=E3=82=92=E4=BD=9C=E6=88=90?= =?UTF-8?q?=E3=81=97=E3=80=81=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E3=80=8C?= =?UTF-8?q?account=5Fuser=E3=80=8D=E3=81=AB=E6=8E=A5=E7=B6=9A=E6=A8=A9?= =?UTF-8?q?=E9=99=90=E3=82=92=E4=BB=98=E4=B8=8E=E3=80=82=E4=BD=9C=E6=A5=AD?= =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=92diary.md=E3=81=AB=E8=BF=BD=E8=A8=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database.rules | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/database.rules b/database.rules index 066f97a..73514a7 100644 --- a/database.rules +++ b/database.rules @@ -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 | +