EC-CUBE / EC-CUBE/ec-cube2

ブラウザからインストールする場合にデータベースの接続でUNIX socket接続が指定できない

Open
#1,410 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
92
Forks
97
Avg merge
4d 2h
Merged PRs (30d)
9

Description

ブラウザでインストール画面を表示してインストールする場合、データベースの接続設定画面でhostにlocalhostもしくはソケットのパスを書いても設定できない。
mdb2に渡す接続情報がtcp接続になってしまい、接続に失敗する

mdb2に渡されるデータは以下の様になってしまう
```php
{
["phptype"]=> string(5) "pgsql"
["dbsyntax"]=> string(5) "pgsql"
["username"]=> string(6) "dbuser"
["password"]=> string(6) "secret"
["protocol"]=> bool(false)
["hostspec"]=> string(33) "/var/run/postgresql/.s.PGSQL.5432"
["port"]=> string(0) ""
["socket"]=> bool(false)
["database"]=> bool(false)
["mode"]=> bool(false) }
```
何故かデータベース名も消える

TCP接続よりもUNIX socket接続の方が高速なため、Unix socket接続できる様にしたい

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the browser-based installation database settings and trace how the host, database name, and connection mode are passed to MDB2. Reproduce the PostgreSQL configuration with a UNIX socket path, then verify that the database name is preserved and MDB2 receives a socket connection instead of TCP.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, postgresql
Domain
backend, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.