
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 · 321 阅读 · 0 评论 -
在ubuntu上安装MongoDB 来自mongo官方
Install MongoDB on Ubuntu Overview Use 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 · 1448 阅读 · 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 · 13220 阅读 · 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 · 2408 阅读 · 0 评论