Mongo shell can not connect to Azure CosmosDB

后端 未结 1 1755
余生分开走
余生分开走 2021-01-28 09:22

I can\'t connect to Azure CosmosDB (mongodb api) from MongoDB Shell under Mac:

mongo --host XXX.documents.azure.com --port 10255 --username XXX --password YYY --         


        
1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-28 09:33

    After uninstall/install brew and reinstalling mongodb via brew I got following MongoDB version:

    mongo --version

    MongoDB shell version v3.4.10
    git version: 078f28920cb24de0dd479b5ea6c66c644f6326e9
    OpenSSL version: OpenSSL 1.0.2m  2 Nov 2017
    allocator: system
    modules: none
    build environment:
        distarch: x86_64
        target_arch: x86_64
    

    which connects to CosmosDB just fine.

    0 讨论(0)
提交回复
热议问题