MySQL 8.0.32如期而至

MySQL 8.0版本计划

MySQL 8.0开始采用快速迭代开发模式,基本上是每隔3个月就发布一个新的小版本。去年1月18日(2022.1.18)发布MySQL 8.0.28,今年1月17日发布MySQL 8.0.32,再看看其他几个版本的时间,还真是贼守时啊。

版本 发布时间 上一年版本 上一年发布时间
8.0.32 2023.1.17 8.0.28 2022.1.18
8.0.31 2022.10.11 8.0.27 2021.10.10
8.0.30 2022.7.26 8.0.26 2021.7.20
8.0.29 2022.4.26 8.0.25 8.0.24 2021.5.11 2022.4.20

在这中间,出了点小意外,MySQL 8.0.29因为存在严重安全问题,刚上架没多久就被下架了,可以看下这篇文章的解读:MySQL8.0.29出现重大bug,现已下架。

MySQL 8.0.32的一些变化

总的来说,8.0.32版本基本上属于修修补补状态,乏善可陈。

在这里,主要罗列我个人认为需要关注的几个要点或bug fix,想看详细变化的可以查看 MySQL 8.0.32 Release Notes, https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-32.html。

  • 当数据表名用 "$" 开头的话,引用时必须用反引号 "`",否则会有一个WARN,例如:

mysql> create table $t1(id int primary key); Query OK, 0 rows affected, 1 warning (0.02 sec) mysql> show warnings; +---------+------+-------------------------------------------------------------------------------------------------------------+ | Level | Code | Message | +---------+------+-------------------------------------------------------------------------------------------------------------+ | Warning | 1681 | '$ as the first character of an unquoted identifier' is deprecated and will be removed in a future release. | +---------+------+-------------------------------------------------------------------------------------------------------------+ mysql> table $t1; +----+ | id | +----+ | 1 | | 2 | +----+ 2 rows in set, 1 warning (0.00 sec) mysql> show warnings; +---------+------+-------------------------------------------------------------------------------------------------------------+ | Level | Code | Message | +---------+------+-------------------------------------------------------------------------------------------------------------+ | Warning | 1681 | '$ as the first character of an unquoted identifier' is deprecated and will be removed in a future release. | +---------+------+-------------------------------------------------------------------------------------------------------------+ mysql> table `$t1`; -- 加上反引号 "`" 就不再报告WARN +----+ | id | +----+ | 1 | | 2 | +----+ 2 rows in set (0.00 sec)