码上敲享录 > mongoDB常见问题解答 > Values in v:2 index key pattern cannot be of type object. Only numbers > 0, and strings are allowed.

Values in v:2 index key pattern cannot be of type object. Only numbers > 0, and strings are allowed.

上一章章节目录下一章 2021-04-13已有1297人阅读 评论(0)

Values in v:2 index key pattern cannot be of type object. Only numbers > 0, and strings are allowed.


解决方法:

在使用mongodb的mongorestore命令导入阿里云的逻辑备份数据时,执行到半路出现这个错误,网上都说是数据库版本不一致所导致的,后来我改成同一个版本的数据库还是报这个错。

最后无奈只能使用物理备份数据导入方式,说实话物理备份导入很快。


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交