博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  mongdb

mongdb
摘要:https://blog.csdn.net/jianlong727/article/details/53484440 阅读全文

posted @ 2019-03-04 23:06 moss_tan_jun 阅读(613) 评论(0) 推荐(0)

摘要:传统的关系数据库一般由数据库(database)、表(table)、记录(record)三个层次概念组成,MongoDB是由数据库(database)、集合(collection)、文档对象(document)三个层次组成。MongoDB对于关系型数据库里的表,但是集合中没有列、行和关系概念,这体现 阅读全文

posted @ 2018-12-05 22:51 moss_tan_jun 阅读(1220) 评论(0) 推荐(0)

摘要:成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。输入help可以看到基本操作命令,只是MongoDB没有创建数据库的命令,但有类似的命令 如:如果你想创建一个“myTest”的数据库,先运行use myTest命令,之后就做一些操作(如:db.createC 阅读全文

posted @ 2017-05-26 12:25 moss_tan_jun 阅读(418) 评论(0) 推荐(0)

摘要:http://blog.csdn.net/sxb0841901116/article/details/40923841 cd D:\Program Files\MongoDB\Server\3.4\bin如下命令启动两个副本集:mongod --shardsvr --replSet shard-a 阅读全文

posted @ 2017-01-10 17:25 moss_tan_jun 阅读(140) 评论(0) 推荐(0)

摘要:启动命令 nohup /home/sh/local/mongodb-linux-x86_64-rhel62-3.4.0/bin/mongod -dbpath /home/sh/local/mongodb-linux-x86_64-rhel62-3.4.0/db & 启动 nohup /home/sh 阅读全文

posted @ 2017-01-10 14:10 moss_tan_jun 阅读(362) 评论(0) 推荐(0)