As in MongoDB 3.4, there is no explicit option to disable the history function mongo
.
A possible workaround is to create a read-only history file. The shell mongo
will continue to work without errors if the file .dbshell
cannot be read or written.
, Unix- :
echo "" > ~/.dbshell
chmod 0 ~/.dbshell
MongoDB, , : SERVER-29103: .dbshell.