4.ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’; #更新用户密码 5.FLUSH PRIVILEGES; #刷新权限 如图