Last time we tried to connect to a MySQL DB instance in OCI with Cloud Shell, we needed to use the bastion service. See here.
Now, we also have the possibility to bypass the bastion host as Cloud Shell offers the possibility to change network.
As you know, in Oracle Cloud Infrastructure, a MySQL DB instance is not exposed in the public subnet and doesn’t have the possibility to get a public IP.
In the Private Subnet, we often have a security list allowing all internal IPs (from public and private subnet of the VCN) to connect to the MySQL port(s).
If the security list is present, we can click on the Cloud Shell icon and once loaded, change the network:
We need to create a new Private Network Definition:
In case you don’t have the ports open for MySQL in the …[Read more]