How to Shrink the MongoDB 7.0 Oplog
The good news is that in MongoDB 7.0, you don’t have to drop collections or destroy anything to fix this. You can resize it dynamically on the fly without a…
The good news is that in MongoDB 7.0, you don’t have to drop collections or destroy anything to fix this. You can resize it dynamically on the fly without a…
FIRST START mongodb --bind_ip_add open console: mongosh use admin admin> db.createUser({user: "admin",pwd: "newPassword", roles: }) admin> db.changeUserPassword("admin","******") admin> db.updateUser("admin", { roles: }); admin> db.updateUser("admin", { roles: }); admin> show users[{_id:…
rs01 [direct: primary] admin> show users MongoServerError: command usersInfo requires authentication rs01 [direct: primary] admin> rs.printReplicationInfo() MongoServerError: command listCollections requires authentication rs01 [direct: primary] admin> db.auth("rocketchat","****"); { ok: 1 }…
Woke up this morning (2023/01/27) to this mess: mongosh