open() is deprecated in mongoose >= 4.11.0, use openUri()
`open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead,
or set the `useMongoClient` option if using `connect()` or `createConnection()`.
See http://mongoosejs.com/docs/connections.html#use-mongo-client
Db.prototype.authenticate method will no longer be available in the next major
release 3.x as MongoDB 3.6 will only allow auth against users in the admin db
and will no longer allow multiple credentials on a socket.
Please authenticate using MongoClient.connect with auth credentials.
修改连接参数:
url = `mongodb://${this.username}:${this.password}@${this.host}:${this.port}/${this.dbName}`;
const opts = {
// autoReconnect: false,//默认true
// reconnectTries: 30,//尝试重连,默认30次
// reconnectInterval: 1000, //重连间隔,默认1000毫秒
loggerLevel: "warn", //error/warn/info/debug
useMongoClient: true
};
mongoose.connect(this.url, opts);
如果在原有参数的基础上加了userMongoClient以后有如下警告:






本以为能轻松点,结果发现排不上用场,因为实在不好用,宝宝根本不会老实的配合,她一感觉到胸前有个东西扶着她,就整个人爬下来了,所有重点都放在牵引绳上,所以大人就只能提着,而且由于刚学走路,也不能稳当的走,总是东倒西歪,牵引绳其实不能保证宝宝的平衡,反而会过于依赖绑带,结果就导致失去平衡类似于一只脚在地上一只脚翘起来打转,也容易勒到胳膊。



