mysql utf8mb4

1
2
3
4
ALTER DATABASE ylyn CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
ALTER TABLE `user_info` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
ALTER TABLE `user_info` MODIFY COLUMN `nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
SHOW VARIABLES WHERE Variable_name LIKE 'character%' OR Variable_name LIKE 'collation%';
  • 本文作者: zhanqi
  • 本文链接: https://zhanqi.net/post/180826/
  • 版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!