开发者社区> 问答> 正文

mongodb中mongofiles的使用

通过:
GridFS fs = new GridFS(mongoTemplate.getDb());
创建的fs 保存的文件 使用命令:
mongofile -d mydb list
可以正常获取到。
但,如果:
GridFS fs = new GridFS(mongoTemplate.getDb(), "user_video");
创建的fs 保存的文件,使用命令:
mongofile -d mydb -c user_video list
并不能获取到。
官网是说,--collection <collection>, -c
This option has no use in this context and a future release may remove it. See SERVER-4931 for more information.
那么这种情况下的files怎么通过mongofiles命令查看呢?

展开
收起
落地花开啦 2016-02-21 16:46:50 3418 0
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    mongofiles 命令的-c --collection参数确实是没有用的

    2019-07-17 18:46:08
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
ApsaraDB for MongoDB 立即下载
ApsaraDB for MongoDB—产品介绍 立即下载
《阿里云数据库 MongoDB 专属集群版》 立即下载