Oke same as me, but indeed in 2020 the /etc/my.cnf.d directory was still created.
Still I would suggest to move the setting to the /etc/my.cnf file under de [mysqld] part, because later on that directory will not exist anymore and when comparing settings you might miss this one in that case.
Just out of curiousity, I just created a database and couldn't see directly if it was utf8 or latin or whatever. So I presume it must be filled with data first before it's visible which collation it has.
For example if I look in to my phpyadmin with a filled database, it says in "general" when logging in to phpmyadmin:
utf8mb4_general_ci
When I click the tab "databases", the "information_scheme" has nothing, but my own database says "latin1_swedish_ci" however....
When I click on my database itself, there are only tables in the utf8mb4_general_ci collation.
However on the last line it says:
| 218 tabellen | Som | ~1.098.426 | InnoDB | latin1_swedish_ci | 573,8 MiB | 5,1 KiB |
---|
As you can see, 218 tables, Innodb, latin1_swedish_ci. So I'm wondering why in the total here it still says latin1_swedish_ci while there is not a single latin1_swedish_ci table in the database.
Any clue?