当我启动mongo客户端mongo.exe
时,它打印出以下错误:
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
的路径。也许可以用一个配置文件?
https://stackoverflow.com/questions/22348604
复制相似问题