Mongo Management Studio has some issues importing text files

时间:2015-09-01 22:02:28

标签: mongodb text-files

The app: Mongo Management Studio. The migration is: From MySQL (navicat .txt file exported) to MongoDB.

The structure in text files are different for each collection, I assume that it hasn't be able to parse the file and then the app just hangs, without any further information.

So, any thoughts about it?

The following structure has been used in the text files to use in the "import" feature:

Collection (Table) A:

1,Name A,1
2,Name B,1

Collection (Table) B:

1,1,28c8cb4006e,Name,-10,-30,1
2,1,28ea5bc940029,Name,-10,-30,1

Collection (Table) C:

399,0,28ea5bc940029,-26.06,-10,0,02/18/2014 22:27:00
400,0,28c8cb4006e,-19.06,-10,0,02/18/2014 22:32:00

I'll appreciate any kind of help to make this work, unknowing the required data syntax is quite complicated to correctly use the app, still looking for answers but not being able to find them.

Thanks in advance.

EDIT. Actually had tried with *.json and *.js files too.

1 个答案:

答案 0 :(得分:1)

我猜你试图用sql中的数据导入纯文本文件?因为当前导入仅支持格式为mongo export的JSON文件。

有关详细信息,请参阅文档:

https://wiki.litixsoft.de/display/MMS/Import+documents