@@ -88,7 +88,7 @@ export DB_SOCKET_DIR=/path/to/the/new/directory
8888Use these terminal commands to initialize other environment variables as well:
8989``` bash
9090export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account/key.json
91- export INSTANCE_CONNECTION_NAME =' <MY-PROJECT>:<INSTANCE-REGION>:<INSTANCE-NAME>'
91+ export CLOUD_SQL_CONNECTION_NAME =' <MY-PROJECT>:<INSTANCE-REGION>:<INSTANCE-NAME>'
9292export DB_USER=' <DB_USER_NAME>'
9393export DB_PASS=' <DB_PASSWORD>'
9494export DB_NAME=' <DB_NAME>'
@@ -99,7 +99,7 @@ help keep secrets safe.
9999
100100Then use this command to launch the proxy in the background:
101101``` bash
102- ./cloud_sql_proxy -dir=$DB_SOCKET_DIR --instances=$INSTANCE_CONNECTION_NAME --credential_file=$GOOGLE_APPLICATION_CREDENTIALS &
102+ ./cloud_sql_proxy -dir=$DB_SOCKET_DIR --instances=$CLOUD_SQL_CONNECTION_NAME --credential_file=$GOOGLE_APPLICATION_CREDENTIALS &
103103```
104104
105105### Testing the application
@@ -168,8 +168,8 @@ Take note of the URL output at the end of the deployment process.
168168
169169``` sh
170170gcloud run services update run-mysql \
171- --add-cloudsql-instances [INSTANCE_CONNECTION_NAME ] \
172- --set-env-vars CLOUD_SQL_CONNECTION_NAME=[INSTANCE_CONNECTION_NAME ],\
171+ --add-cloudsql-instances [CLOUD_SQL_CONNECTION_NAME ] \
172+ --set-env-vars CLOUD_SQL_CONNECTION_NAME=[CLOUD_SQL_CONNECTION_NAME ],\
173173DB_USER=[MY_DB_USER],DB_PASS=[MY_DB_PASS],DB_NAME=[MY_DB]
174174```
175175Replace environment variables with the correct values for your Cloud SQL
0 commit comments