Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mongodb 连接到Mongo数据库时发生STRAPi错误。选项的键值对不完整_Mongodb_Strapi - Fatal编程技术网

Mongodb 连接到Mongo数据库时发生STRAPi错误。选项的键值对不完整

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

我正在尝试连接到我的mongodb atlas集群,但在连接Mongo数据库时出现了
错误。选项的键值对不完整

{
  "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,效果很好!非常感谢你