PostgreSQL データベースのインストール
始める前に
-
シスコでは、PostgreSQL DBA が PostgreSQL サーバをインストールして保守することを推奨しています。
-
セキュリティの推奨事項について の項で PostgreSQL データベースのセキュリティの推奨事項をご覧ください。
-
サポートされているバージョンの詳細については、外部データベースの設定の要件 を参照してください。
手順
ステップ 1 |
次のコマンドを入力して、Postgres のユーザとしてデータベース サーバにサイン インします。
|
||||||||||||||||||||
ステップ 2 |
新しいデータベース ユーザを作成します。次の例では、
|
||||||||||||||||||||
ステップ 3 |
データベースを作成します。データベースに ASCII 文字のみが含まれる場合、SQL_ASCII の符号化でデータベースを作成します。データベースに ASCII 以外の文字が含まれる場合、UTF8 の符号化でデータベースを作成します。 次の例では、
|
||||||||||||||||||||
ステップ 4 |
データベースへのユーザ アクセスを設定します。
|
||||||||||||||||||||
ステップ 5 |
次のコマンドを入力して、
|
||||||||||||||||||||
ステップ 6 |
PostgreSQL バージョン 8.3.7 またはそれ以降の 8.3.x リリースを実行している場合は、
|
||||||||||||||||||||
ステップ 7 |
リモート ホストからのデータベースへの接続を設定します。
|
||||||||||||||||||||
ステップ 8 |
PostgreSQL バージョン 9.1.1 を実行している場合、
|
||||||||||||||||||||
ステップ 9 |
PostgreSQL サービスを停止し、再起動します。例:
|
||||||||||||||||||||
ステップ 10 |
次のコマンドを入力して、
トラブルシューティングのヒント
|