當我開始蒙戈客戶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