ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '密码';
备选:
alter user root identified with mysql_native_password by '密码';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '密码';
备选:
alter user root identified with mysql_native_password by '密码';