Illegal mix of collations


I have the same problem:

Using version 5.1.1

Any solution to that problem?

Hi @54mu3l, @none
I seems your database uses several SQL collations (kind of language for string characters).
Is this error following an update or is it a fresh installation?

It was an update to the latest 5.x version

Before the update everything worked well.

Same problem here, happened with the upgrade from 11.4.3 → 11.5.2. I checked all my collations, and they all match.

Hi @an0nfunc
If you did the DB migration, then I suppose the problem comes from there. You have to fix this manually, or revert to the previous DB…

Hi @none
When upgrading, did you also add new plugins?

Hi, i did not install anything. I just run the update to the latest matomo version via matomo interface. Thete were no error messages diring the update. Since the updaze i get those sql errors.

Fix what manually? The tables and columns all have the correct collation, that’s what’s so weird about this.

Matomo was not upgraded since this started. Was only the mariadb upgrade.

Hi @an0nfunc, @none, @54mu3l
It seems the bug has been reported in the Matomo GitHub:

@heurteph-ei It’s not a fresh installation. The installation is running for several years now.

The issue arose a couple days ago. It might be linked to the update to Matomo v5.1.1.

But, there might also have been an automatic MariaDB update. So this could also be the root of the problem. Currently running MariaDB 11.5.2

As @an0nfunc mentioned, I also checked my collations and they seem correct.
Therefore, I don’t know how I could fix this manually…

But let’s see what the GitHub-Issue concludes…

Since the data collection continues to work for now, we can wait a couple of days. But the archiving job also throws an error. Therefore I hope for a solution soon.

1 Like

This will need changes on Matomo’s side. Setting the connection collation should fix this, probably.

We also have the same issue. We updated Matomo to 5.1.1 and then the docker, which is running 11.5.2, and now we get the mismatch error.
Should we expect an update from Matomo, or do we have to fix this ourselves, and if so, how?

Hi @yellowdog,
I think you’ll have to wait for a fix.
As soon as a a pull request will be linked to the ticket and the merge approved, you’ll be able to apply manually the fix on your installation, before waiting for the official release containing this fix.