0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Mac OS 11.0以上の環境でGCP接続する際はパスの指定方法に注意

Posted at

本稿

GCPにソケット接続する際に公式では

./cloud_sql_proxy -dir=/cloudsql -instances=INSTANCE_CONNECTION_NAME
-credential_file=PATH_TO_KEY_FILE &

となっているが、

ホームディレクトリに作成したcloudsqlディレクトリを指定する際は

-dir=/cloudsql
ではなく

-dir=./cloudsql

./cloud_sql_proxy -dir=./cloudsql -instances=INSTANCE_CONNECTION_NAME
-credential_file=PATH_TO_KEY_FILE &

Mac OS 11.0以上でパスを指定する際はホームディレクトリを省略できないので、この場合は以下のようにホームディレクトリを明記した相対パスで指定しないといけない

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?