--dbpath 无法更改 mongoDB 中数据库的存储位置
运行命令来设置存储数据库的新目录时,它不起作用。
这是我正在运行的命令:
mongod --dbpath C:\Program Files\MongoDB\Server\5.0\nik_db_folder
这是我得到的错误
\uncaught 异常: SyntaxError: 意外的标记: 标识符 : @(shell):1:9
我也尝试过用双引号将文件路径括起来,但无论如何它都不起作用。
谁能帮助我理解这里的错误是什么?
When running the command to set a new directory where to store databases it doesn't work.
This is the command I'm running:
mongod --dbpath C:\Program Files\MongoDB\Server\5.0\nik_db_folder
This is The error I get
\uncaught exception: SyntaxError: unexpected token: identifier : @(shell):1:9
I have also tried to enclose the file path in double quotes but it doesn't work anyway.
Can anyone help me to understand what's the error here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论