Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MongoDB Notes XVIII-GridFS

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Concept GridFS is the file system that comes with mongodb. He uses binary format to store the vast majority of large file systems, which can be completed by GridFS. 2. Tools used mongofiles.exe3, using GridFS

View all the features of GridFS

Cmd-- > mongofiles

Upload a file

Mongofiles-d foobar-l "E:/a.txt"

View the file storage status of GridFS

Db.fs.files.find ()

View the contents of the file

You cannot view the contents of a file in shell. You can use VUE to view it.

View all the files

Mongofiles-d bwzy list

Delete a file

Mongofiles-d bwzy delete "a.txt"

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report