华为云 mongodb 4.0.3 mongodb diver 2.12.4 c# 代码连接,连接字符串密码包含%,因阿里云控制台提示修改密码可以包含:特殊字符% #

但代码连接会报: Unable to authenticate using sasl protocol mechanism SCRAM-SHA-256. 无法使用sasl协议机制SCRAM-SHA-256进行身份验证 这个信息

MongodbConnectString": "mongodb://rwuser:7Jb322OwB#Wk6%C@ip:8635",

 

navicat p 客户端连接mongodb不会报这个错误

 

 

删除集合的脚本:
use("colltest");
db.getCollectionNames().forEach(function(ColName){
var re1=new RegExp(".*_BizLog$");
var re2=new RegExp(".*_Listing$");
if(!re1.test(ColName)&&!re2.test(ColName))
{
return;
}

print(db[ColName]);
});

 

1、删除colltest库下以"_BizLog."和“_Listing.”开头的集合

M_Express_Listing_BizLog
Ap_Publish_Wish_Listing

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
  • 2021-06-24
  • 2021-08-29
猜你喜欢
  • 2021-11-30
  • 2021-06-01
  • 2021-08-19
  • 2021-06-09
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
相关资源
相似解决方案