Solving MySQL -Navicat connection Ali cloud appeared "1130-Host 218.3.166.98 'is not allowed to connect to this mysQL server"

Problem Description

Centos on Ali cloud has deployed MySQL, and have configured the security rules, but when used navicatMySQL, the situation in the following figure appears

 

 Solution:

1, Ali cloud configuration rules again, no problem found

2, log centos system, the following steps (typically enable direct copying, except password)

mysql -u root -p
use mysql;
select 'host' from user where user='root';
updata user set host='%' where user='root';
flush privileges;
select 'host' from user where user = 'root';

 

 

 3, the re-test

 

Guess you like

Origin www.cnblogs.com/fengfengyue/p/12628299.html