I installed WordPress from the Google Cloud Marketplace into a Compute Engine instance, and am trying to connect to the MySQL instance on that machine using DataGrip on my local machine (macOS).
I can connect in the SSH terminal, so I know the instance is up and running and the credentials are correct.
I have opened the port (3306) on both ingress and egress on the VM and I have the external IP. However, I variously get "Connection refused" (DataGrip) and other errors trying to connect.
Are there any special considerations when trying to do this?