With cmd in Win10, after terminate the mongo service, I got the error:
Error saving history file: FileOpenFailed Unable to fopen() file C:\Users\鍒樺簡鏂嘰.dbshell: Access is denied.
If use Powershell with Admin, I will get this strange file in C:\Users
:
鍒樺簡鏂嘰.dbshell
So, the error occurs for the reason of my non-English name directory, so how to change the location of the .dbshell
file in MongoDB? Thanks!