mysql的user表里密码是authentication_string这个字段
查询此字段 可看到密码
select User, authentication_string from user;
可以使用下面的命令更改密码
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
刷新
FLUSH PRIVILEGES;
mysql的user表里密码是authentication_string这个字段
查询此字段 可看到密码
select User, authentication_string from user;
可以使用下面的命令更改密码
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
刷新
FLUSH PRIVILEGES;