I have an older MYSQL 5.6.34 database that was created several years ago (not by me). I've taken one of the databases and started building tables in it for use in my applications when I noticed some of the other tables have a latin1
encoding. Then I noticed all the databases, with the exception of the information_schema
all use latin1
.
SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME
information_schema utf8 utf8_general_ci
443347_pxa latin1 latin1_swedish_ci
443348_srp latin1 latin1_swedish_ci
warehouseinventory latin1 latin1_swedish_ci
I'm not sure why the original developer used latin1 for encoding and collation. There's no reason why really.
I'm don't really want to change any encoding on any existing databases, I just want to create new tables with utf8mb4. But the more I think about it, to stay consistent I'd maybe want to change them. The last database I created was warehouseinventory
but I didn't notice the encoding, and I assume it defaulted to latin1
based on the encoding of the previously created databases.
Is there any reason why I'd leave these at latin1
and would it hurt to change them? One of the databases does have spanish language stored in it, but I always thought that was just UTF.