Mysql:Changes in MySQL 5.6.2 (2011-04-11, Developer Milestone)
This is a milestone release, for use at your own risk. Upgrades between milestone releases (or from a milestone release to a GA release) are not supported. Significant development changes take place in milestone releases and you may encounter compatibility issues, such as data format changes that require attention in addition to the usual procedure of running mysql_upgrade. For example, you may find it necessary to dump your data with mysqldump before the upgrade and reload it afterward. (Making a backup before the upgrade is a prudent precaution in any case.)
-
Performance; InnoDB: The optimizer statistics for
InnoDB
tables can now persist across server restarts, producing more stable query performance. You can also control the amount of sampling done to estimate cardinality for each index, resulting in more accurate optimizer statistics. This feature involves the configuration optionsinnodb_analyze_is_persistent
(later replaced byinnodb_stats_persistent
),innodb_stats_persistent_sample_pages
, andinnodb_stats_transient_sample_pages
, and theANALYZE TABLE
statement. See Configuring Persistent Optimizer Statistics Parameters for details.
-
InnoDB: To ease the memory load on systems with huge numbers of tables,
InnoDB
now frees up the memory associated with an opened table using an LRU algorithm to select tables that have gone the longest without being accessed. To reserve more memory to hold metadata for openInnoDB
tables, increase the value of thetable_definition_cache
configuration option.InnoDB
treats this value as a “soft limit” for the number of open table instances in theInnoDB
data dictionary cache. The actual number of tables with cached metadata could be higher than the value specified fortable_definition_cache
, because metadata forInnoDB
system tables, and parent and child tables in foreign key relationships, is never evicted from memory. For additional information, refer to thetable_definition_cache
documentation. (Bug #20877, Bug #11745884)
-
Partitioning: It is now possible to select one or more partitions or subpartitions when querying a partitioned table. In addition, many data modification statements (
DELETE
,INSERT
,REPLACE
,UPDATE
,LOAD DATA
, andLOAD XML
) that act on partitioned tables also now support explicit partition selection. For example, assume we have a table namedt
with some integer column namedc
, andt
has 4 partitions namedp0
,p1
,p2
, andp3
. Then the querySELECT * FROM t PARTITION (p0, p1) WHERE c < 5
returns rows only in partitionsp0
andp1
that match theWHERE
condition, whereas partitionsp2
andp3
are not checked.For additional information and examples, see Partition Selection, as well as the descriptions of the statements just listed.
-
Replication: Support for checksums when writing and reading the binary log is added to the MySQL Server. Writing checksums into the binary log is disabled by default; it can be enabled by starting the server with the
--binlog-checksum
option. To cause the server to read checksums from the binary log, start the server with themaster_verify_checksum
system variable enabled. The--slave-sql-verify-checksum
option causes the slave to read checksums from the relay log. -
Replication: The MySQL Server now records and reads back only complete events or transactions to and from the binary log. By default, the server now logs the length of the event as well as the event itself and uses this information to verify that the event was written correctly to the log. A master also uses by default this value to verify events when reading from the binary log.
If you enable writing of checksums (using the
binlog_checksum
system variable), the master can use these instead by enabling themaster_verify_checksum
system variable. The slave I/O thread also verifies events received from the master. You can cause the slave SQL thread to use checksums (if available) as well, when reading from the relay log, by enabling theslave_sql_verify_checksum
system variable on the slave.
-
Replication: It is now possible to write information about the slave connection to the master and about the slave's execution point within the relay log to tables rather than files. Logging of master connection information and of slave relay log information to tables can be done independently of one another; this is controlled by the
master_info_repository
andrelay_log_info_repository
system variables. Whenmaster_info_repository=TABLE
, connection information is logged in theslave_master_info
table in themysql
system database. Whenrelay_log_info_repository=TABLE
, relay log information is logged to theslave_relay_log_info
table, also in themysql
system database.
-
Incompatible Change: The following obsolete constructs have been removed. Where alternatives are shown, applications should be updated to use them.
-
The
FLUSH MASTER
andFLUSH SLAVE
statements. Use theRESET MASTER
andRESET SLAVE
statements instead.
-
【推荐】国内首个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)
2014-03-29 Oracle:create pfile from spfile:rac下要小心该操作啊!
2013-03-29 Oracle:管理 date类型 interval 动态变化的分区:查询、删除
2013-03-29 JDBC 访问 Oracle ,如果结果集 中的字段 含有【null】值,无法获得结果集