1. No password
1. Create a connection
After entering the ip to test the link
2. Password
set password
1. Select the primary database
>>> use ADMIN # Step 1. Select Master Data
switched to db admin
2. Set a user name and password
The second step to create a user name wwwwwww password root privileges highest authority 111111
> db.createUser ({the User: " wwwwwww " , pwd: "111111 " , the Roles: [ " root " ]}) Successfully added the User: { " the User " : " wwwwwww ", " Roles " : [ " the root " ]}
3. Command window Login
After setting the password for the database server to restart the normal data after the command to start - the auth
. / --Dbpath the mongod / Home / Keep / Desktop / Data / DB - the auth restart the client database using the password command starts with the client . / mongo 127.0 . 0.1 : 27017 / ADMIN -p -u wwwwwww 111111
remotely with password link too is the need to change the ip mongo.exe 192.168 . 0.25 : 27017 / ADMIN -p -u wwwwwww 111111
Visualization Tools link
A method using a long command link
1. Click file-> connect ..-> from URL
MongoDB: // username : password @ip: port
mongodb: // wwwwww : [email protected]: 27017
Method Two
1. Fill ip