mysql的windows客户端链接远程全套案例 not allowed to connect to this MySQL server

mysql的windows客户端链接远程全套案例
not allowed to connect to this MySQL server

我是linux 的服务器,navicat12的客户端,

开始链接的时候需要开服务器上得对外爆漏端口 3306,方法:

添加指定需要开放的端口:
firewall-cmd --add-port=123/tcp --permanent
重载入添加的端口:
firewall-cmd --reload
查询指定端口是否开启成功:
firewall-cmd --query-port=123/tcp

然后报 

方法可以参考百度:

https://jingyan.baidu.com/article/e4511cf36db5282b845eaf2b.html

但是注意的是

update user set host = '%' where user ='root'

这一句执行后可能报错,这个错误可以忽略,直接下一个步骤就好了