utf8 过去在 MySQL 中被用作 utf8mb3 字符集的别名,但这种用法现在已经被弃用;在 MySQL 8.4 中,SHOW 语句和 INFORMATION_SCHEMA 表的列将显示 utf8mb3。更多信息请参见 第 12.9.2 节,“utf8mb3 字符集(三字节 UTF-8 Unicode 编码)”。utf8 has been used by MySQL in the past as an
alias for the utf8mb3 character set, but this
usage is now deprecated; in MySQL 8.4,
SHOW statements and columns of
INFORMATION_SCHEMA tables display
utf8mb3 instead. For more information, see
Section 12.9.2, “The utf8mb3 Character Set (3-Byte UTF-8 Unicode Encoding)”.
MySQL 推荐的字符集是 utf8mb4。所有新应用程序都应使用 utf8mb4。The recommended character set for MySQL is
utf8mb4. All new applications should use
utf8mb4.
utf8mb3 字符集已被弃用。utf8mb3 在 MySQL 8.0.x 和 MySQL 8.4.x LTS 版本系列的生命周期内仍然受支持。The utf8mb3 character set is deprecated.
utf8mb3 remains supported for the lifetimes
of the MySQL 8.0.x and MySQL 8.4.x LTS release series.
预计 utf8mb3 将在 MySQL 的未来主要版本中被移除。Expect utf8mb3 to be removed in a future
major release of MySQL.
由于更改字符集可能是一个复杂且耗时的任务,你应该现在就开始准备这一更改,通过在新应用程序中使用 utf8mb4。有关将现有使用 utf8mb3 的应用程序进行转换的指导,请参阅 第 12.9.8 节,“3 字节与 4 字节 Unicode 字符集之间的转换”。Since changing character sets can be a complex and
time-consuming task, you should begin to prepare for this
change now by using utf8mb4 for new
applications. For guidance in converting existing applications
which use utfmb3, see
Section 12.9.8, “Converting Between 3-Byte and 4-Byte Unicode Character Sets”.