简体   繁体   中英

Connecting to Google Cloud SQL with IPV6

I've been trying to connect unsuccessfully to my google cloud sql database (mysql) with the IPV6 address that Google gives you.

mysql -h 0:0:0:0:0:aaaa:aaaa:aaaa -u admin -p

The client prompts for a password but it won't allow me to connect.

ERROR 2003 (HY000): Can't connect to MySQL server on ...

If I use the IPV4 I can connect without any issues. Has anyone else experienced any issues with this?

If your ISP does not support IPv6 connectivity, then you will not be able to use the IPv6 address provided. If this is the case, then you will need to request an IPv4 address for your Cloud SQL instance. Then you must authorize the IP address from which you will be connecting (not the IP address of your Cloud SQL instance). The process can be found in this article on 'Connecting from External Applications' .

It is important to note that while your IPv6 address is free to use, assigning an IPv4 address will incur additional charges. I recommend reviewing the pricing information for Cloud SQL so you can get a better idea of how this is calculated.

I hope that this information is helpful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM