| 7. postmasterの起動、ユーザーの作成、DBの作成 |
7.1 postmasterの起動
| pg_ctl start |
$ LOG: database system was interrupted at 2003-09-05 16:26:10 LOG: checkpoint record is at 0/84D858 LOG: redo record is at 0/84D858; undo record is at 0/0; shutdown FALSE LOG: next transaction id: 509; next oid: 25168 LOG: database system was not properly shut down; automatic recovery in progress LOG: ReadRecord: record with zero length at 0/84D898 LOG: redo is not required LOG: database system is ready |
上記のようなメッセージが表示され、postmasterが起動します。
7.2 ユーザーの作成 createuser
次に
| createuser test |
| Shall the new user be allowed to create databases? (y/n) |
| Shall the new user be allowed to create more new users? (y/n) |
| CREATE USER |
7.3 DBの作成 createdb
次に
| createdb test |
| CREATE DATABASE |
と表示されたら新規DB testが作成されています。
*注1
ipc-daemonをまだ起動していない場合は先に
| ipc-daemon & |
補足1
不要なユーザー testは
| dropuser test |
補足2
不要なDB testは
| dropdb test |
補足3
postmasterを停止したい場合は
| pg_ctl stop |
WindowsでPostgreSQL 記事 一覧



