How does one make MySQL default to utf8mb4 for all strings, table types, and the connection encoding? I have this in my my.cnf file:
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
default-character-set=utf8mb4
[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8mb4'
character-set-server = utf8mb4
Yet I still have latin8 showing up in places.
Connection encoding can be overriden on per-session basis, and actually it is a good practice, so you need to check actual clients.
Keep eye on:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With