Question
How do I access mongo shell?
So I SSH as root into my droplet’s terminal and I want to access the mongo shell to drop my documents from my mongodb database. How do I got about this?
I tried
mongo
and i got
Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
run this on your terminal “export LC_ALL=C”
after that, try running mongo.
Thank you! You save my day!