Steps:


Stop your backend services 


Stop all Services in AlwaysUp and or windows services


Change the password 

Login into Robo-T and connect to the admin database 

You need to be connected to the admin database - users section and find your admin user (usually admin) and double click as shown below 



once viewing the admin users user - remove all in the instruction in the prompt and replace with this where <your new password> is your new password

db.updateUser("admin", { pwd: "<your new password>" })

Ie 

db.updateUser("admin", { pwd: "abc123" })



Click play to execute the command and the result should be as per below:



Test Change

Open a new Robo-T instance and try connecting with your old password. You should get a connection error

Adjust your password to the new password and try again. This time your should be able to connect - 

Save your new password in Robo-T 


Adjust your configurations


Main Config

Navigate to either 

    c:\ProgramData\MQAttach\default.json 

or 

   c:\ProgramData\GTM\default.json 



and edit with Notepad and adjust your mongoDB section to have the new password 


Specifically this section 


"mongoDB": {
    "host": "mongodb://<user>:<password>@<host>:<port>/?authSource=admin",
    "dbName": "<db name>"
  },

Change the <password> to have your new password as required and save 


Scripts 

Navigate to your base installation directory (typically c:\MQAttach\ or c:\GTM) 

Tenants\DEFAULT\Launcher


Adjust the following batch files with Notepad to have your new password (if some are missing skip)


mongodb://<user>:<new password>@<host>:<port>/<DB name>?authSource=admin
  • compact_db.bat
  • binary_purge.bat
  • db_size.bat
  • mongo_backup.bat
  • mongo_export_collection.bat
  • mongo_backup.bat
  • mongo_backup_collection.bat
  • mongo_restore_collection.bat
  • mongo_update.bat


Restart IIS 


Test and Confirm 


1. You should now be able to Login to the new UI using your normal login. Using your browser navigate to the Base Login Page and confirm that you can see the login screen and are able to login 


2.Clear your logs 

Navigate to your base installation directory (typically c:\MQAttach\ or c:\GTM) 

Tenants\DEFAULT\Java\logs and clear all logs 


3. Restart your services in AlwaysUp 


4. Check the logs and ensure that connections are being made and that MQ Listeners are up and running 


5. Check the scripts 

Navigate to your base installation directory (typically c:\MQAttach\ or c:\GTM) 

Tenants\DEFAULT\Launcher\db_size.bat 


This should create a log called db_size.log in your Tenants\DEFAULT\Java\logs  directory - confirm that it does 



That is it your mongo password has now been altered