I caught up with 618 today. I used the Alibaba Cloud server for the first time. I installed MySQL8 on the Alibaba Cloud server. I want to remotely connect to the MySQL on the Alibaba Cloud server through the local SQLyog.
When port 3306 is opened on the server, the following problems are encountered
Solution:
open server terminal
Since mysql does not allow other computers (non-virtual hosts) to access with IP addresses by default, the
host of the user to be accessed (I am root here) is changed from localhost (this machine) to % (any ip, you can also specify ip) and
finally flush Privileges refresh permissions to
test the connection
OK