Hello,
I faced some troubles:
- firstly I run
mongo --host 192.168.103.100:27000 -u m103-admin -p m103-pass --authenticationDatabase admin
use applicationData
- db.createUser({ user: “m103-application-user”, pwd: “m103-application-pass”, roles: [ {role: “readWrite”, db: “applicationData”} ] })
- then I try in another terminal window run
validate_lab_first_application_user
, but I get the following feedback:
Client experienced a timeout when connecting to the database - check that mongod
is running on the correct port, and that the 'm103-application-user' user
authenticates against the admin database.
My config.yaml is the following:
net:
port: 27000
bindIp: 127.0.0.1,192.168.103.100
storage:
dbPath: /var/mongodb/db/
security:
authorization: "enabled"
systemLog:
destination: "file"
path: /var/mongodb/db/mongod.log
logAppend: true
operationProfiling:
mode: slowOp
slowOpThresholdMs: 50
What do I do in the wrong way?