logo image

Unable to connect to mongo on Ubuntu 16.04 using command 'mongo'


When I try to connect to mongo using command 'mongo' i am getting the following exception

Failed global initialization: BadValue Invalid or no user locale set.
Please ensure LANG and/or LC_* environment variables are set correctly.

1 Answer

2 years ago by

Run the following command before connecting to mongo-shell

export LC_ALL=C
2 years ago by Megamind