[Err] 1366 - Incorrect string value: '\xF0\x9F\x8E\xB7' for column 'nickname' at row 1
報錯是因爲utf8不能容納超過3個字節的emoji表情,需要使用utf8mb4字符集
解決辦法:
在前面加SET NAMES utf8mb4
[Err] 1366 - Incorrect string value: '\xF0\x9F\x8E\xB7' for column 'nickname' at row 1
報錯是因爲utf8不能容納超過3個字節的emoji表情,需要使用utf8mb4字符集
解決辦法:
在前面加SET NAMES utf8mb4