データベースのスーパーユーザー、たとえば postgres としてログインします。
# su - postgres |
> createuser -P arco_write Enter password for new user: Enter it again: Shall the new user be allowed to create databases? (y/n) y Shall the new user be allowed to create more new users? (y/n) n CREATE USER |
アカウンティングおよびレポート用のデータベースを作成します。
> createdb -O arco_write arco CREATE DATABASE |
データベースを読み取るためのデータベースユーザーを作成します。
arco_read ユーザーを使用しない場合、次の手順で使用する特権スクリプトの内容を修正する必要があります。
> createuser -P arco_read Enter password for new user: Enter it again: Shall the new user be allowed to create databases? (y/n) n Shall the new user be allowed to create more new users? (y/n) n CREATE USER |