We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.安装成功后,配置环境变量
在你的计算机上创建一个目录,用于存放MongoDB数据库文件的文件夹
执行命令
mongod --dbpath D:\mongodb
mongodump -h dbhost -d dbname -o dbdirectory
例如:mongodump -h 127.0.0.1 -d koa -o d:\koa (Windows环境)
mongodump -h 127.0.0.1 -d koa -o d:\koa
导入
mongorestore -h dbhost -d dbname path
例如:mongorestore -h 127.0.0.1 -d koademo d:\koa\koa
mongorestore -h 127.0.0.1 -d koademo d:\koa\koa
The text was updated successfully, but these errors were encountered:
No branches or pull requests
安装
配置环境变量
2.安装成功后,配置环境变量
在你的计算机上创建一个目录,用于存放MongoDB数据库文件的文件夹
执行命令
数据库的导入和导出
导出
例如:
mongodump -h 127.0.0.1 -d koa -o d:\koa
(Windows环境)导入
例如:
mongorestore -h 127.0.0.1 -d koademo d:\koa\koa
The text was updated successfully, but these errors were encountered: