Mongo
魔道晓树
这个作者很懒,什么都没留下…
展开
-
MongoDB Redis 外部访问加验证
mongodb首先默认无密码启动1 添加root用户:db.createUser( { user: "root", pwd: "password", roles: [{"role":"root","db":"admin"}], /* All built-in Roles Database User Roles: read|readWrite Database Admin Roles: dbAdmin|dbOwner|user原创 2020-07-24 17:58:37 · 247 阅读 · 0 评论 -
在ubuntu上安装MongoDB 来自mongo官方
Install MongoDB on UbuntuOverviewUse this tutorial to install MongoDB on Ubuntu Linux systems. The tutorial uses .deb packages to install. While Ubuntu includes its own MongoDB packages, the转载 2014-04-15 14:07:43 · 1374 阅读 · 0 评论 -
Mongodb 多集合 多表 统计实战
Mongodb 多集合 多表 统计实战完成以下报表: 涉及到的表person、appointmentRecord人数统计在person表使用聚合函数 db.Person.aggregate()就行[ { $match: { 'dateOfBirth': { $gt: '1986-12-02', $lt: '1996-12-02',原创 2016-12-07 17:24:54 · 13085 阅读 · 0 评论 -
Java Mongo 查询错误
com.his.mongodb.exception.SystemMongoDBException: com.mongodb.MongoQueryException: Query failed with error code 2 and error message ‘bad sort specification’ on server解决: Document sort = new Docume原创 2017-07-05 15:19:20 · 2291 阅读 · 0 评论