javascript - mongodb node.js client, connect hangs -
node .js client hangs when mongo client. Connect (...)
, but works on the Mongodb-client (shell command line)
terminal. any clue?
var requires Mongoclant = ('Mongodb'). Mongoquent; MongoClient.connect ('mongodb: //my.mongo.db.server.ip: 27017 / test', function (error, db) {throwing error (if mistake); console.log ("connect shows during call back ");}); // When the node loads in the shell, it hangs forever
Comments
Post a Comment