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
InnoDBtables 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 TABLEstatement. See Configuring Persistent Optimizer Statistics Parameters for details.
-
InnoDB: To ease the memory load on systems with huge numbers of tables,
InnoDBnow 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 openInnoDBtables, increase the value of thetable_definition_cacheconfiguration option.InnoDBtreats this value as a “soft limit” for the number of open table instances in theInnoDBdata dictionary cache. The actual number of tables with cached metadata could be higher than the value specified fortable_definition_cache, because metadata forInnoDBsystem tables, and parent and child tables in foreign key relationships, is never evicted from memory. For additional information, refer to thetable_definition_cachedocumentation. (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 namedtwith some integer column namedc, andthas 4 partitions namedp0,p1,p2, andp3. Then the querySELECT * FROM t PARTITION (p0, p1) WHERE c < 5returns rows only in partitionsp0andp1that match theWHEREcondition, whereas partitionsp2andp3are 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-checksumoption. To cause the server to read checksums from the binary log, start the server with themaster_verify_checksumsystem variable enabled. The--slave-sql-verify-checksumoption 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_checksumsystem variable), the master can use these instead by enabling themaster_verify_checksumsystem 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_checksumsystem 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_repositoryandrelay_log_info_repositorysystem variables. Whenmaster_info_repository=TABLE, connection information is logged in theslave_master_infotable in themysqlsystem database. Whenrelay_log_info_repository=TABLE, relay log information is logged to theslave_relay_log_infotable, also in themysqlsystem database.
-
Incompatible Change: The following obsolete constructs have been removed. Where alternatives are shown, applications should be updated to use them.
-
The
FLUSH MASTERandFLUSH SLAVEstatements. Use theRESET MASTERandRESET SLAVEstatements instead.
-
浙公网安备 33010602011771号