PostgreSQLのユーザーおよび権限管理
594 ワード
ユーザーを作成し、ユーザー名とlinuxユーザー名を一致させます.
データベースを作成する権限を与えます.
ログインを容易にするために、ユーザー名と一致するデータベースを作成します.
データベースのすべての権限を該当するユーザーに付与します.
パスワードの変更:
create user with password '******';
データベースを作成する権限を与えます.
alter user createdb;
ログインを容易にするために、ユーザー名と一致するデータベースを作成します.
create database owner ;
データベースのすべての権限を該当するユーザーに付与します.
grant all privileges on database to ;
パスワードの変更:
alter user postgres with password 'new password';