Fedora9にyumでpostgresqlをインストールした
まず、yum
[root@localhost]~# yum install postgresql.i386 postgresql-server.i386
初期化
ユーザpostgresになってから、初期化する
[root@localhost]~# su - postgres
[root@localhost]~# initdb -E UTF-8 --no-local
データペース開始
ユーザrootで以下のコマンドを実行。
[root@localhost]~# /etc/init.d/postgresql start
ユーザの追加
ユーザpostgresで以下のコマンドを実行。
$ createuser rdera Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) y Shall the new role be allowed to create more new roles? (y/n) n
/var/lib/pgsql/data/以下に設定ファイルなどが作成される。