Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing default username/password in RockMongo

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?

like image 265
Jordan Wallwork Avatar asked Feb 29 '12 16:02

Jordan Wallwork


1 Answers

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).

like image 86
1133261 Avatar answered Sep 24 '22 08:09

1133261