Install PostgreSQL Database
Before you begin
-
Cisco recommends that a PostgreSQL DBA install and maintain the PostgreSQL server.
-
Read the security recommendations for the PostgreSQL database in section About Security Recommendations.
-
For information on supported versions, see External Database Setup Requirements.
Procedure
Step 1 |
Enter these commands to sign in to the database server as a Postgres user:
|
||||||||||||||||||||
Step 2 |
Create a new
database user. The example below creates a new database user called
|
||||||||||||||||||||
Step 3 |
Create the database. If your database contains ASCII characters only, create the database with SQL_ASCII encoding. If your database contains non-ASCII characters, create the database with UTF8 encoding. The example
below creates an SQL_ASCII database called
|
||||||||||||||||||||
Step 4 |
Configure user
access to the database. Edit the
|
||||||||||||||||||||
Step 5 |
Enter these
commands to define passwords for the
|
||||||||||||||||||||
Step 6 |
If you are
running the PostgreSQL version 8.3.7 or a later 8.3.x release, change the
permission of the
|
||||||||||||||||||||
Step 7 |
Configure the
connections to the database from remote hosts. Edit the listen_addresses
parameter in the
|
||||||||||||||||||||
Step 8 |
If you are
running PostgreSQL version 9.1.1, or higher, you must set the following values in the
|
||||||||||||||||||||
Step 9 |
Stop and restart the PostgreSQL service, for example:
|
||||||||||||||||||||
Step 10 |
Enter these
commands to sign in to the new database as the
Troubleshooting Tips Do not turn on
the following configuration items in the
|