MongoDB 连接远程数据库
MongoDB About 341 words方式1:
mongo 192.168.3.101:27017/<database> -u <dbuser> -p <dbpassword>
如果出现错误:使用方式2
[thread1] Error: Database name cannot have reserved characters for mongodb:// UR
L: mongodb://push-personas:27017/192.168.3.101%3A27017 :
方式2:
mongo --port 27017 --host 192.168.3.101 <database> -u <dbuser> -p <dbpassword>
Views: 3,438 · Posted: 2019-04-16
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...