用mongodb 连接mlab上的数据库,连接不上
发布于 12 小时前 作者 qichangjun 34 次浏览 来自 问答

数据库确实是打开了 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的数据库,是写法有问题吗?

回到顶部