Mysql:Changes in MySQL 8.0.13 (2018-10-22, General Availability):utf8mb3 ->utf8mb4
Changes in MySQL 8.0.13 (2018-10-22, General Availability)
-
...
-
InnoDB: Support for
TABLESPACE = innodb_file_per_table
andTABLESPACE = innodb_temporary
clauses withCREATE TEMPORARY TABLE
is deprecated and will be removed in a future MySQL version. -
The
utf8mb3
character set is deprecated and will be removed in a future MySQL version. Please useutf8mb4
instead.
-
Incompatible Change: The deprecated
ASC
orDESC
qualifiers forGROUP BY
clauses have been removed. Queries that previously relied onGROUP BY
sorting may produce results that differ from previous MySQL versions. To produce a given sort order, provide anORDER BY
clause.Queries and stored program definitions from MySQL 8.0.12 or lower that use
ASC
orDESC
qualifiers forGROUP BY
clauses should be amended. Otherwise, upgrading to MySQL 8.0.13 or higher may fail, as may replicating to MySQL 8.0.13 or higher slave servers.
-
Important Change: Setting user variables in statements other than
SET
is now deprecated due to issues that included those listed here:-
The order of evaluation for expressions involving user variables was undefined.
-
The default result type of a variable is based on its type at the beginning of the statement, which could have unintended effects when a variable holding a value of one type at the beginning of a statement was assigned a new value of a different type in the same statement.
-
HAVING
,GROUP BY
, andORDER BY
clauses, when referring to a variable that was assigned a value in the select expression list, did not work as expected because the expression was evaluated on the client and so it was possible for stale column values from a previous row to be used.
Syntax such as
SELECT @var, @var:=@var+1
is still accepted in MySQL 8.0 for backward compatibility, but is subject to removal in a future MySQL version. -
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)