用root用户在命令行或者Navicat执行 ALTER USER 'username'@'%' IDENTIFIED WITH mysql_native_password BY 'password';