无法用mongorestore.exe导入json文件
mongodb安装完成之后, 想通过命令导入json文件, 报错:
uncaught exception: SyntaxError: unexpected token: identifier: @(shell):1:20
原因:
mongodb是msi安装版, bin目录并没有mongoimport.exe工具类
解决方法:
下载文件的bin目录中所有文件, 复制到mongodb的bin目录。
https://www.mongodb.com/try/download/database-tools