启动:
./bin/mongod -f mongodb.conf
登录
./mongo 127.0.0.1:12307
查询语句:
db.getCollection('t_sys_device').find({"devNo":"HXP5181009042"}).pretty()
window 备份指令
C:\Program Files\MongoDB\Server\4.0\bin> mongodump -h localhost -d fushan_db -o E:\其他\sql\
window 还原指令
C:\Program Files\MongoDB\Server\4.0\bin>mongorestore -h localhost:27017 -d fushan_db D:\fushan_db\fushan_db