I\'m trying to setup a connection locally for 2nd generation cloud sql instance.
Call for the proxy is
./cloud_sql_proxy -dir=/cloudsql -instances=status
Another take is that if you are using the -dir
flag means you will be connecting through a unix-socket
which for MySQL is an extra connection parameter and the =tcp:3306
becomes redundant, when connecting though 127.0.0.1
this wouldn't work because it is TCP and it is waiting connection on the socket.