IT评测·应用市场-qidao123.com技术社区

标题: MySQL 8.0.32如期而至 [打印本页]

作者: 风雨同行    时间: 2023-2-8 16:04
标题: 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.322023.1.178.0.282022.1.188.0.312022.10.118.0.272021.10.108.0.302022.7.268.0.262021.7.208.0.292022.4.268.0.25 8.0.242021.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。
  1. mysql> create table $t1(id int primary key);
  2. Query OK, 0 rows affected, 1 warning (0.02 sec)
  3. mysql> show warnings;
  4. +---------+------+-------------------------------------------------------------------------------------------------------------+
  5. | Level   | Code | Message                                                                                                     |
  6. +---------+------+-------------------------------------------------------------------------------------------------------------+
  7. | Warning | 1681 | '$ as the first character of an unquoted identifier' is deprecated and will be removed in a future release. |
  8. +---------+------+-------------------------------------------------------------------------------------------------------------+
  9. mysql> table $t1;
  10. +----+
  11. | id |
  12. +----+
  13. |  1 |
  14. |  2 |
  15. +----+
  16. 2 rows in set, 1 warning (0.00 sec)
  17. mysql> show warnings;
  18. +---------+------+-------------------------------------------------------------------------------------------------------------+
  19. | Level   | Code | Message                                                                                                     |
  20. +---------+------+-------------------------------------------------------------------------------------------------------------+
  21. | Warning | 1681 | '$ as the first character of an unquoted identifier' is deprecated and will be removed in a future release. |
  22. +---------+------+-------------------------------------------------------------------------------------------------------------+
  23. mysql> table `$t1`; -- 加上反引号 "`" 就不再报告WARN
  24. +----+
  25. | id |
  26. +----+
  27. |  1 |
  28. |  2 |
  29. +----+
  30. 2 rows in set (0.00 sec)
复制代码
  1. $ /usr/local/mysql-8.0.32-linux-glibc2.17-x86_64-minimal/bin/mysqldump --set-gtid-purged=OFF -S./mysql.sock --compress test > test.sql
  2. WARNING: --compress is deprecated and will be removed in a future version. Use --compression-algorithms instead.
  3. $ /usr/local/mysql-8.0.32-linux-glibc2.17-x86_64-minimal/bin/mysql --compress -S./mysql.sock
  4. WARNING: --compress is deprecated and will be removed in a future version. Use --compression-algorithms instead.
复制代码
  1. mysql> set @@explain_format = json;
  2. Query OK, 0 rows affected (0.00 sec)
  3. mysql> explain analyze select * from t1;
  4. ERROR 1235 (42000): This version of MySQL doesn't yet support 'EXPLAIN ANALYZE with JSON format'
复制代码
原来的 EXPLAIN FORMAT=? 语法仍然支持,但不支持设置为 DEFAULT,只能写成 TRADITIONAL:
  1. mysql> explain format=tree select * from t1;
  2. ...
  3. mysql> explain format=json select * from t1;
  4. ...
  5. mysql> explain format=traditional select * from t1;
  6. ...
  7. mysql> explain format=default select * from t1;
  8. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default select * from t1' at line 1
复制代码
有些bug fix的描述信息比较少,或者指向内部bug id无法看到细节,这里就不再罗列了。
延伸阅读

Enjoy GreatSQL
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!




欢迎光临 IT评测·应用市场-qidao123.com技术社区 (https://dis.qidao123.com/) Powered by Discuz! X3.4