安装完mysql后用初始密码登陆进去,然后修改了user表的密码
update mysql.user set authentication_string=SHA1('root') where us
er='root';
退出来重启了mysql服务后用新的密码就登不上去了一直报错
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
安装完mysql后用初始密码登陆进去,然后修改了user表的密码
update mysql.user set authentication_string=SHA1('root') where us
er='root';
退出来重启了mysql服务后用新的密码就登不上去了一直报错
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)