链接Mongodb报错Unable to authenticate using sasl protocol mechanism SCRAM-SHA-1

解决方案 在连接数据库字符串后面添加 authSource=admin "MongoDB": { "Host": "mongodb://touchadmin:touchadmin123@127.0.0.1:27017/TouchAdmin?authSource=admin", "DbName": "
posted @ 2023-08-10 15:55  dreamw  阅读(470)  评论(0编辑  收藏  举报