创建OptPool.jsvarmysql=require(‘mysql‘);functionOptPool(){ this.flag=true; this.pool=mysql.createPool({ host:‘localhost‘, user:‘root‘, password:‘‘, database:‘mtc‘, port:‘3306‘ }); this.getPool=function(){ if(this.flag){ this.pool.on(‘connection‘,fun..
分类:
数据库 时间:
2017-01-13 16:13:00
阅读次数:
340