Host xxxxxxxx is not allowed to connect to this MySQL server

Host '171.8.114.113' is not allowed to connect to this MySQL server

171.8.114.113不知道是什么ip,服务器是阿里云,有固定ip,如果添加阿里云ip,阿里云那台服务器可以用固定ip访问,但我本地用固定ip无法访问。阿里云防火墙和主机防火墙都加入3306了,但还是无法访问。

通过创建user这种,好像'172.43.96.219'这个地址是本地地址,而不是服务器的地址。

所以通过是可以访问的

Host xxxxxxxx is not allowed to connect to this MySQL server_第1张图片

CREATE USER 'root'@'172.43.96.219' IDENTIFIED WITH mysql_native_password BY '1223334';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'172.43.96.219';
flush privileges;

Host xxxxxxxx is not allowed to connect to this MySQL server_第2张图片

你可能感兴趣的:(Host xxxxxxxx is not allowed to connect to this MySQL server)