老师你好,Windows环境下安装完mysql,修改密码后无法使用新密码登录
来源:2-9 配置CentOS系统
qq_逝爱终成伤_0
2020-11-29
使用update mysql.user set authentication_string=“123456” where user=“root”;修改完密码后,使用123456新密码登录报ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)。
写回答
1回答
-
MYSQL的authentication_string是加密后的字符串,不能这样直接Update,要用alter user语句进行修改。
00
相似问题