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
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