UbuntuにPostgreSQLをインストール
環境
- OS
- Ubuntu10.10
- PostgreSQL
- 8.4.8
インストール手順
aptitudeで
$ sudo aptitude install postgresql
$ sudo aptitude install pgadmin3
postgresユーザのパスワードを設定
$ sudo passwd postgres
データベース作成
postgresユーザで
$ su - postgres
データベース作成
$ createdb testdb
データベース接続
$ psql testdb