Error when inserting WeChat small icon into MySql database

A total of two operations have been done. I don’t know if it’s okay to do one step alone, and record it:

The first step: modify the encoding method:

Write picture description here

Step 2: Modify the field format in the table name

ALTER TABLE qp_member MODIFY COLUMN wx_name TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

(It is estimated that the format is the same as the first step, but after changing the first one, there is still an error, so the following statement is executed, you can try the first one first and then the best if you can, if not, execute this statement)

Guess you like

Origin blog.csdn.net/qiuqiu1628480502/article/details/81474900