-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MailWatch unable to connect to database after upgrading to MariaDB 10.6.5 #1246
Comments
I ran into this as well after noticing the MariaDB 10.2 repo was gone and subsequently trying to upgrade to 10.9. (ended up rolling back to 10.2 via the mariadb archive repo) |
Due to the backward compatibility promise of 1.2 branch MailWatch must support old version of MySQL and their choice to support an incomplete set of UTF8 back in the days. ATM the workaround reported by OP is a quick fix of this issue that doesn't nedd a complete rewrite of the UTF8 stack. |
The workaround of copying the utf8mb3 block and calling it utf8 worked here, although the utf8 block seems to need to be after the utf8mb3 one. UPDATE: this seems to break mysqldump backups. UPDATE: removed the duplicated section in UPDATE: No it doesn't... Fixed by changing |
We should consider migrating to
|
@endelwar I think it is reasonable to bump MySQL minimum to 5.7. Even 5.7 is now EOL. |
I've created a draft PR to begin tests with DBD:MariaDB |
I'll deploy this change to my instance running MariaDB and see about setting up some instances with various versions of MariaDB and MySQL. |
Issue summary
MailWatch is unable to connect to the MariaDB database, emitting the error. As a workaround, you can edit the '/usr/share/mysql/charsets/Index.xml' file and make a copy of "utf8mb3" block and change this new block's charset name to "utf8" as described here (https://jira.mariadb.org/browse/MDEV-26863). It appears that RoundCube has fixed a similar issue in a later release (also noted here, in the comment section at bottom: https://jira.mariadb.org/browse/MDEV-26863).
Steps to reproduce
Expected result
No error should be emitted and it should connect to the MariaDB database.
Actual result
Error is generated stating "Character set 'utf8' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file" and it cannot connect to the MariaDB database.
Installation
Version and method
Server configuration
Client configuration
The text was updated successfully, but these errors were encountered: