Search code examples
google-cloud-sql

Using Google Cloud SQL without IP


It seems that to create users and databases/tables on Google Cloud SQL requires you to

  1. download a MySQL client
  2. get an instance IP so that you can use the client to connect to the cloud instance

But it shows that to get an IP requires you to pay extra. Is there any way around it?

Can I request an IP for setting up and then remove it later to avoid the charges?


Solution

  • You can add and remove the IP address at any time, and only pay for the charges accrued during the time it was active.

    However, unless you are accessing it via a GAE application (which does not need to use the IP) it won't be much use without an IP.

    Currently connecting via IPv6 is free:

    https://cloud.google.com/sql/docs/mysql-client#connect-ipv6

    If you can, we recommend that you connect to your instance over IPv6. Each instance has an IPv6 address that is free to use. To connect over IPv4, you must explicitly assign an IPv4 addresss to your instance, which incurs a charge per hour idle.