MySQL (1366, "Incorrect string value: '\\xF0\\x9F\\x8E\\xAC\\xE5\\x89...' for column 'description' at row 1")

时间:2022-06-10 20:13:44

 (1366, "Incorrect string value: '\\xF0\\x9F\\x8E\\xAC\\xE5\\x89...' for column 'description' at row 1")

针对MySQL的这个错误,

修改方法是  

 

set names utf8mb4;

SET CHARACTER SET utf8mb4;
SET character_set_connection=utf8mb4;