已经给了远程连接权限(update mysql.user set host = "%" where user = 'root'; flush privileges;

连接错误提示:

 

解决方案:执行以下sql

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '密码'

相关文章: