UTF8 VS UTF8MB4 – What’s the difference?
You’re getting a support call from an IT administrator in a tech
company saying some of his critical data can’t be saved in the
product you deployed at his servers a week ago. His users are
seeing a general error from the application. About 30 of his 500
users are experiencing this issue and can’t save data in the
application.
After a short 15 minutes debug session, you can see that the data
is transmitted from the client side, received in the backend
server and the insertion query is fired to the database. But
still, no data in the database.
Hmm.. now it got interesting. You roll up your sleeves, put up a
smile on your face, some sunglasses on your eyes and you start
investigating (well, maybe just start investigating without all
the fancy accessories).
Looking at the logs, it turns out that for specific inputs, MySQL
refused to add the data to the database. The …
[Read more]