The global variable "@@hostname" always has the value of 'localhost' in 'Cloud SQL for MySQL'. — Cloud SQL feature request — Has it shipped?