mysql 笔记
一、当使用客户端登录数据库时出现:错误代码1045
Access denied for user 'root'@'localhost' (using password:YES)
这个解决方法是,修改root账户的密码,命令为:
ALTER USER 'root'@'localhost' IDENTIFIED BY '12356'; # 修改root密码
flush privileges; # 刷新权限
密码重置参考:
https://blog.csdn.net/huryer/article/details/106957990