I have authorized my google compute VM's static ipaddress for the cloud sql instance.
I can connect to the cloud sql instance using a mysql client on my compute VM but when I am running a php script on the compute VM it fails on the mysqli create connection call with a 500 error saying cannot load resource (console error)
Any help is appreciated. Thanks.