Skip to content


Subversion checkout URL

You can clone with
Download ZIP


MySQL: unix socket support #614

robocoder opened this Issue · 1 comment

1 participant


Piwik support for unix sockets is kludgey. The unix socket is configured (embedded in) the host setting: ``` host = “localhost;unix_socket=/path” ``` This results in a DSN that looks like “host=localhost;unix_socket=/path;port=3306”.

For now, this appears to work, but according to PHP docs (, unix_socket “shouldn’t be used with host or port” in the PDO DSN. (The implication is that while this works now, this may not be the case in the future.)

In core/Tracker/Db.php, I propose: (I omit the drivername and dbname to simplify the pseudocode) ``` if (host0 == ‘/’) { dsn = “unix_socket=$host”; } else { dsn = “host=$host;port=$port”; } ```


(In 991) Fix #614 – MySQL unix socket support

@robocoder robocoder added this to the RobotRock milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.