我需要将MongoDB数据库中的所有内容导入到ArangoDB中。我可以使用以下命令将MongoDB数据转储为:
mongodump -d "database_name" -u "user_name" -p "password"
然后会将数据库转储到一个转储文件夹中。
现在我需要将此转储导入到我的arangoDB数据库中。我该怎么做?
mongoexport --db databaseName --collection collectionName --out dump.json
一旦您获得了JSON文件,您可以尝试使用arangoimp
将其导入到Arango中。
arangoimp --file dump.json --collection collectionName --create-collection true
参考文献:
如果遇到问题,请告诉我。