I've just set up RockMongo as per these instructions, but I can't see how to change my username/password from the defaults (admin/admin).
In the config.php file there are two commented out lines to set mongo_user and mongo_pass, but these are database specific (I believe), and I've tried changing them but the login credentials for RockMongo are still admin/admin.
Anyone know how to change them?
You need to change the line in config.php
just below where you were looking:
$MONGO["servers"][$i]["control_users"]["admin"] = "admin";
The first admin is the username and the second the password. There is a comment on that line mentioning the caveat that this only works if mongo_auth is set to false (which is the default).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With