What you need to do is run the chpasswd script inside the <PRODUCT_HOME>/bin/ directory.
For an example, I need to change the admin password. So I pass the "username" command line argument also. If we do not provide these as command line arguments, it will be prompted for it during the execution time.
These are the steps you need to follow.
1. Extract the fresh ESB 4.9.0 instance.
2. Start the server.
3. Shutdown the server.
4. Run the below command and set the new password.
- For Linux: ./chpasswd.sh --username "admin" --db-url "jdbc:h2:repository/database/WSO2CARBON_DB"
- For Windows: chpasswd.bat --username "admin" --db-url "jdbc:h2:repository/database/WSO2CARBON_DB"
6. Login from the new password and it will log you into the Management Console.
Reference: