Linux (CENTOS7) Mysql remote connectivity solution can not

  Today, Tencent cloud server installed on top of a Mysql, Bahrain found that I can connect in linux below, but in my window below is mysql visualization tools (SQLyog) not connected with the following error:

Host ‘’ is not allowed to connect to this MySQL server

  Online search a bit, the solution is as follows:

1 , log on with a MySQL MySQL machine. -u the root MySQL - P password 

2 , performs MySQL use; 

. 3 , performing Host SET = User Update ' % ' WHERE User = ' the root ' ; it may complete an execution error, do not ignore it. 

4 , the implementation of FLUSH PRIVILEGES;

Guess you like

Origin www.cnblogs.com/kawhileonardfans/p/10966325.html