Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am eriksaunier on github.
  • I am eriksaunier (https://keybase.io/eriksaunier) on keybase.
  • I have a public key ASCBBmvykahzrzD39wvtZzTJKYu7X0bZ_N_mgO7mPZO10go

To claim this, I am signing this object:

@ErikSaunier
ErikSaunier / cloud-sql-proxy.service
Created May 30, 2018 12:08
How to install Cloud SQL Proxy on Compute Engine instance and make it start on boot with Systemd
[Unit]
Description=Connecting MySQL Client from Compute Engine using the Cloud SQL Proxy
Documentation=https://cloud.google.com/sql/docs/mysql/connect-compute-engine
Requires=networking.service
After=networking.service
[Service]
WorkingDirectory=/usr/local/bin
ExecStart=/usr/local/bin/cloud_sql_proxy -dir=/var/run/cloud-sql-proxy -instances=<INSTANCE_CONNECTION_NAME>=tcp:3306
Restart=always