download it..
unzip it..
create the db directory..
Run and connect to the server..
1、创建一个聚集集合(table)
db.createCollection(“collName”, {size: 20, capped: 5, max: 100});
2、得到指定名称的聚集集合(table)
db.getCollection("account");
3、得到当前db的所有聚集集合
db.getCollectionNames();
4、显示当前db所有聚集索引的状态
db.printCollectionStats();
learing mongo~ ( part 1)
猜你喜欢
转载自mingzhip.iteye.com/blog/1717573
今日推荐
周排行