mongorestore -h 127.0.0.1 --authenticationDatabase admin -u root -p ******* -d db_name path/of/dumped/file 后面可跟目录或者数据库导出文件