nodejs sequelize无法连接数据库
摘要:问题 分析问题 大致意思是用户wlxy访问localhost地址的数据库时被拒绝了。 但是数据库我已经建好了,用户名和密码也设置了,就是死活连不上。 解决问题 1、mysql 中查看wlxy用户是否确实存在 命令行工具 mysql -u root -p 输入数据库密码,进入mysql 2、查看用户信
阅读全文
posted @
2022-03-25 22:49
无聊猿
阅读(159)
推荐(0)
egg启动时,报错:Ignoring invalid timezone passed to Connection的解决方案
摘要:报错信息 Ignoring invalid timezone passed to Connection: +8:00. This is currently a warning, but in future versions of MySQL2, an error will be thrown if
阅读全文
posted @
2022-03-20 21:16
无聊猿
阅读(706)
推荐(0)
egg中使用sequelize事务,实现原子性
摘要:let transaction; try { // 建立事务对象 transaction = await this.ctx.model.transaction(); const house = await ctx.model.House.create({ address, area: data.ar
阅读全文
posted @
2021-11-27 22:15
无聊猿
阅读(220)
推荐(0)