How can I change the password of a user account for the back-end database?

How can I change the password of a user account for the back-end database?

Steps to change the password of a “Postgres” user account:

  • Shut down Applications Manager.
  • Open the Command Prompt as Administrator and go to the Applications Manager installation directory ($AppManager_Home/working)
  • Run startPGSQL.sh/startPGSQL.bat to start the PostgreSQL database.

Example

Windows Command:

AppManagerHome\working\bin>startPGSQL.bat

Linux Command:

AppManagerHome/working$./bin/startPGSQL.sh

  • Once the server has started, go to the PostgreSQL directory and execute the following command to connect with postgres database: (Get the postgresql database running port from AMServer.properties file in AppManager_Home/conf directory. Key is am.db.port)

Windows Command:

AppManagerHome\working\pgsql\bin>psql -p 15432 -U postgres -h localhost -d postgres

Linux Command:

AppManagerHome/working/pgsql/bin$./psql -p 15432 -U postgres -h localhost -d postgres

  • Once connected with database, execute the following query:

postgres=# ALTER USER postgres WITH PASSWORD ‘DBNewPwd’;

postgres=# \q

  • Go to the directory where Applications Manager is installed and open “database_params.conf” file under directory $AppManager_Home/working/conf.
  • Edit the following line and replace the existing password with new one:

    Existing Line :

    # login password for the database if any

    encryptedpassword eK6q1CJ9697s7O AppModules TopoDB-MapDB-EventDB-AlertDB-PollDB-PolicyDB-USERSTORAGEDB-ApplnDB

    Line with the new password :

    # login password for the database if any

    password DBNewPwd AppModules TopoDB-MapDB-EventDB-AlertDB-PollDB-PolicyDB-USERSTORAGEDB-ApplnDB

  • Shut down Applications Manager again to terminate the existing database connection and restart it. 

                  New to ADSelfService Plus?

                    • Related Articles

                    • How to enable HTTPS connection between end user and RUM Agent?

                      By default end user data will be collected and sent via HTTP connection to RUM Agent. To enable HTTPS connection you should have an valid SSL Certificate (keystore file basically), not a self signed certificate. For RUM Agent version below 4.0, Open ...
                    • Real User Monitoring Agent - Frequently asked questions

                      How to change Applications Manager details in RUM Agent? Open the AppServer.properties file located under <RUMAgent_Home>/conf/ directory in any text editor. Update Applications Manager hostname in apm.host key. Update Applications Manager SSL Port ...
                    • Steps to configure Azure PostgreSQL Database as Applications Manager's back-end

                      Applications Manager comes bundled with PostgreSQL. If you want to use your own PostgreSQL instead, follow the steps mentioned below: Prerequisites: A compatible PostgreSQL database should be accessible from Applications Manager installation. To know ...
                    • Real User Monitor (RUM) - Troubleshooting

                      If the monitor has not polled data for a long time, follow the steps below for troubleshooting: Step 1: Check the RUM Agent configuration Real User Monitor requires the RUM Agent to be installed and mapped to the Applications Manager. Refer the help ...
                    • How to Change Service User Account for EUM Agent in Windows?

                      When the EUM agent is installed as a service in Windows, it will be configured to use the Local System Account. However, running the EUM agent under the Local System Account does not provide sufficient permissions to run Chrome/Edge browser for Real ...