Mongodb
qq_26182553
这个作者很懒,什么都没留下…
展开
-
备份和恢复MongoDB
1> make sure all process which is writing mongodb are stopped. 2> dump database from GAMONGODB81 sudo ./mongodump --host gamongodb91:27017 --username 'GAEditor' --password '9AEd!t0r' --out /data/B原创 2017-07-13 11:06:27 · 453 阅读 · 0 评论 -
MongoDB 常用命令
create DB use newDBname; create collection db.newCollectionName.insert({m:"test"}); query by time db.DOL_LIVE.find({t:{'$gte':'2011-01-01 09:32:42,485','$lte':'2012-01-01 09:32:42,485'}}); query by原创 2017-07-13 11:06:20 · 197 阅读 · 0 评论