Mysql:Changes in MySQL 5.7.9 (2015-10-21, General Availability):很重要的版本!
Changes in MySQL 5.7.9 (2015-10-21, General Availability)
-
A new
SHUTDOWN
SQL statement is available. This provides an SQL-level interface to the same functionality previously available using the mysqladmin shutdown command or themysql_shutdown()
C API function. See SHUTDOWN Statement.The
mysql_shutdown()
function and correspondingCOM_SHUTDOWN
client/server protocol command are deprecated and will be removed in a future MySQL version. Instead, usemysql_query()
to execute aSHUTDOWN
statement.
-
Incompatible Change; InnoDB: To better manage redo log format changes, the redo log header of the first redo log file (
ib_logfile0
) now includes a format version identifier and a text string that identifies the MySQL version that created the redo log files.A new boolean configuration option,
innodb_log_checksums
, replaces theinnodb_log_checksum_algorithm
option.innodb_log_checksums=ON
enables aCRC-32C
checksum, making it the only supported checksum for redo log pages.This patch also removes unused fields from the redo log header and checkpoint pages.
Due to redo log format changes introduced by this patch, upgrading to or downgrading from MySQL 5.7.9 and higher requires a clean shutdown and, in some cases, removal of existing redo log files. For instructions related to this change, see Changes in MySQL 5.7, and Downgrade Notes. (Bug #21759424, Bug #78275, Bug #21752674)
-
Important Change; InnoDB:
DYNAMIC
replacesCOMPACT
as the implicit default row format forInnoDB
tables. A new configuration option,innodb_default_row_format
, specifies the defaultInnoDB
row format. Permitted values includeDYNAMIC
(the default),COMPACT
, andREDUNDANT
.The
COMPACT
row format remained the default row format until this release to ensure compatibility with older versions ofInnoDB
in MySQL 5.1 and earlier. Now that MySQL 5.1 has reached the end of its product lifecycle, the newerDYNAMIC
row format becomes the default. For information about advantages of theDYNAMIC
row format, see DYNAMIC Row Format.Newly created tables use the row format defined by
innodb_default_row_format
when aROW_FORMAT
option is not specified explicitly or whenROW_FORMAT=DEFAULT
is used.Existing tables retain their current row format if a
ROW_FORMAT
option was specified explicitly. If aROW_FORMAT
option was not specified explicitly or ifROW_FORMAT=DEFAULT
was used, any operation that rebuilds a table also silently changes the row format of the table to the format defined byinnodb_default_row_format
. For more information, see Defining the Row Format of a Table. - ...
【推荐】国内首个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)