MySQL Community Server 5.6.20 发布下载,更新内容如下:
安全更新
-
Security Fix: The linked OpenSSL library for the MySQL 5.6 Commercial Server has been updated from version 1.0.1g to version 1.0.1h. Versions of OpenSSL prior to and including 1.0.1g are reported to be vulnerable to CVE-2014-0224. This change does not affect the Oracle-produced MySQL Community build of MySQL Server 5.6, which uses the yaSSLlibrary instead. (CVE-2014-0224)
InnoDB 更新
-
重大改进: Redo log writes for large, externally stored BLOBfields could overwrite the most recent checkpoint. The 5.6.20 patch limits the size of redo log BLOB writes to 10% of the redo log file size. The 5.7.5 patch addresses the bug without imposing a limitation. For MySQL 5.5, the bug remains a known limitation. As a result of the redo log BLOB write limit introduced for MySQL 5.6, innodb_log_file_size should be set to a value greater than 10 times the largest BLOB data size found in the rows of your tables plus the length of other variable length fields (VARCHAR, VARBINARY and TEXT type fields). Failing to do so could result in “Row size too large”errors. No action is required if your innodb_log_file_size setting is already sufficiently large or your tables contain no BLOB data. (Bug #16963396, Bug #19030353, Bug #69477)
新增功能和功能改进
-
Replication: The new system variable
binlog_impossible_modecontrols what happens if the server cannot write to the binary log, for example, due to a file error. For backward compatibility, the default forbinlog_impossible_modeisIGNORE_ERROR, meaning the server logs the error, halts logging, and continues updates to the database. Setting this variable toABORT_SERVERmakes the server halt logging and shut down if it cannot write to the binary log. (Bug #51014, Bug #11758766) -
CMake support was updated to handle CMake version 3. (Bug #19001781)
-
New Debian7, Ubuntu12.04, and Ubuntu14.04 distribution support that was introduced with 5.6.17 now comes with the platform-specific packaging source placed under the
packagingdirectory, in thedeb-precise,deb-wheezy, anddeb-trustydirectories. (Bug #19020385) -
Support for LinuxThreads has been removed from the source code. LinuxThreads was superseded by NPTL in Linux 2.6. (Bug #17007529, Bug #72888, Bug #18913935)
-
By default, mysql_install_db creates a
my.cnffile in the installation base directory using a template. This may be undesireable for some deployments. To enable this behavior to be suppressed, mysql_install_db now supports a--keep-my-cnfoption to preserve any existingmy.cnffile and not create a newmy.cnffile. (Bug #71600, Bug #18205019) -
The mysqlhotcopy utility is now deprecated and will be removed in a future version of MySQL. Among the reasons for this: It works only for the
MyISAMandARCHIVEstorage engines; it works on Unix but not Windows. Alternatives include mysqldump and MySQL Enterprise Backup. -
The
timed_mutexessystem variable has no effect and is deprecated.
Bugs 修复
-
Important Change; Replication: A
DROP TABLEstatement may be divided into multiple statements before it is sent to the binary log if it contains regular (not temporary) tables and temporary tables, or if it contains temporary tables using both transactional and non-transactional storage engines. Now, when using GTIDs,DROP TABLEstatements affecting these combinations of tables are no longer allowed unless the value of thegtid_nextsystem variable isAUTOMATIC. This is because, with GTIDs enabled on the server, issuing aDROP TABLEin the cases just described while having only one GTID associated with each statement (the SQL thread does this followingSETgtid_next=') causes problems when there are not enough GTIDs for assignment to all the resulting statements following the division of the originaluuid:number'DROP TABLE.A
DROP TABLEstatement might be split due to the behavior of the statement with respect to the current transaction varying, depending on table characteristics, as follows:Naming all three of these types of tables in a single
DROP TABLEstatement causes the MySQL server to divide the original statement into three separateDROP TABLEstatements in the binary log. If GTIDs are enabled but the value ofgtid_nextis notAUTOMATIC, issuing aDROP TABLEstatement that mixes any of the table types described previously causes the server to have an insufficient number of GTIDs to write with all of the resulting statements into the binary log. In addition,DROP TABLE IF EXISTSis always written in the binary log for all tables specified in the statement, even if some or all of the tables do not exist.Because temporary tables are handled differently by
DROP TABLEdepending on whether they use a transactional or nontransactional storage engine, any tables named by aDROP TEMPORARY TABLEstatement that do not exist are assumed to be transactional. This means that, if aDROP TEMPORARY TABLEwith two nontransactional temporary tables is issued on the master, it would writes only oneDROP TABLEstatement naming both tables. If one of the temporary tables no longer exists on the slave, then, when the SQL thread executes the statement, it tries to divide it into multiple statements due to it affecting a nontransactional (but existing) temporary table and a nonexistent transactional temporary table; this leads to problems because the SQL thread has only one GTID for the originalDROP TABLEstatement but must write twoDROP TABLEstatements in the binary log.In addition, when the slave dropped temporary tables after detecting that the master had restarted, it logged one
DROP TABLEstatement per pseudo-thread and per database, but combined temporary tables using transactional and nontransactional storage engines in a singleDROP TABLEstatement.Now, we throw an error in the client session if
gtid_nextis set to auuid:numbervalue and aDROP TABLEstatement is issued mixing any of the table types described previously.In addition, we now group the nonexistent temporary tables and assume them to be transactional only if at least one transactional temporary table is dropped by the statement. If no transactional temporary tables are dropped, any nonexistent temporary tables are assumed to be nontransactional temporary tables.
The slave now also handles dropping of temporary tables correctly in the event of the restart by the master. (Bug #17620053)
-
DROP TABLEof a regular (not temporary) table is committed immediately -
DROP TABLEof a temporary table using a transactional storage engine is committed with the current transaction (followingCOMMIT) -
DROP TABLEof a temporary table that uses a nontransactional storage engine is committed immediately
-
-
InnoDB: Opening a parent table that has thousands of child tables could result in a long semaphore wait condition. (Bug #18806829)
-
InnoDB: For single item full-text searches, deleted documents were included in inverse document frequency (IDF) calculations. (Bug #18711306, Bug #72548)
-
InnoDB: On mysqld start, specifying multiple data files using the
innodb_data_file_pathoption would return a Space id in fsp header error after data is written to the second file. (Bug #18767811) -
InnoDB: A
DELETEoperation on a table with full-text search indexes raised an assertion. (Bug #18683832)References: See also Bug #14639605.
-
InnoDB: When calling the memcached
flush_allcommand,InnoDBattempts to initialize a connection and a transaction. If the transaction is inTRX_STATE_NOT_STARTEDstate,InnoDBwould fail to setCONN_DATA->CRSR_TRXto NULL, resulting in a serious error. (Bug #18652854) -
InnoDB: When
InnoDBis built as a shared library, attempting to load theInnoDBfull-text search (FTS)INFORMATION_SCHEMAplugin would fail with a Can't open shared library 'ha_innodb.so' error. (Bug #18655281, Bug #70178) -
InnoDB: A regression introduced in MySQL 5.6.5 would cause full-text search index tables to be created in the system tablespace (space 0) even though
innodb_file_per_tablewas enabled. (Bug #18635485) -
InnoDB: The
InnoDBmemcached plugin would callplugin_delwithout acquiring thelock_pluginmutex. This bug fix also addresses a race condition inib_cursor_delete_row. (Bug #18409840) -
InnoDB: The fix for Bug#16418661 added superfluous
buf_flush_list()logic toInnoDBstartup code. (Bug #17798076, Bug #70899) -
InnoDB: A race condition in
fts_get_next_doc_idresulted in Duplicate FTS_DOC_ID and Cannot find index FTS_DOC_ID_INDEX in InnoDB index translation table errors. (Bug #17447086, Bug #70311)References: See also Bug #16469399.
-
InnoDB: Due to differences in memory ordering on different processor types, some mutex and read-write lock flags were not read consistently. (Bug #11755438, Bug #47213)
-
Partitioning: Selecting from a table having multiple columns in its primary key and partitioned by
LIST COLUMNS(, whereR)Rwas the last (rightmost) column listed in the primary key definition, returned an incorrect result. (Bug #17909699, Bug #71095) -
Replication: mysqlbinlog
--rawdid not check for errors caused by failed writes, which could result in silent corruption of binary logs. Now in such cases it stops with an error. (Bug #18742916, Bug #72597) -
Replication: When a slave worker thread tried to execute a statement that was too large, the resulting error caused a crash. Now in such cases, the error is truncated to fit the size of the buffer. (Bug #18563480)
-
Replication: When using row-based replication, updating or deleting a row on the master that did not exist on the slave led to failure of the slave when it tried to process the change. This problem occurred with
InnoDBtables lacking a primary key. (Bug #18432495, Bug #72085) -
Replication: Quotation marks were not always handled correctly by
LOAD DATA INFILEwhen written into the binary log. (Bug #18207212, Bug #71603) -
Replication: Beginning in MySQL 5.6.20, when a user specified
AUTO_INCREMENTvalue falls outside of the range between the currentAUTO_INCREMENTvalue and the sum of the current and number of rows affected values it is replicated correctly. In previous versions, an error was generated by the slave even if the user specifiedAUTO_INCREMENTvalue fell outside of the range. (Bug #17588419, Bug #70583) -
Replication: A group of threads involved in acquiring locks could deadlock when the following events occurred:
This leads to the 4 threads deadlocking in the same order which the threads have been listed here.
This problem arises because there are ordering rules for
LOCK_logandLOCK_index, as well as rules for orderingLOCK_thread_countandLOCK_thd_data, but there are no rules for ordering across these two sets of locks. This was because the internalmysqld_list_processes()function invoked bySHOW PROCESSLISTacquiredLOCK_thread_countfor the complete lifetime of the function as well as acquiring and releasing each thread'sLOCK_thd_data. Now this function takes a copy of the threads from the global thread list and performs its traversal on these, and only after releasingLOCK_thread_count. During this traversal, removal from the global thread list is blocked usingLOCK_thd_removesuch that the copies that would otherwise be destroyed by the removal remain valid during traversal. The locking order following this fix is shown here:LOCK_thd_remove -> LOCK_thd_data -> LOCK_log -> LOCK_index -> LOCK_thread_count
(Bug #17283409, Bug #69954)
-
Dump thread reconnects from slave; on master, a new dump thread tries to kill zombie dump threads; having acquired the thread's
LOCK_thd_data, it is about to acquireLOCK_log. -
Application thread executing show binary logs, having acquired
LOCK_logand about to acquireLOCK_index. -
Application thread executing
PURGE BINARY LOGS; having acquiredLOCK_index, it is about to acquireLOCK_thread_count. -
Application thread executing
SHOW PROCESSLIST(orSELECT * FROM INFORMATION_SCHEMA.PROCESSLIST), having acquiredLOCK_thread_countand about to acquire the zombie dump thread'sLOCK_thd_data.
-
-
Replication: On Windows, mysqldump failed if the error log file was deleted (missing) from the active MySQL server. (Bug #17076131)
-
Replication: Client applications should be able to set the
BINLOG_DUMP_NON_BLOCKflag in the initial handshake packet (COM_BINLOG_DUMP). Clients connecting to a server issuing aCOM_BINLOG_DUMPwith the flag unset do not get an EOF when the server has sent the last event in the binary log, which causes the connection to block. This flag, which was removed in error in MySQL 5.6.5, is now restored in the current release.As part of this fix, a new
--connection-server-idoption is added to mysqlbinlog. This option can be used by the client to test a MySQL server for the presence of this issue. (Bug #71178, Bug #18000079) -
When a
SELECTincluded a derived table in a join in itsFROMlist and theSELECTlist includedCOUNT(DISTINCT), theCOUNT()returned 1 even if the underlying result set was empty. (Bug #18853696)References: This bug is a regression of Bug #11760197.
-
Enabling optimizer trace could cause a server exit for queries with a subquery in a
HAVINGclause. (Bug #18791851) -
SHA and MD5 functions failed for operations using the internal
filenamecharacter set and could cause a server exit. (Bug #18786138) -
Large arguments passed to mysqldump could lead to buffer overflow and program exit. (Bug #18779944)
-
Compiler flags were not passed to DTrace, causing problems for 32-bit builds cross-compiled on 64-bit platforms. (Bug #18593044)
-
ALTER TABLEon a partitioned table could result in the wrong storage engine being written into the table's.frmfile and displayed inSHOW CREATE TABLE. (Bug #18618561) -
With the
max_heap_table_sizesystem variable set to a large value (20GB), creation of a temporary table or a table using theMEMORYstorage engine caused a server exit. (Bug #18463911) -
For debug builds, a
0x00character in a full-text query string that used theujis_japanese_ci,utf8mb4_turkish_ci, oreucjpms_bincollation could raise an assertion. (Bug #18277305) -
mysqladmin password masked the old password given on the command line, but not the new password. (Bug #18163964)
-
yaSSL code had an off-by-one error in certificate decoding that could cause buffer overflow.
yaSSL code had an
opendir()without a correspondingclosedir(). (Bug #18178997, Bug #17201924) -
For full-text queries on
InnoDBtables, attempts to access deleted document IDs could lead to a server exit. (Bug #18079671) -
MyISAMtemporary files could be used to mount a code-execution attack. (Bug #18045646) -
For queries that selected from the Performance Schema
events_statements_currenttable, adding anORDER BYclause could produce incorrect results. (Bug #17729044) -
If a query had both
MIN()/MAX()and(for example,aggregate_function(DISTINCT)SUM(DISTINCT)) and was executed using Loose Index Scan, the result values ofMIN()/MAX()were set improperly. (Bug #17217128) -
For
UNIONstatements, the rows-examined value was calculated incorrectly. This was manifest as too-large values for theROWS_EXAMINEDcolumn of Performance Schema statement tables (such asevents_statements_current). (Bug #17059925) -
Clients could determine based on connection error message content whether an account existed. (Bug #16513435, Bug #17357528)
-
An assertion could be raised when creating a index on a prefix of a
TINYBLOBorGEOMETRYcolumn in anInnoDBcolumn. (Bug #16368875, Bug #18776592, Bug #17665767) -
Use of a nonmultibyte algorithm for skipping leading spaces in multibyte strings could cause a server exit. (Bug #12368495, Bug #18315770)
-
For a view defined on a
UNION, the server could create an invalid view definition. (Bug #65388, Bug #14117018, Bug #72018, Bug #18405221) -
Configuring with cmake -DWITHOUT_SERVER to build clients without the server failed for builds outside of the source tree. (Bug #66000, Bug #14367046)
-
With
big_tablesenabled, queries that usedCOUNT(DISTINCT)on a simple join with a constant equality condition on a non-duplicate key returned incorrect results. (Bug #52582, Bug #11760197)References: See also Bug #18853696.
-
Deadlock could occur if three threads simultaneously performed
INSTALL PLUGIN,SHOW VARIABLES, andmysql_change_user(). (Bug #71236, Bug #18008907, Bug #72870, Bug #18903155) -
mysql_config_editor exited when given an empty argument to the
--login-pathoption. (Bug #71837, Bug #18311024, Bug #18830493) -
MySQL did not compile with Bison 3. A workaround is to downgrade to Bison 2. (Bug #71250, Bug #18017820, Bug #18978946)
-
Uninstalling and reinstalling semisynchronous replication plugins while semisynchronous replication was active caused replication failures. The plugins now check whether they can be uninstalled and produce an error if semisynchronous replication is active. To uninstall the master-side plugin, there must be no semisynchronous slaves. To uninstall the slave-side plugin, there must be no semisynchronous I/O threads running. (Bug #70391, Bug #17638477)
-
If there was a predicate on a column referenced by
MIN()orMAX()and that predicate was not present in all the disjunctions on key parts earlier in the compound index, Loose Index Scan returned an incorrect result. (Bug #71097, Bug #17909656) -
Client auto-reconnect did not work for clients linked against
libmysqlclient, even withMYSQL_OPT_RECONNECTenabled. (Bug #70026, Bug #17309863) -
Upgrades using RPM packages could change the ownership of an installation directory. (Bug #71715, Bug #18281535)
-
Proxy users were unable to execute statements if the proxied user password had expired. (Bug #71337, Bug #18057562)
-
A new CMake option,
SUNPRO_CXX_LIBRARY, enables linking againstlibCstdinstead ofstlport4on Solaris 10 or later. This works only for client code because the server depends on C++98. Example usage:cmake -DWITHOUT_SERVER=1 -DSUNPRO_CXX_LIBRARY=Cstd
(Bug #72352, Bug #18605389)
-
File permissions and line endings of several test and configuration files were made more consistent to avoid warnings from package checkers. (Bug #68521, Bug #16415173, Bug #16395459, Bug #68517, Bug #16415032, Bug #71112, Bug #17919313, Bug #71113, Bug #17919422)
--------------------------------------分割线 --------------------------------------
Ubuntu 14.04下安装MySQL http://www.linuxidc.com/Linux/2014-05/102366.htm
《MySQL权威指南(原书第2版)》清晰中文扫描版 PDF http://www.linuxidc.com/Linux/2014-03/98821.htm
Ubuntu 14.04 LTS 安装 LNMP Nginx\PHP5 (PHP-FPM)\MySQL http://www.linuxidc.com/Linux/2014-05/102351.htm
Ubuntu 14.04下搭建MySQL主从服务器 http://www.linuxidc.com/Linux/2014-05/101599.htm
Ubuntu 12.04 LTS 构建高可用分布式 MySQL 集群 http://www.linuxidc.com/Linux/2013-11/93019.htm
Ubuntu 12.04下源代码安装MySQL5.6以及Python-MySQLdb http://www.linuxidc.com/Linux/2013-08/89270.htm
MySQL-5.5.38通用二进制安装 http://www.linuxidc.com/Linux/2014-07/104509.htm
--------------------------------------分割线 --------------------------------------
本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-08/104957.htm
