连接 Westorm 和 Mongolab db

Posted

技术标签:

???????? Westorm ? Mongolab db??????:Connecting Westorm with Mongolab db ??????:2015-02-28 06:12:58 ??????:

???????? mongoose ?? Webstorm ????????? mongodb ??????????,????????:

database: "mongodb://127.0.0.1/mydatabase"

???????????? mongolad db ??????? ??????????????:

database: "mongodb://myuser:mypass@dsXXXXXX.mongolab.com:XXXXXX/mydatabase"

?? webstorm ?????:

events.js:72
    throw er; // Unhandled 'error' event
          ^
Error: failed to connect to [chtr33:27017]

??????????????,????????/????

??????:

??????????????JS????????????????? node.js ??? mongoose ???????????????,?????? ?????1?:

???????????@??(facepalm)

????:

?????????***.com/questions/7486623/mongodb-password-with-in-it????????????????2?:

??????????????????“@”???“%40”?

?????,??????????

????:

以上是关于连接 Westorm 和 Mongolab db的主要内容,如果未能解决你的问题,请参考以下文章

Mongolab 与 MongodbShell 连接失败

Mongolab 与 MongodbShell 连接失败

mongolab和heroku之间的连接需要ssl吗?

Mongolab连接错误

Meteor与连接mongolab服务器[重复]

通过 java 应用程序连接在 mongolab 中创建的 mongodb