Changing from MySQL "host" to "unix_socket" failed partially #9055
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
I moved my MySQL server and decided to utilize unix_socket instead of specifying a hostname+port in my config.ini.php.
The tracker works fine when using unix_socket but the UI wouldn't use my "unix_socket" configuration. See the (simplyfied) version of my config.ini.php:
Apparently, the Tracker uses a different database connector and supports unix_socket. The libs/Zend/Db/Adapter/Mysqli.php does not support unix_socket and I receive a "could not connect" error when trying to login to Piwik (attempt to login to piwik@localhost).
The libs/Zend/Db/Adapter/Mysqli.php could easilly be patched to support unix_socket (which I did for now, but any update will probably mess this up). I guess a newer version of this library works out-of-the-box, but I'm not sure.
If any help is needed, I'm willing to write a patch for fixing the Adapter; just let me know what's best.
Piwik version 2.14.3 btw.
The text was updated successfully, but these errors were encountered: