会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
逻辑思维-质变
为提高自己的技术而努力呵呵
管理
2022年7月8日
nodejs 连接mysql 封装DBPool
摘要: class DBPool { constructor() { this.mysql = require("mysql"); this.config = require("./db.config"); //1.创建mysql连接对象 this.pool = this.mysql.createPool(
阅读全文
posted @ 2022-07-08 11:54 土豆哥
阅读(259)
评论(0)
推荐(0)
编辑
公告