You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT CONCAT('SELECT `type` COLLATE utf8mb4_unicode_ci as type, "', schema_name, '" COLLATE utf8mb4_unicode_ci as tenant FROM `',
schema_name, '`.`micro_sessions` UNION ALL')
FROMinformation_schema.schemataWHERE schema_name NOT IN ('information_schema','mysql','performance_schema');
Convert everything to different Charset + Collation
SELECT CONCAT(
'ALTER TABLE `',
TABLE_NAME,
'` CONVERT TO CHARACTER SET utf8mb4',
' COLLATE utf8mb4_unicode_ci;')
FROMINFORMATION_SCHEMA.TABLESWHERE TABLE_SCHEMA IN (
SELECT schema_name
FROMinformation_schema.schemataWHERE schema_name NOT IN ('information_schema','mysql','performance_schema')
) AND TABLE_TYPE="BASE TABLE";