慕妹3242003
1)数据库:将数据库默认排序规则更改为utf8mb4.2)表:更改表排序规则CHARACTER SET utf8mb4 COLLATE utf8mb4_bin.查询:ALTER TABLE Tablename CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin3)守则:INSERT INTO tablename (column1, column2, column3, column4, column5, column6, column7)VALUES ('273', '3', '
Hdhdhdhhzhzhzzhjzj 我爱你 ', 49, 1, '2016-09-13 08:02:29', '2016-09-13 08:02:29')4)集合utf8mb4在数据库连接中: $database_connection = new mysqli($server, $user, $password, $database_name);
$database_connection->set_charset('utf8mb4');