Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mongo1
- MongoDB server version: 3.4.9
- Server has startup warnings:
- 2017-11-20T11:03:02.360+0000 I CONTROL [initandlisten]
- 2017-11-20T11:03:02.360+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
- 2017-11-20T11:03:02.360+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
- 2017-11-20T11:03:02.360+0000 I CONTROL [initandlisten]
- reptempo:PRIMARY> show databases;
- admin 0.000GB
- dbTempo 2.409GB
- local 0.617GB
- reptempo:PRIMARY>
- mongo2
- MongoDB shell version v3.4.9
- connecting to: mongodb://127.0.0.1:27017
- MongoDB server version: 3.4.9
- Server has startup warnings:
- 2017-11-20T11:03:16.699+0000 I CONTROL [initandlisten]
- 2017-11-20T11:03:16.699+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
- 2017-11-20T11:03:16.699+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
- 2017-11-20T11:03:16.699+0000 I CONTROL [initandlisten]
- reptempo:SECONDARY> show databases;
- admin 0.000GB
- dbTempo 2.499GB
- local 0.623GB
- reptempo:SECONDARY>
- mongo3
- MongoDB shell version v3.4.9
- connecting to: mongodb://127.0.0.1:27017
- MongoDB server version: 3.4.9
- Server has startup warnings:
- 2017-11-20T11:03:24.939+0000 I CONTROL [initandlisten]
- 2017-11-20T11:03:24.939+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
- 2017-11-20T11:03:24.939+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
- 2017-11-20T11:03:24.939+0000 I CONTROL [initandlisten]
- reptempo:SECONDARY> show databases;
- 2017-11-21T07:53:32.274+0000 E QUERY [thread1] Error: listDatabases failed:{
- "ok" : 0,
- "errmsg" : "not master and slaveOk=false",
- "code" : 13435,
- "codeName" : "NotMasterNoSlaveOk"
- } :
- _getErrorWithCode@src/mongo/shell/utils.js:25:13
- Mongo.prototype.getDBs@src/mongo/shell/mongo.js:62:1
- shellHelper.show@src/mongo/shell/utils.js:769:19
- shellHelper@src/mongo/shell/utils.js:659:15
- @(shellhelp2):1:1
- reptempo:SECONDARY>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement