Database/mongoDB
[MongoDB] GridFs
데브포유
2017. 3. 23. 13:58
반응형
# GridFS
-- 파일을 chunk로 쪼개어 db에 저장함.
-- db를 지정하지 않으면 test db에 저장됨.
mongofiles --host localhost --port 27017 list
mongofiles --host localhost --port 27017 put a.txt
mongofiles --host localhost --port 27017 get a.txt
use test
db.fs.files.find()
db.fs.chunk.find({files_id: ObjectId("")})
반응형