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

后端 未结 6 1118
清歌不尽
清歌不尽 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:49

    To make the fix permanent you can edit one of those files:

    • sudo vim /etc/default/locale
    • sudo vim /etc/environment

    And add the line LC_ALL="en_US.UTF-8"

提交回复
热议问题