Connect to MySQL from a different machine
For security reasons, the MySQL ports in this solution cannot be accessed over a public IP address. To connect to MySQL from a different machine, you must open port for remote access. Refer to the FAQ for more information on this.
IMPORTANT: We strongly discourage opening ports to allow inbound connections to the server from a different network. Making the application’s network ports public is a significant security risk. The recommended way for connecting two instances deployed in different networks is by using VPC network peering. If you must make it accessible over a public IP address, we recommend restricting access to a trusted list of source IP addresses and ports using firewall rules. To do so, follow the instructions below.