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

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

    Got same problem on debian 7 without locale-gen (command not found) installed.

    I solved this way:

    su
    apt-get install locales
    dpkg-reconfigure locales # select locales you want!
    

    Now mongodb should start.

    Source

提交回复
热议问题