When I start the mongo client mongo.exe
, it prints out the following error:
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.
>
As you see, my user path is C:\User\Zoltán
and the character á
is read as an unknown character. I bet this is the problem, why mongo
can't find my .mongorc.js
.
Is there any way I can explicitly set the path for .mongorc.js
. Maybe with a configuration file?