1 2 3 4 5 6 7 8 9 10 11
| myrs:PRIMARY> use articledb switched to db articledb myrs:PRIMARY> db.auth("denial", "123456") 1 myrs:PRIMARY> db.comment.count() 4 myrs:PRIMARY> db.comment.find() { "_id" : ObjectId("641cc67ab8fd97e6b05dd3bd"), "articleid" : "100000", "content" : "今天天气真好,阳光明媚", "userid" : "1001", "nickname" : "Rose", "createdatetime" : ISODate("2023-03-23T21:36:58.736Z") } { "_id" : "1", "articleid" : "100001", "content" : "morning", "userid" : "1002", "nickname" : "lake", "createdatetime" : ISODate("2019-08-05T22:08:15.522Z"), "likenum" : 1000, "state" : "1" } { "_id" : ObjectId("641d5cc9546c2d2c0c5361b5"), "articleid" : "100002", "content" : "afternoon" } { "_id" : ObjectId("641d60da546c2d2c0c5361b7"), "articleid" : "100003", "content" : "evening" }
|