MongoDB
启动Mongo
1)启动命令
mongod -dbpath d:\mongodb\data
2)作为windows服务启动D:\mongodb\bin>mongod --logpath d:\mongodb\logs\MongoDB.log --logappend --dbpath
d:\mongodb\data --directoryperdb --serviceName MongoDB --install
d:\mongodb\data --directoryperdb --serviceName MongoDB --install
mongo官网
http://www.mongodb.org/
C#驱动:samus,支持linq
https://github.com/samus/mongodb-csharp
windows客户端工具
http://blog.nosqlfan.com/html/502.html
http://www.mongovue.com/downloads/
常用命令
>show dbs
>use test
>show collections
>db 当前链接的数据库
>db.UserInfo.find().skip(3).limit(5)
>db.system.indexes.find()
>db.UserInfo.find({UserId:"1"})
>db.UserInfo.findOne()
>db.UserInfo.save({"name":"nametest","id":"1"})
>db.UserInfo.remove({name:"nametest"})
>db.deliver_status.dataSize()
>db.UserInfo.stats()
>db.UserInfo.totalIndexSize()
中文教程
http://blog.nosqlfan.com/html/617.html
http://www.cnblogs.com/lipan/archive/2011/03/08/1966463.html
博客
http://blog.nosqlfan.com
http://blog.nosqlfan.com/html/617.html
作者:青羽