使用旧密码登录 MySQL 后:
使用
alter user'root'@'localhost' identified by '新密码';
或者
alter user'root'@'localhost' identified with mysql_native_password by '新密码';
新密码长度、样式可以自行指定。
使用旧密码登录 MySQL 后:
使用
alter user'root'@'localhost' identified by '新密码';
或者
alter user'root'@'localhost' identified with mysql_native_password by '新密码';
新密码长度、样式可以自行指定。