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

后端 未结 6 1133
清歌不尽
清歌不尽 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 08:53

    Exporting LC_ALL="en_US.UTF-8" only works if you have the en_US locale installed. If you want to avoid installing the locales package (or its equivalent on distributions other than Debian derivatives), then you can instead use:

    export LC_ALL=C.UTF-8
    

    which will not require any extra locale data.

提交回复
热议问题