I am trying to fix a character encoding issue - previously we had the collation set for this column utf8_general_ci which caused issues because it is accent insensitive..
Firstly run this query
SHOW VARIABLES LIKE '%char%';
You have character_set_server='latin1'
character_set_server='latin1'
for eg if CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci replace it to CHARSET=latin1 and remove the collate
CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
CHARSET=latin1
You are good to go