在mac中通过终端连接mysql连接成功通过图形工具Navicat 连接成功通过nodejs连接mysql失败代码:连接报错 Access denied for user 'root'@'localhost' (using password: YES)code: 'ER_ACCESS_DENIED_ERROR',errno: 1045,sqlState: '28000'求大神指导指导,谢谢!
1 回答
![?](http://img1.sycdn.imooc.com/54584f3100019e9702200220-100-100.jpg)
繁花不似锦
TA贡献1851条经验 获得超4个赞
grant all privileges on . to 'root'@'localhost' identified by '你的密码' with grant option;
flush privileges;
添加回答
举报
0/150
提交
取消