When I was on a development situation few days ago, I happened to use the following command on mysql CUI after the command use my_dev_database
for applying charsets to the specific database:
SET NAMES utf8mb4 COLLATE utf8mb4_general_ci;
I intended to use this command to change "character_set_client" and "character_set_results". But this command happened to cause set characters for other databases (perhaps all databases,) on the same server including the database of my working webSite. I was surprised! But after dozen's seconds, character set for the other databases was recovered automatically, and ones for my_dev_database still maintain the modified character set.
I don't understand this weird behavior of mysql. What was happening during the dozen's second for my working website? If some user submit posts during that, the modified character set was saved in the database for my working website on mysql server?
I'm really worried about that. Any advice would be appreciated.