Preface
Recently, I was playing with Tencent Cloud Server and built a Mysql database on the Windows Server server. For the sake of convenience, I wanted to use Navicat on my computer to manage the server-side database.
One, configure Mysql
Enter the following commands in CMD:
mysql -u root -p
use mysql;
update user set host = '%' where user = 'root';
select host, user from user;
flush privileges;
As shown below:
Two, configure the server firewall
Add mysql 3306 port rules for the server
Three, test
Use Navicat to create a new connection, enter the public network IP in the host field and
click test connection to
complete