DB errors with utf8 charset / utf8mb4 tables with MariaDB 10.3
-
Hi all,
Ran into an issue after upgrading from MariaDB 10.1 to MariaDB 10.3, using the latest HyperDB (1.7). On a site with database tables using the
utf8mb4
charset but the wp-config constant set toutf8
, a Twitter oembed with an emoji repeatedly caused an “Incorrect string value” database error and it could not cache to thepostmeta
table. Toggling theDB_CHARSET
constant toutf8mb4
resolved the issue.Without HyperDB, with
DB_CHARSET
set toutf8
, WordPress will allow or disallow emojis based on the table charset. This would be my expectation of HyperDB behavior. I have only encountered it in this configuration (MariaDB 10.3, WordPress 4.9.16, HyperDB 1.7) so I don’t know how prevalent it is across database versions.
- The topic ‘DB errors with utf8 charset / utf8mb4 tables with MariaDB 10.3’ is closed to new replies.