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.
- 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;
}
-
install matomo via web as usual.
database type select MySQL
installation completes and successful. -
manually adding back above index via mysql cli, for example:
mysql> ALTER TABLEmatomo_log_link_visit_actionADD INDEX index_idsite_servertime (idsite, server_time); -
modify config/config.ini.php, under [General] section, add
enable_load_data_infile = 0
then GUI / tracker / archiver all working.
1 post - 1 participant