4

I am regular mongo user. But now i'm facing a problem with mongoimport command. It shows following error whenever i try to import database (dumped via mongodump)

connected to: 127.0.0.1
error: boost::filesystem::file_size: Operation not permitted: "mydb/"

when i tried running

mongoimport mydb/

Anyone familiar with this or what causes this?

Ravi
  • 1,320
  • 12
  • 19
  • 1
    possible duplicate of [How to use the dumped data by mongodump?](http://stackoverflow.com/questions/5495540/how-to-use-the-dumped-data-by-mongodump) – Lix Sep 23 '14 at 10:07
  • 6
    You need to use `mongorestore` if the data you are using was extracted with `mongodump`. – Lix Sep 23 '14 at 10:07
  • 1
    The `mongoimport` command will work with plain text such as the output of `mongoexport` – Lix Sep 23 '14 at 10:08
  • ohh man! i am really losing it! thanks @Lix – Ravi Sep 23 '14 at 10:09

0 Answers0