Make "localhost" the default database host form value #12584
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
for new installations, replacing 127.0.0.1 to support MySQL / MariaDB unix user authentication
out of the box.
Unix Socket Authentication does not work when the database host is given as
127.0.0.1
, like the current default.For the NixOS Linux distribution, I apply this patch downstream so that users only need to fill in
matomo
as username without creating, copying and storing a MySQL / MariaDB user pasword and are done.This of course would require
localhost
to be defined somehow, but I never saw a distribution where there wasn't an entry e.g. in/etc/hosts
.Note that this is only affecting new installations, and if the database connection would fail, it could still be changed by the user to
127.0.0.1
or whatever they need.