mysql database refused to connect

For example: computer A wants to connect to the database of computer B

Grant access to computer B's database:

select host, user from user;
grant all privileges on *.* to root@'%' identified by '密码' with grant option;
flush privileges;

Guess you like

Origin blog.csdn.net/yy12345_6_/article/details/127489869