跳到主要内容
CNode

用mongodb 连接mlab上的数据库,连接不上

问答
Qqichangjun发布于 10 年前最后回复 10 年前
151150

数据库确实是打开了 fffaaa.png var settings = require('../setting'), Db = require('mongodb').Db, Connection = require('mongodb').Connection, Server = require('mongodb').Server; module.exports = new Db('node-mongodb', new Server('qicj:[email protected]', 23054),{safe: true}); 但就是连接不上mlab的数据库,是写法有问题吗?

查看回复

回复 (1)

F
febobo#110 年前

参与回复

登录后即可参与回复。登录