码迷,mamicode.com
首页 > 数据库 > 详细

pymongo.errors.OperationFailure: This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.

时间:2019-12-13 20:01:26      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:字符   connect   mongod   ble   pymongo   try   err   his   字符串   

This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.

此MongoDB部署不支持可重试写入。请将retryWrites=false添加到连接字符串中。

如下设置即可
client = MongoClient("192.168.52.131:27017", retryWrites="false")

pymongo.errors.OperationFailure: This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.

标签:字符   connect   mongod   ble   pymongo   try   err   his   字符串   

原文地址:https://www.cnblogs.com/rhgaiymm/p/12036825.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!