Mysql:Changes in MySQL 5.7.7 (2015-04-08, Release Candidate):The innodb_file_format default value was changed to Barracuda
Changes in MySQL 5.7.7 (2015-04-08, Release Candidate)
-
Important Change; InnoDB: The following changes were made to
InnoDBconfiguration option default values:-
The
innodb_file_formatdefault value was changed toBarracuda. The previous default value wasAntelope. This change allows tables to use Compressed or Dynamic row formats. -
The
innodb_large_prefixdefault value was changed toON. The previous default wasOFF. Wheninnodb_file_formatis set toBarracuda,innodb_large_prefix=ONallows index key prefixes longer than 767 bytes (up to 3072 bytes) for tables that use a Compressed or Dynamic row format. -
The
innodb_strict_modedefault value was changed toON. The previous default wasOFF. Wheninnodb_strict_modeis enabled,InnoDBraises error conditions in certain cases, rather than issuing a warning and processing the specified statement (perhaps with unintended behavior).
The configuration parameter default changes described above may affect replication and mysqldump operations. Consider the following recommendations when using the new default settings:
-
When replicating or replaying mysqldump data from older MySQL versions to MySQL 5.7.7 or higher, consider setting
innodb_strict_modetoOFFto avoid errors. Target settings should not be more strict than source settings. -
When replicating from MySQL 5.7.7 or higher to older slaves, consider setting
innodb_file_format=Barracudaandinnodb_large_prefix=ONon the slave so that the target and source have the same settings.
The following file format related configuration options are deprecated and will be removed in a future MySQL version:
These four configuration options were provided for creating tables compatible with earlier versions of
InnoDBin MySQL 5.1. Now that MySQL 5.1 has reached the end of its product lifecycle, these options are no longer required. Also, the file format scheme, by which named file formats would be introduced as new features were added, was not used after introduction of theBarracudafile format.InnoDBformats have changed since the introduction of theBarracudafile format, but new named file formats have not been added.If non-default values are used for any of the four deprecated options,
InnoDBprints a deprecation and removal warning to the server error log. The same warning is issued to the client if the parameters are set dynamically using aSETstatement. -
-
Important Change; InnoDB: The
innodb_buffer_pool_dump_at_shutdownandinnodb_buffer_pool_load_at_startupconfiguration options are now enabled by default. With this change, a percentage of most-recently-used buffer pool pages is dumped at server shutdown and restored at server startup. This behavior helps avoid a lengthy buffer pool warmup period after restarting the server, particularly for instances with large buffer pools. Theinnodb_buffer_pool_dump_pctoption defines the percentage of buffer pool pages that are dumped. The default value forinnodb_buffer_pool_dump_pctis reduced from 100 to 25.These configuration option default value changes represent a change in behaviour at server shutdown and startup. If you prefer the previous default values, it is recommended that you configure the options explicitly in your MySQL configuration file after upgrading to MySQL 5.7.7 or later, and before restarting the server.
For more information, see Saving and Restoring the Buffer Pool State.
-
Important Change; InnoDB: The
innodb_checksum_algorithmdefault value is nowcrc32. The previous default setting wasinnodb. This change also means thatinnodb_checksums=ONis now equivalent toinnodb_checksum_algorithm=crc32instead ofinnodb_checksum_algorithm=innodb. -
InnoDB: The
InnoDBMeCab full-text parser plugin now supports theeucjpms,cp932, andutf8mb4character sets. (Bug #20534096) -
InnoDB: To address a scalability bottleneck for some workloads where
LOCK_grantis locked in read-mode,LOCK_grantlocks are now partitioned. Read lock requests onLOCK_grantnow acquire one of multipleLOCK_grantpartitions. Write locks must acquire all partitions.To address another scalability bottleneck, the server no longer performs unnecessary lock acquisitions when creating interal temporary tables.
References: See also: Bug #72829, Bug #20023139.
-
Replication: The defaults of some replication related variables have been modified. The following changes have been made:
Additionally, the session scope of
gtid_executedhas been deprecated. The global scope ofgtid_executedremains supported. -
Replication: The XA implementation in MySQL has been made much more compatible with the XA specification. A prepared XA transaction is no longer rolled back at disconnect. Now when replicating using the binary log, an XA transaction in
PREPAREDstate persists in the binary log until an explicitXA COMMITorXA ROLLBACKstatement is issued. In prior versions, an XA transaction that was inPREPAREDstate would be rolled back on clean server shutdown or client disconnect. Similarly, an XA transaction that was inPREPAREDstate would still exist inPREPAREDstate in case the server was shut down abnormally and then started again, but the contents of the transaction could not be written to the binary log. As part of this feature, a new event,XA_prepare_log_event, has been added to track XA transactions in thePREPAREDstate and enable them to be replicated. To finalize a two-phase XA transaction, theXA COMMITorXA ROLLBACKis recorded separately in the binary log, possibly interleaving with other transactions. XA transactions committed with the newXA COMMIT ONE PHASEsyntax are logged as one part usingXA_prepare_log_event.References: See also: Bug #12161, Bug #11745231, Bug #75204, Bug #20214365.
-
Performance Schema stage event instruments that provide statement progress information now are enabled and timed by default. The affected instruments are those displayed by this statement:
SELECT * FROM performance_schema.setup_instruments WHERE ENABLED='YES' AND NAME LIKE "stage/%";
(Bug #20685859)
-
The
XIDcolumn of Performance Schema transaction tables (for example,events_transactions_current) has been split into three columns to permit access to the component parts of XID values. The new columns areXID_FORMAT_ID,XID_GTRID, andXID_BQUAL. (Bug #18320361) -
In MySQL 5.7.6, the
NO_AUTO_CREATE_USERwas deprecated. (It is preferable to create MySQL accounts withCREATE USERrather thanGRANT.) Now the default SQL mode includesNO_AUTO_CREATE_USERand assignments tosql_modethat change theNO_AUTO_CREATE_USERmode state produce a warning, except assignments that setsql_modetoDEFAULT.NO_AUTO_CREATE_USERwill be removed in a future MySQL version, at which point its effect will be enabled at all times (GRANTwill not create accounts). -
Previously, view definitions were not permitted to contain derived tables (subqueries) in the
FROMclause. This restriction has now been lifted.Previously, derived tables (subqueries) or views in the
FROMclause could not be merged into the outer query if they contained subqueries in theSELECTlist. Instead, they were processed using materialization. This restriction has now been lifted so that queries previously executed using materialization can be executed more quickly using merging. (Bug #12755, Bug #11745276, Bug #60417, Bug #11865600)
浙公网安备 33010602011771号