tchapi / davis

🗓 A simple, fully translatable admin interface for sabre/dav based on Symfony 5 and Bootstrap 5, initially inspired by Baïkal.

Home Page:https://github.com/users/tchapi/projects/1/views/1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mariadb 11.3(.2?) incompatibility

holow29 opened this issue · comments

Having issues with MariaDB 11.3.2. Works fine when reverting to 11.2.3.

Getting the following error when trying to check migrations (and I'm guessing on every connection to DB):
SQLSTATE[HY000] [2054] Server sent charset (0) unknown to the client. Please, report to the developers

On MariaDB server, it is showing connection is dropped:
[Warning] Aborted connection 499 to db: 'unconnected' user: 'unauthenticated' host: '172.19.0.2' (This connection closed normally without authentication)

I am by no means an expert in character sets if this is in fact the issue. In my fastcgi params, I have charset=utf8mb4 in the DATABASE_URL. Looking at what I can see of the character set differences between the database at 11.3.2 vs. 11.2.3, I see the following change:
11.3.2:
| character_set_collations | utf8mb4=utf8mb4_uca1400_ai_ci |
11.2.3:
| character_set_collations | |

This was just hotfixed in the MariaDB 11.3.2 docker image for compatibility. Fix for PHP still forthcoming, but will now work at least.

Thanks for the heads-up!