为了账号安全,请及时绑定邮箱和手机立即绑定

Access denied for user 'root'@'localhost' (using

Access denied for user 'root'@'localhost' (using

拉丁的传说 2018-11-20 17:30:04
在mac中通过终端连接mysql连接成功通过图形工具Navicat 连接成功通过nodejs连接mysql失败代码:连接报错 Access denied for user 'root'@'localhost' (using password: YES)code: 'ER_ACCESS_DENIED_ERROR',errno: 1045,sqlState: '28000'求大神指导指导,谢谢!
查看完整描述

1 回答

?
繁花不似锦

TA贡献1851条经验 获得超4个赞

grant all privileges on . to 'root'@'localhost' identified by '你的密码' with grant option;

flush privileges;


查看完整回答
反对 回复 2018-12-21
  • 1 回答
  • 0 关注
  • 612 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信