Skip to content

【6月4日】运行脚本数据导入【重要】【请删除原本的旧数据】 #30

Description

@natsu12

/data下运行脚本导入数据,使用方法

  • 对password做hash(必需! 生成user_.json): node hash.js
  • 导入数据(导入activities, users_, tags): sh import
  • 如果出现insertDocument :: caused by :: 11000 E11000 duplicate key error index报错,说明你之前导入过旧数据,请用mongo命令行运行use activiteedb.dropDatabase()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions