export PATH=/usr/local/mongo/mongodb-linux-x86_64-rhel62-3.0.15/bin:$PATH
mongorestore -h 127.0.0.1:27017 -u xlqi -p xlqi -d test --drop /usr/local/mongo/test/
mongodb 备份 与恢复命令
最新推荐文章于 2024-04-08 19:12:53 发布
export PATH=/usr/local/mongo/mongodb-linux-x86_64-rhel62-3.0.15/bin:$PATH
mongorestore -h 127.0.0.1:27017 -u xlqi -p xlqi -d test --drop /usr/local/mongo/test/