I need to change the charset and collation on schemata performance_schema and information_schema from the soon to be deprecated utf8mb3
character_set_system is set to utf8mb3 - I need to change this too
+--------------+--------------------+----------------------------+------------------------+----------+--------------------+
| CATALOG_NAME | SCHEMA_NAME | DEFAULT_CHARACTER_SET_NAME | DEFAULT_COLLATION_NAME
+--------------+--------------------+----------------------------+------------------------+----------+--------------------+
| def | information_schema | utf8mb3 | utf8mb3_general_ci |
| def | performance_schema | utf8mb3 | utf8mb3_general_ci |
When I run
mysql> ALTER DATABASE performance_schema CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
I get the error:
ERROR 1044 (42000): Access denied for user ‘root’@‘localhost’ to database ‘performance_schema’
Even though ‘root’@‘localhost’ has Grant_priv and Super_priv set to ‘Y’