nodejs链接数据库二--链接数据库池

//链接数据库池 安装以前是须要安装 npm install -g node-mysql 这个包的 //mysql_mode.js var mysql = require("mysql"); //建立一个链接池的模块 而后导出 function OptPool(){ this.flag = true; this.pool = createPool({ host:'localho
相关文章
相关标签/搜索