node线上项目连接mysql出现 504 Gateway Time-Out

2022-06-15 18:07:31 浏览数 (4)

var connection = mysql.createConnection({ host : ‘localhost’, user : ‘root’, password : ‘123456’, port: ‘3306’, database: ‘test’ });

一定别忘了加端口号 ↓

port: ‘3306’,

更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/119836299

0 人点赞