Change the platformAdmin Database User Password

To change the platformAdmin.databasePassword, follow these steps:

Note: Use the application ID that owns the Splunk AppDynamics On-Premises platform installation when running the commands.
  1. Start the Enterprise Console, if it is not already running. Run the following command, replacing <EC_home> before running the command:
    <EC_home>/platform/platform-admin/bin: ./platform-admin.sh start-platform-admin
  2. Navigate to the <EC_home>/platform/mysql/bin directory.
  3. Log in to the database as the root user by running the following command:
    ./mysql -u root -p -h 127.0.0.1 -P 3377 --protocol=TCP
  4. Execute the following queries, replacing <new_password_here> before executing the query.
    update mysql.user set authentication_string=password('<new_password_here>') where user like 'platformadmin%'; flush privileges; quit;
  5. Verify the login by running the following command in the <EC_home>/Platform/mysql/bin directory:
    ./mysql -u platformadmin -p -P 3377 -h 127.0.0.1
  6. Navigate to the <EC_home>/platform/platform-admin/bin directory.
  7. Run the command below to encrypt the new password that was set for platformadmin in step 4.
    ./platform-admin.sh encrypt --text '<new_password_here>'
    Note: In Windows environments, single quotes (') are not supported on the command line. Windows users should wrap the <new_password_here> option in double quotes (").

    Take note of the encrypted password.

  8. Navigate to the <EC_home>/Platform/platform-admin/conf directory.
  9. Backup the PlatformAdminApplication.yml file.
  10. Using a text editor, such as vi, open the PlatformAdminApplication.yml file and find the encrypted password: line in the database: section.
  11. Update the encrypted password, replacing the text after the password: entry with the password noted after step 7 and save the changes.
  12. Stop the Enterprise Console by running the following command in the <EC_home>/Platform/platform-admin/bin directory:
    ./platform-admin.sh stop-platform-admin
  13. Start the Enterprise Console by running the following command in the <EC_home>/Platform/platform-admin/bin directory:
    ./platform-admin.sh start-platform-admin
  14. Validate that the Enterprise Console started successfully.