Server connection with MongoDB C++ Interface
3 ビュー (過去 30 日間)
古いコメントを表示
Hello,
According to the documentation of new mongodb c++ interface, a server name is required to connect a mongodb server. The format of the connection link for mongodb is below:
"mongodb+srv://<user>:<password>@<cluster-url>?retryWrites=true&writeConcern=majority";
I have a <cluster-url> like this;
"cluster0-shard-00-02.zgzdb.mongodb.net:27017"
For server name, I have tried every combination of this string, but I can not connect. I have also tried to look into the connect function but apperantly it is encrypted.
How can I connect to a mongodb server using mongoc function?
Kind regards,
Arda
0 件のコメント
回答 (1 件)
Abhishek Kolla
2022 年 1 月 6 日
2 件のコメント
Dionisije Sopic
2022 年 8 月 11 日
編集済み: Dionisije Sopic
2022 年 8 月 11 日
Has anyone managed to connect to a mongodb using mongoc WITHOUT using localhost and how?
MATLAB always crashes when using the following server argument:
"mongodb+srv://<user>:<password>@<cluster-url>?retryWrites=true&writeConcern=majority";
参考
カテゴリ
Help Center および File Exchange で Robotics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!