本地能通过外网连接到本地的mysql,但是其他机器不能通过外网连接到mysql
比如说有两台云主机A和B,A的外网ip地址是118.192.66.188,现在我在A上配置了mysql-server,在A上面能通过:
mysql -uroot -phehehe -P3306
mysql -uroot -hlocalhost -phehehe -P3306
mysql -uroot -h127.0.0.1 -phehehe -P3306
mysql -uroot -h118.192.66.188 -phehehe -P3306
连接mysql,但是我在B上面使用mysql -uroot -h118.192.66.188 -phehehe -P3306就不能连接上A的mysql。应该如何配置才能使B能连接上A的mysql呢?