最近登录某台服务器的mysql时候总报错: Access[root@log01 ~]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) denied for user 'root'@'localhost' (using password: NO) 我猜想是不是密码忘记了...然后准备修改密码: #mysqladmi…
问题重现:(以下讨论范围仅限Windows环境): C:\AppServ\MySQL> mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) (注:如果提示“mysql不是内部命令”,需要将mysql加入环境变量,方法详见:https://jingyan.baidu.com/article/e4d08ffdd5f667…