报错内容如下图 Caught exception: Error: getaddrinfo ENOTFOUND 1ocalhost 1ocalhost:3306
1 回答
人到中年有点甜
TA贡献1895条经验 获得超7个赞
修改myRule.js文件
// 创建数据库连接,需根据自己数据库账号密码修改var connection = mysql.createConnection({
host: 'localhost',
user: 'root',
password: 'xxxx',
database: 'phone_weixin'});其中localhost改为127.0.0.1就正常了
添加回答
举报
0/150
提交
取消
