Changing database credentials
To change the policy database credentials after the initial setup, run the setup tool again.
About this task
|
Running the |
Steps
-
Stop the Policy Editor.
bin/stop-server
-
Run
setupwith the options desired from the following set and specify the new credentials. To change from the default credentials, runsetupone time. To change from nondefault credentials, runsetupcombined by double ampersands (&&) with a secondsetup; in the first command, specify the current credentials for the admin user and the new credentials for the application user, and then in the second command, specify the new credentials for the admin user and the now-current credentials for the application user. See the examples.-
--dbAdminUsername -
--dbAdminPassword -
--dbAppUsername -
--dbAppPassword
The first example changes the credentials for the admin and application accounts from their defaults to
admin/Passw0rdandapp/S3cret, respectively.setup --dbAdminUsername admin \ --dbAdminPassword Passw0rd \ --dbAppUsername app \ --dbAppPassword S3cret \ --interactive
With the credentials no longer the defaults, to change the credentials, you need two
setupcommands. The first command uses the current admin credentials (admin/Passw0rd) and sets new application credentials (appandF0cu5). The second command then uses the newly set application credentials (appandF0cu5) to set new admin credentials (adminandS3cure).setup --dbAdminUsername admin \ --dbAdminPassword Passw0rd \ --dbAppUsername app \ --dbAppPassword F0cu5 \ --interactive \ && setup --dbAdminUsername admin \ --dbAdminPassword S3cure \ --dbAppUsername app \ --dbAppPassword F0cu5 \ --interactive
-
-
Start the Policy Editor.
bin/start-server