installer: automatic detection of default database host #12646
Labels
c: Onboarding
For issues that make the experience of getting Matomo up and running better.
c: Usability
For issues that let users achieve a defined goal more effectively or efficiently.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
Currently, the installer defaults to database host
127.0.0.1
, which means a local TCPv4 database.There are other local ways of connection, though: The server could be reachable via TCPv6 only, and, more importantly, via unix socket using the special value
localhost
. Connecting via unix socket is the only way of connection where Unix Socket Authentication works. So to use that, the user currently has to change from127.0.0.1
tolocalhost
- which seems very unintuitive.Proposal: Have the installer try local database servers, first
localhost
, then::1
, then127.0.0.1
and fill in the first thing that works as default for the database hostname field.Related: #12584 and #1642
The text was updated successfully, but these errors were encountered: