Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5981

Matomo + tidb installation

$
0
0

I tried to install matomo with tidb instead of mysql, succeeded.

matomo version:5.1.2
TiDB version: 8.1
both are latest version at the time being.

need apply for 2 changes to make it succeed.

  1. after unzip the source of matomo, modify plugins/CoreHome/Columns/ServerTime.php, comment or delete line with “ADD INDEX index_idsite_servertime”:
    public function install()
    {
        $changes = parent::install();
        $changes['log_link_visit_action'][] = "ADD INDEX index_idsite_servertime ( idsite, server_time )";


        return $changes;
    }

i.e., https://github.com/matomo-org/matomo/blob/a4d8cebebc6f6a01ba8fbc3adb1ec4b6c126265e/plugins/CoreHome/Columns/ServerTime.php#L46

  1. install matomo via web as usual.
    database type select MySQL
    installation completes and successful.

  2. manually adding back above index via mysql cli, for example:
    mysql> ALTER TABLE matomo_log_link_visit_action ADD INDEX index_idsite_servertime (idsite, server_time);

  3. modify config/config.ini.php, under [General] section, add

enable_load_data_infile = 0

then GUI / tracker / archiver all working.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5981

Trending Articles