Mongodb 连接到Mongo数据库时发生STRAPi错误。选项的键值对不完整
我正在尝试连接到我的mongodb atlas集群,但在连接Mongo数据库时出现了Mongodb 连接到Mongo数据库时发生STRAPi错误。选项的键值对不完整,mongodb,strapi,Mongodb,Strapi,我正在尝试连接到我的mongodb atlas集群,但在连接Mongo数据库时出现了错误。选项的键值对不完整 { "defaultConnection": "default", "connections": { "default": { "connector": "mongoose", "settings": { "uri": "mongodb://vafflehauz:Vafflehauz312**?@company-shard-00-0
错误。选项的键值对不完整
{
"defaultConnection": "default",
"connections": {
"default": {
"connector": "mongoose",
"settings": {
"uri": "mongodb://vafflehauz:Vafflehauz312**?@company-shard-00-00-qreis.mongodb.net:27017,company-shard-00-01-qreis.mongodb.net:27017,company-shard-00-02-qreis.mongodb.net:27017/test?ssl=true&replicaSet=company-shard-0&authSource=admin&retryWrites=true&w=majority"
},
"options": {
"ssl": true
}
}
}
}
这是我的名片
我正在使用Strapi3.0.0-beta版感谢Joe Drumgoole指出我的密码是问题所在,现在它可以工作了
密码中的问号被解释为URI中的一个选项。尝试在其位置使用%3F乔·德鲁姆古尔
“uri”:mongodb://vafflehauz:Vafflehauz312**%3F@company-shard-00-00-qreis.mongodb.net:27017,company-shard-00-01-qreis.mongodb.net:27017,company-shard-00-02-qreis.mongodb.net:27017/test?ssl=true&replicset=company-shard-0&authSource=admin&retryWrites=true&w=maist”
密码中的问号被解释为URI中的一个选项。试着用%3F代替它。我试着把它改成Vafflehauz312**%3F,效果很好!非常感谢你