Connecting to Google Cloud MySql DB with a changing IP address

To add to what Michael said, if you absolutely must connect from your laptop (again, this by itself sounds like a big part of the issue to start with), you can look into

  • using Cloud SQL proxy [1]
  • securing your connection to the DB with a certificate [2]

[1] https://cloud.google.com/sql/docs/mysql/sql-proxy
[2] https://cloud.google.com/sql/docs/mysql/authorize-ssl