MongoDB mongorestore failure: locale::facet::_S_create_c_locale name not valid

后端 未结 6 1126
清歌不尽
清歌不尽 2020-12-07 08:11

I created a dump with mongodump on computer A (ubuntu 12.04 server). I moved it to computer B (ubuntu 12.04 server) and typed:

mongorestore -db db_nam

6条回答
  •  暖寄归人
    2020-12-07 09:01

    On my distro "locale-gen" was not installed and it turned out all I had to do is set the LC_ALL environment variable. so the following command fixed it:

    export LC_ALL="en_US.UTF-8"
    

    hopefully it will help someone else...

提交回复
热议问题