当我开始蒙戈客户mongo.exe
,它打印出以下错误:的`.mongorc.js`没有找到,但有一个
MongoDB shell version: 2.4.9
connecting to: test
Wed Mar 12 11:15:47.013 In File::open(), CreateFileW for 'C:\Users\Zolt�n\.mongo
rc.js' failed with errno:3 The system cannot find the path specified.
Wed Mar 12 11:15:47.014 In File::len(), GetFileSizeEx for 'C:\Users\Zolt�n\.mong
orc.js' failed with errno:6 The handle is invalid.
Wed Mar 12 11:15:47.015 In File::read(), SetFilePointerEx for 'C:\Users\Zolt�n\.
mongorc.js' tried to set the file pointer to 0 but failed with errno:6 The handl
e is invalid.
>
正如你看到的,我的用户路径是C:\User\Zoltán
和字符á
被读取为未知字符。我敢打赌,这是问题所在,为什么mongo
无法找到我的.mongorc.js
。
有什么办法可以明确地设置路径为.mongorc.js
。也许有一个配置文件?
'mongo --norc'忽略了这个文件,你很好走。 – Keon