Configuring PostgreSQL
Configuring PostgreSQL is divided into the following steps:
- Connecting as a PostgreSQL user
- Starting the Administration Tool
- Creating a user for BMC Client Management
Type the command
# su - postgres
to activate the PostgreSQL user into a terminal window.All administrative operations are initially carried out by the PostgreSQL user. However, at the end of the installation process this user does not have a password, that is, the user account is blocked. You therefore need to activate the user to be able to carry out all required administratrive operations.
- Type the command
# psql
to start the administration tool:
- Type the command
# CREATE USER <username>;
to create the Client Management user. Enter the command
# ALTER ROLE <username>;
.By doing so you provide the user the possibility to create new databases.
Enter the command
# CREATE DATABASE <database_name> OWNER <username>;
to create a database.If you give the database the same name as the user you connect to it with, the client connects with that database by default.
Enter the command
# ALTER USER <username> WITH ENCRYPTED PASSWORD <mypassword>;
to assign the user a password.Assigning the user a password is necessary to establish a connection with the database. The
ENCRYPTED
option allows the use of md5 in thepg_hba.conf
file.- Enter
# \q
to quit pgSQL. - Enter
# exit
to log the PostgreSQL user off.
The database is now set up and configured for use with the BMC Client Management agent. However, before you can install the CM master on this computer, you need to ensure that the prerequisites that are listed in the Prerequisites for Postgres 9 and later topic in the Linux Installation section are fulfilled.
Comments
Log in or register to comment.