Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/13.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和mLab导入JSON_Mongodb_Mlab - Fatal编程技术网

使用MongoDB和mLab导入JSON

使用MongoDB和mLab导入JSON,mongodb,mlab,Mongodb,Mlab,我正在尝试使用以下步骤将JSON导入mLab上的沙箱集群: 我跑蒙哥德 打开“新建”选项卡并运行以下指向my mlab群集的命令: 在阅读更多内容后,我还添加了选项--ssl和--sslAllowInvalidCertificates,我得到以下错误: Failed: error connecting to db server: no reachable servers, openssl error: read tcp 192.168.1.69:51933->54.225.0.238:2

我正在尝试使用以下步骤将JSON导入mLab上的沙箱集群:

  • 我跑蒙哥德
  • 打开“新建”选项卡并运行以下指向my mlab群集的命令:

  • 在阅读更多内容后,我还添加了选项
    --ssl
    --sslAllowInvalidCertificates
    ,我得到以下错误:

    Failed: error connecting to db server: no reachable servers, openssl error: read tcp 192.168.1.69:51933->54.225.0.238:27341: read: connection reset by peer
    
    鉴于这些奇怪的错误,有没有人对如何将json导入mlab集群有什么建议?

    MongoDB文档中有一个标志--authenticationDatabase admin,它可能会有帮助-。不幸的是,我遇到了另一个问题(
    mongoimport未定义
    ),因此无法验证这是否有帮助。MongoDB文档中有一个标志--authenticationDatabase admin,可能有帮助-。不幸的是,我遇到了另一个问题(
    mongoimport未定义
    ),因此无法验证这是否有帮助。
    Failed: error connecting to db server: server returned error on SASL authentication step: Authentication failed.
    
    Failed: error connecting to db server: no reachable servers, openssl error: read tcp 192.168.1.69:51933->54.225.0.238:27341: read: connection reset by peer