![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MongoDB
aitxiaogang
欢迎大家留言,个人邮箱,aitxiaogang@163.com
展开
-
mongodb 数据备份和恢复 docker容器中
先进入mongo的容器docker exec -it [容器名称] /bin/sh备份mongodump -h 127.0.0.1:27017 -utuhu -p123123 --drop --authenticationDatabase tuhu-international -o ./db2恢复mongorestore -h 127.0.0.1:27017 -utuhu -p123123 --drop --authenticationDatabase tuhu-inter.原创 2022-02-17 21:11:12 · 713 阅读 · 0 评论 -
Method has to have one of the following return types
如果方法参数传递了pageable,方法的返回值要求必须是Slice、List、Page,否则抛异常原创 2021-08-25 15:59:28 · 981 阅读 · 0 评论 -
Command failed with error 18 (AuthenticationFailed): ‘Authentication failed.‘ on server The full res
Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server 1.116.122.1:49156. The full response is {"ok": 0.0, "errmsg": "Authentication failed.", "code": 18, "codeName": "AuthenticationFailed"}最有可能就是你的用户名和密码没有加上双引号,比如我之前报错原创 2021-08-22 17:57:23 · 9934 阅读 · 0 评论 -
docker 创建mongodb,设置密码访问,创建数据库,创建用户,spring-boot-starter-data-mongo链接配置
docker 创建mongodb,设置密码访问,创建数据库,创建用户,spring-boot-starter-data-mongo链接配置原创 2021-08-22 17:53:14 · 1052 阅读 · 0 评论