Skip to content

Instantly share code, notes, and snippets.

@heyitsjames
Created March 17, 2025 18:51
Show Gist options
  • Select an option

  • Save heyitsjames/20a94824a4747911a6108a64f3801f4b to your computer and use it in GitHub Desktop.

Select an option

Save heyitsjames/20a94824a4747911a6108a64f3801f4b to your computer and use it in GitHub Desktop.
james@abundance lift % gcloud auth application-default login
cloud-sql-proxy --port 4400 redacted-username:us-central1:redacted-database-name
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&scope=openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fsqlservice.login&state=qPMF48maoqNt0ALTPmnEp9ZV7mu9Ph&access_type=offline&code_challenge=lqkLfxzgZI7EwcGZaBSIfhoADFqGhVSTMbOlPH_rHjE&code_challenge_method=S256
Credentials saved to file: [/Users/james/.config/gcloud/application_default_credentials.json]
These credentials will be used by any library that requests Application Default Credentials (ADC).
WARNING:
Cannot add the project "redacted-project-name" to ADC as the quota project because the account in ADC does not have the "serviceusage.services.use" permission on this project. You might receive a "quota_exceeded" or "API not enabled" error. Run $ gcloud auth application-default set-quota-project to add a quota project.
Updates are available for some Google Cloud CLI components. To install them,
please run:
$ gcloud components update
2025/03/17 12:44:42 Authorizing with Application Default Credentials
2025/03/17 12:44:42 [redacted-username:us-central1:redacted-database-name] Listening on 127.0.0.1:4400
2025/03/17 12:44:42 The proxy has started successfully and is ready for new connections!
2025/03/17 12:44:54 [redacted-username:us-central1:redacted-database-name] Accepted connection from 127.0.0.1:51913
2025/03/17 12:44:54 [redacted-username:us-central1:redacted-database-name] Accepted connection from 127.0.0.1:51906
2025/03/17 12:44:54 [redacted-username:us-central1:redacted-database-name] failed to connect to instance: Dial error: handshake failed (connection name = "redacted-username:us-central1:redacted-database-name"): write tcp 192.168.1.107:51916->34.67.206.255:3307: write: broken pipe
2025/03/17 12:44:54 [redacted-username:us-central1:redacted-database-name] Accepted connection from 127.0.0.1:51919
2025/03/17 12:44:54 [redacted-username:us-central1:redacted-database-name] Accepted connection from 127.0.0.1:51926
2025/03/17 12:44:55 [redacted-username:us-central1:redacted-database-name] client closed the connection
2025/03/17 12:44:55 [redacted-username:us-central1:redacted-database-name] Accepted connection from 127.0.0.1:51931
2025/03/17 12:44:56 [redacted-username:us-central1:redacted-database-name] client closed the connection
2025/03/17 12:44:56 [redacted-username:us-central1:redacted-database-name] Accepted connection from 127.0.0.1:51956
2025/03/17 12:44:57 [redacted-username:us-central1:redacted-database-name] client closed the connection
2025/03/17 12:45:00 [redacted-username:us-central1:redacted-database-name] failed to connect to instance: Dial error: handshake failed (connection name = "redacted-username:us-central1:redacted-database-name"): EOF
2025/03/17 12:45:03 [redacted-username:us-central1:redacted-database-name] Accepted connection from 127.0.0.1:52030
2025/03/17 12:45:09 [redacted-username:us-central1:redacted-database-name] failed to connect to instance: Dial error: handshake failed (connection name = "redacted-username:us-central1:redacted-database-name"): EOF
2025/03/17 12:45:09 [redacted-username:us-central1:redacted-database-name] Accepted connection from 127.0.0.1:52088
2025/03/17 12:45:10 [redacted-username:us-central1:redacted-database-name] failed to connect to instance: Dial error: handshake failed (connection name = "redacted-username:us-central1:redacted-database-name"): write tcp 192.168.1.107:52089->34.67.206.255:3307: write: broken pipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment