![]() Then I was able to successfully connect to the MongoDB database, and view the Collections. I then verified the user with the “show users” command.Īfter creating the user, I was able to go back to my MongoVUE application, and enter the connection information in the “MongoVUE Connection”, with an example pictured below. In my example, I used “buddy” for both the name & password. Then I added a user with the command db.addUser, like db.addUser(” ”, ” “). In the Mongo shell I had to switch to the ‘pcat’ database, by typing “use pcat”. Second, we need a user that is permitted to access the database remotely. Now remote users are able to authenticate to the database. Then I restarted the Mongod process by typing “sudo service mongodb restart”. I removed the pound sign in front of the “auth = true”, and saved the file. Using an editor on that file (like vi), I was able to see that the authentication parameter for remote users was remarked out. The configuration file may reside in a different location based on your operating system & configuration at setup. On the server, by running ‘ps -ef | grep mongod’, I was able to see that the process was using the configuration file ‘nf’ that resided in the ‘/etc’ directory. The first step is to alter the configuration file that the process ‘mongod’ is using. Create a user that I can authenticate in the ‘pcat’ database. ![]() Configure the MongoDB software to authenticate for remote connections.Ģ. In this case, I had two issues with to resolves before I could connect and administer the ‘pcat’ database:ġ. However, when I clicked to view the Collections, I received the message: “Invalid credentials for database ‘pcat’. I appeared to receive a successful connection to the database using my OS logon & password. ![]() “Pcat” is the database that I am using in my training class. Up until this point, I have been doing everything in the Mongo shell.Īfter installing an evaluation version of MongoVUE, I attempted to have it connect to the my Mongo database called “pcat”. On a local virtual machine, I have a copy of MongoDB running on Ubuntu. ![]() ![]() Being new to the MongoDB database, only in my second week of training, I wanted to test the MongoVUE gui tool to see if it would help make my administration easier. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |