1
2

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 1 year has passed since last update.

EC-CUBE4でデータベースにUnixソケット接続する場合の設定

Last updated at Posted at 2021-09-21

いつも忘れるので備忘録

PostgreSQL

DATABASE_URL=pgsql://socket:/var/run/postgresql[DB名]?user=[User名]&password=[パスワード]

socket:/var/run/postgresql/.s.PGSQL.5432/を指定するとsocket:/var/run/postgresql/.s.PGSQL.5432/.s.PGSQL.5432とかに接続しようとして接続できない。

MySQL

DATABASE_URL=mysql://socket:/var/run/mysqld/mysql.sock[DB名]?user=[User名]&password=[パスワード]

試してないけどたぶんコレで繋がる

1
2
1

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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?