Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stopping cloud_sql_proxy

How do I stop a cloud_sql_proxy connection?

When I try to connect to my local mysql db I get: MySQL said: Access denied for user 'root'@'cloudsqlproxy~xx.xxx.xx.xxx' (using password: NO) even though I'm connecting to 127.0.0.1, clear the proxy is getting in the way.

I can't find this in the docs... Help!

like image 461
nick Avatar asked Feb 22 '17 12:02

nick


People also ask

How do I stop cloud proxy in SQL?

In the Google Cloud console, go to the Cloud SQL Instances page. To open the Overview page of an instance, click the instance name. Click Stop.

What is Cloud_sql_proxy?

The Cloud SQL Auth proxy works by having a local client running in the local environment. Your application communicates with the Cloud SQL Auth proxy with the standard database protocol used by your database. The Cloud SQL Auth proxy uses a secure tunnel to communicate with its companion process running on the server.


1 Answers

This is what worked for me on MacOS:

  1. Find process ps | grep cloud_sql_proxy

  2. Kill process based on its id kill 97911

like image 118
c7nj7n Avatar answered Nov 03 '22 01:11

c7nj7n