Table of Contents
- D.1. Changes in release 5.0.x (Production)
-
- D.1.1. Changes in release 5.0.25 (Not yet released)
- D.1.2. Changes in release 5.0.24 (Not yet released)
- D.1.3. Changes in release 5.0.23 (Not released)
- D.1.4. Changes in release 5.0.22 (24 May 2006)
- D.1.5. Changes in release 5.0.21 (02 May 2006)
- D.1.6. Changes in release 5.0.20a (18 April 2006)
- D.1.7. Changes in release 5.0.20 (31 March 2006)
- D.1.8. Changes in release 5.0.19 (04 March 2006)
- D.1.9. Changes in release 5.0.18 (21 December 2005)
- D.1.10. Changes in release 5.0.17 (14 December 2005)
- D.1.11. Changes in release 5.0.16 (10 November 2005)
- D.1.12. Changes in release 5.0.15 (19 October 2005: Production)
- D.1.13. Changes in release 5.0.14 (Not released)
- D.1.14. Changes in release 5.0.13 (22 September 2005: Release Candidate)
- D.1.15. Changes in release 5.0.12 (02 September 2005)
- D.1.16. Changes in release 5.0.11 (06 August 2005)
- D.1.17. Changes in release 5.0.10 (27 July 2005)
- D.1.18. Changes in release 5.0.9 (15 July 2005)
- D.1.19. Changes in release 5.0.8 (Not released)
- D.1.20. Changes in release 5.0.7 (10 June 2005)
- D.1.21. Changes in release 5.0.6 (26 May 2005)
- D.1.22. Changes in release 5.0.5 (Not released)
- D.1.23. Changes in release 5.0.4 (16 April 2005)
- D.1.24. Changes in release 5.0.3 (23 March 2005: Beta)
- D.1.25. Changes in release 5.0.2 (01 December 2004)
- D.1.26. Changes in release 5.0.1 (27 July 2004)
- D.1.27. Changes in release 5.0.0 (22 December 2003: Alpha)
- D.2. Changes in MySQL Cluster
-
- D.2.1. Changes in MySQL Cluster-5.0.7 (10 June 2005)
- D.2.2. Changes in MySQL Cluster-5.0.6 (26 May 2005)
- D.2.3. Changes in MySQL Cluster-5.0.5 (Not released)
- D.2.4. Changes in MySQL Cluster-5.0.4 (16 April 2005)
- D.2.5. Changes in MySQL Cluster-5.0.3 (23 March 2005: Beta)
- D.2.6. Changes in MySQL Cluster-5.0.1 (27 July 2004)
- D.2.7. Changes in MySQL Cluster-4.1.13 (15 July 2005)
- D.2.8. Changes in MySQL Cluster-4.1.12 (13 May 2005)
- D.2.9. Changes in MySQL Cluster-4.1.11 (01 April 2005)
- D.2.10. Changes in MySQL Cluster-4.1.10 (12 February 2005)
- D.2.11. Changes in MySQL Cluster-4.1.9 (13 January 2005)
- D.2.12. Changes in MySQL Cluster-4.1.8 (14 December 2004)
- D.2.13. Changes in MySQL Cluster-4.1.7 (23 October 2004)
- D.2.14. Changes in MySQL Cluster-4.1.6 (10 October 2004)
- D.2.15. Changes in MySQL Cluster-4.1.5 (16 September 2004)
- D.2.16. Changes in MySQL Cluster-4.1.4 (31 August 2004)
- D.2.17. Changes in MySQL Cluster-4.1.3 (28 June 2004)
- D.3. MySQL Connector/ODBC (MyODBC) Change History
- D.4. MySQL Connector/NET Change History
-
- D.4.1. Version 1.0.8
- D.4.2. Version 1.0.7
- D.4.3. Version 1.0.6
- D.4.4. Version 1.0.5
- D.4.5. Version 1.0.4 1-20-05
- D.4.6. Version 1.0.3-gamma 12-10-04
- D.4.7. Version 1.0.2-gamma 04-11-15
- D.4.8. Version 1.0.1-beta2 04-10-27
- D.4.9. Version 1.0.0 04-09-01
- D.4.10. Version 0.9.0 04-08-30
- D.4.11. Version 0.76
- D.4.12. Version 0.75
- D.4.13. Version 0.74
- D.4.14. Version 0.71
- D.4.15. Version 0.70
- D.4.16. Version 0.68
- D.4.17. Version 0.65
- D.4.18. Version 0.60
- D.4.19. Version 0.50
- D.5. MySQL Connector/J Change History
-
- D.5.1. Changes in MySQL Connector/J 5.0.2-beta (11 July 2006)
- D.5.2. Changes in MySQL Connector/J 5.0.1-beta (Not Released)
- D.5.3. Changes in MySQL Connector/J 5.0.0-beta (22 December 2005)
- D.5.4. Changes in MySQL Connector/J 3.1.14 (not yet released)
- D.5.5. Changes in MySQL Connector/J 3.1.13 (26 May 2006)
- D.5.6. Changes in MySQL Connector/J 3.1.12 (30 November 2005)
- D.5.7. Changes in MySQL Connector/J 3.1.11-stable (07 October 2005)
- D.5.8. Changes in MySQL Connector/J 3.1.10-stable (23 June 2005)
- D.5.9. Changes in MySQL Connector/J 3.1.9-stable (22 June 2005)
- D.5.10. Changes in MySQL Connector/J 3.1.8-stable (14 April 2005)
- D.5.11. Changes in MySQL Connector/J 3.1.7-stable (18 February 2005)
- D.5.12. Changes in MySQL Connector/J 3.1.6-stable (23 December 2004)
- D.5.13. Changes in MySQL Connector/J 3.1.5-gamma (02 December 2004)
- D.5.14. Changes in MySQL Connector/J 3.1.4-beta (04 September 2004)
- D.5.15. Changes in MySQL Connector/J 3.1.3-beta (07 July 2004)
- D.5.16. Changes in MySQL Connector/J 3.1.2-alpha (09 June 2004)
- D.5.17. Changes in MySQL Connector/J 3.1.1-alpha (14 February 2004)
- D.5.18. Changes in MySQL Connector/J 3.1.0-alpha (18 February 2003)
- D.5.19. Changes in MySQL Connector/J 3.0.17-ga (23 June 2005)
- D.5.20. Changes in MySQL Connector/J 3.0.16-ga (15 November 2004)
- D.5.21. Changes in MySQL Connector/J 3.0.15-production (04 September 2004)
- D.5.22. Changes in MySQL Connector/J 3.0.14-production (28 May 2004)
- D.5.23. Changes in MySQL Connector/J 3.0.13-production (27 May 2004)
- D.5.24. Changes in MySQL Connector/J 3.0.12-production (18 May 2004)
- D.5.25. Changes in MySQL Connector/J 3.0.11-stable (19 February 2004)
- D.5.26. Changes in MySQL Connector/J 3.0.10-stable (13 January 2004)
- D.5.27. Changes in MySQL Connector/J 3.0.9-stable (07 October 2003)
- D.5.28. Changes in MySQL Connector/J 3.0.8-stable (23 May 2003)
- D.5.29. Changes in MySQL Connector/J 3.0.7-stable (08 April 2003)
- D.5.30. Changes in MySQL Connector/J 3.0.6-stable (18 February 2003)
- D.5.31. Changes in MySQL Connector/J 3.0.5-gamma (22 January 2003)
- D.5.32. Changes in MySQL Connector/J 3.0.4-gamma (06 January 2003)
- D.5.33. Changes in MySQL Connector/J 3.0.3-dev (17 December 2002)
- D.5.34. Changes in MySQL Connector/J 3.0.2-dev (08 November 2002)
- D.5.35. Changes in MySQL Connector/J 3.0.1-dev (21 September 2002)
- D.5.36. Changes in MySQL Connector/J 3.0.0-dev (31 July 2002)
- D.5.37. Changes in MySQL Connector/J 2.0.14 (16 May 2002)
- D.5.38. Changes in MySQL Connector/J 2.0.13 (24 April 2002)
- D.5.39. Changes in MySQL Connector/J 2.0.12 (07 April 2002)
- D.5.40. Changes in MySQL Connector/J 2.0.11 (27 January 2002)
- D.5.41. Changes in MySQL Connector/J 2.0.10 (24 January 2002)
- D.5.42. Changes in MySQL Connector/J 2.0.9 (13 January 2002)
- D.5.43. Changes in MySQL Connector/J 2.0.8 (25 November 2001)
- D.5.44. Changes in MySQL Connector/J 2.0.7 (24 October 2001)
- D.5.45. Changes in MySQL Connector/J 2.0.6 (16 June 2001)
- D.5.46. Changes in MySQL Connector/J 2.0.5 (13 June 2001)
- D.5.47. Changes in MySQL Connector/J 2.0.3 (03 December 2000)
- D.5.48. Changes in MySQL Connector/J 2.0.1 (06 April 2000)
- D.5.49. Changes in MySQL Connector/J 2.0.0pre5 (21 February 2000)
- D.5.50. Changes in MySQL Connector/J 2.0.0pre4 (10 January 2000)
- D.5.51. Changes in MySQL Connector/J 2.0.0pre (17 August 1999)
- D.5.52. Changes in MySQL Connector/J 1.2b (04 July 1999)
- D.5.53. Changes in MySQL Connector/J 1.2a (14 April 1999)
- D.5.54. Changes in MySQL Connector/J 1.1i (24 March 1999)
- D.5.55. Changes in MySQL Connector/J 1.1h (08 March 1999)
- D.5.56. Changes in MySQL Connector/J 1.1g (19 February 1999)
- D.5.57. Changes in MySQL Connector/J 1.1f (31 December 1998)
- D.5.58. Changes in MySQL Connector/J 1.1b (03 November 1998)
- D.5.59. Changes in MySQL Connector/J 1.1 (02 September 1998)
- D.5.60. Changes in MySQL Connector/J 1.0 (24 August 1998)
- D.5.61. Changes in MySQL Connector/J 0.9d (04 August 1998)
- D.5.62. Changes in MySQL Connector/J 0.9 (28 July 1998)
- D.5.63. Changes in MySQL Connector/J 0.8 (06 July 1998)
- D.5.64. Changes in MySQL Connector/J 0.7 (01 July 1998)
- D.5.65. Changes in MySQL Connector/J 0.6 (21 May 1998)
This appendix lists the changes from version to version in the MySQL source code through the latest version of MySQL 5.0, which is currently MySQL 5.0.25. Starting with MySQL 5.0, we began offering a new version of the Manual for each new series of MySQL releases (5.0, 5.1, and so on). For information about changes in previous release series of the MySQL database software, see the corresponding version of this Manual. For information about legacy versions of the MySQL software through the 4.1 series, see MySQL 3.23, 4.0, 4.1 Reference Manual.
We update this section as we add new features in the 5.0 series, so that everybody can follow the development process.
Note that we tend to update the manual at the same time we make changes to MySQL. If you find a recent version of MySQL listed here that you can't find on our download page (http://dev.mysql.com/downloads/), it means that the version has not yet been released.
The date mentioned with a release version is the date of the last BitKeeper ChangeSet on which the release was based, not the date when the packages were made available. The binaries are usually made available a few days after the date of the tagged ChangeSet, because building and testing all packages takes some time.
The manual included in the source and binary distributions may not be fully accurate when it comes to the release changelog entries, because the integration of the manual happens at build time. For the most up-to-date release changelog, please refer to the online version instead.
The following changelog shows what has been done in the 5.0 tree:
-
Basic support for read-only server side cursors. For information about using cursors within stored routines, see Section 17.2.9, “Cursors”. For information about using cursors from within the C API, see Section 22.2.7.3, “
mysql_stmt_attr_set()”. -
Basic support for (updatable) views. See, for example, Section 19.2, “
CREATE VIEWSyntax”. -
Basic support for stored procedures and functions (SQL:2003 style). See Chapter 17, Stored Procedures and Functions.
-
Initial support for rudimentary triggers.
-
Added
SELECT INTOlist_of_vars, which can be of mixed (that is, global and local) types. See Section 17.2.7.3, “SELECT ... INTOStatement”. -
Removed the update log. It is fully replaced by the binary log. If the MySQL server is started with
--log-update, it is translated to--log-bin(or ignored if the server is explicitly started with--log-bin), and a warning message is written to the error log. SettingSQL_LOG_UPDATEsilently setsSQL_LOG_BINinstead (or do nothing if the server is explicitly started with--log-bin). -
Support for the
ISAMstorage engine has been removed. If you haveISAMtables, you should convert them before upgrading. See Section 2.11.2, “Upgrading from MySQL 4.1 to 5.0”. -
Support for
RAIDoptions inMyISAMtables has been removed. If you have tables that use these options, you should convert them before upgrading. See Section 2.11.2, “Upgrading from MySQL 4.1 to 5.0”. -
User variable names are now case insensitive: If you do
SET @a=10;thenSELECT @A;now returns10. Case sensitivity of a variable's value depends on the collation of the value. -
Strict mode, which in essence means that you get an error instead of a warning when inserting an incorrect value into a column. See Section 5.2.5, “The Server SQL Mode”.
-
VARCHARandVARBINARYcolumns remember end space. AVARCHAR()orVARBINARYcolumn can contain up to 65,535 characters or bytes, respectively. -
MEMORY(HEAP) tables can haveVARCHAR()columns. -
When using a constant string or a function that generates a string result in
CREATE ... SELECT, MySQL creates the result field based on the maximum length of the string or expression:Maximum Length Data type = 0 CHAR(0)< 512 VARCHAR(max_length)>= 512 TEXT
For a full list of changes, please refer to the changelog sections for each individual 5.0.x release.
This is a bugfix release for the current production release family.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Network (a commercial MySQL offering). For more details please see http://www.mysql.com/network/advisors.html.
Functionality added or changed:
-
Table comments longer than 60 characters and column comments longer than 255 characters were truncated silently. Now a warning is issued, or an error in strict mode. (Bug #13934)
-
The bundled yaSSL library was upgraded to version 1.3.7.
-
The server now issues a warning if it removes leading spaces from an alias. (Bug #10977)
Bugs fixed:
-
NDB Cluster:REPLACEstatements did not work correctly on anNDBtable having both a primary key and a unique key. In such cases, proper values were not set for columns which were not explicitly referenced in the statement. (Bug #20728) -
NDB Cluster: Trying to create or drop a table while a node was restarting caused the node to crash. This is now handled by raising an error. (Bug #18781) -
NDB Cluster: Running ndbd--nowait-nodes=idwhereidwas the node ID of a node that was already running would fail with an invalid error message. (Bug #20419) -
NDB Cluster: Incorrect values were inserted intoAUTO_INCREMENTcolumns of tables restored from a cluster backup. (Bug #20820) -
NDB Cluster: When attempting to restart the cluster following a data import, the cluster would fail during Phase 4 of the restart with Error 2334: Job buffer congestion. (Bug #20774) -
NDB Cluster: A node failure during a scan could sometime cause the node to crash when restarting too quickly following the failure. (Bug #20197) -
NDB Cluster: It was possible to use port numbers greater than 65535 forServerPortin theconfig.inifile. (Bug #19164) -
NDB Cluster: Under certain circumstances, a node that was shut down then restarted could hang during the restart. (Bug #18863) -
NDB Cluster(Replication): In some cases, a large number of MySQL servers sending requests to the cluster simultaneously could cause the cluster to crash. This could also be triggered by many NDB API clients making simultaneous event subscriptions or unsubscriptions. (Bug #20683) -
NDB Cluster(NDB API):NdbScanOperation::readTuples()andNdbIndexScanOperation::readTuples()ignored thebatchparameter. (Bug #20252) -
The use of
WHEREcol_nameIS NULL inSELECTstatements reset the value ofLAST_INSERT_ID()to zero. (Bug #14553) -
The server crashed when using the range access method to execut a subquery with a
ORDER BY DESCclause. (Bug #20869) -
Use of the join cache in favor of an index for
ORDER BYoperations could cause incorrect result sorting. (Bug #17212) -
A user-defined function that is called on each row of a returned result set, could receive an
in_nullstate that is set, if it was set previously. Now, theis_nullstate is reset to false before each invocation of a UDF. (Bug #19904) -
Referring to a stored function qualified with the name of one database and tables in another database caused a “table doesn't exist” error. (Bug #18444)
-
For
NDBand possiblyInnoDBtables, aBEFORE UPDATEtrigger could insert incorrect values. (Bug #18437) -
Triggers on tables in the
mysqldatabase caused a server crash. Triggers for tables in this database now are disallowed. (Bug #18361) -
The length of the pattern string prefix for
LIKEoperations was calculated incorrectly for multi-byte character sets. As a result, the the scanned range was wider than necessary if the prefix contained any multi-byte characters, and rows could be missing from the result set. (Bug #16674, Bug #18359) -
For very complex
SELECTstatements could create temporary tables that were too big, but for which the temporary files did not get removed, causing subsequent queries to fail. (Bug #11824) -
For spatial data types, the server formerly returned these as
VARSTRINGvalues with a binary collation. Now the server returns spatial values asBLOBvalues. (Bug #10166) -
Using
SELECTand a table join while running a concurrentINSERToperation would join incorrect rows. (Bug #14400) -
Using
SELECTon a corrupt table using the dynamic record format could cause a server crash. (Bug #19835) -
Using tables from MySQL 4.x in MySQL 5.x, in particular those with
VARCHARfields and usingINSERT DELAYEDto update data in the table would result in either data corruption or a server crash. (Bug #16611, Bug #16218, Bug #17294) -
Checking a spatial table (using
CHECK TABLE) with an index and only one row would indicate a table corruption. (Bug #17877) -
SHOW GRANTS FOR CURRENT_USERdid not return definer grants when executed inDEFINERcontext (such as within a stored prodedure defined withSQL SECURITY DEFINER), it returned the invoker grants. (Bug #15298) -
For
SELECT ... FOR UPDATEstatements that usedDISTINCTorGROUP BYover all key parts of a unique index (or primary key), the optimizer unnecessarily created a temporary table, thus losing the linkage to the underlying unique index values. This caused aResult set not updatableerror. (The temporary table is unnecessary because under these circumstances the distinct or grouped columns must also be unique.) (Bug #16458) -
The first time a user who had been granted the
CREATE ROUTINEprivilege used that privilege to create a stored function or procedure, thePasswordcolumn in that user's row in themysql.usertable was set toNULL. (Bug #19857) -
Creation of a view as a join of views or tables could fail if the views or tables are in different databases. (Bug #20482)
-
Use of
MIN()orMAX()withGROUP BYon aucs2column could cause a server crash. (Bug #20076) -
INSERT INTO ... SELECT ... LIMIT 1could be slow because theLIMITwas ignored when selecting candidate rows. (Bug #9676) -
Certain queries having a
WHEREclause that included conditions on multi-part keys with more than 2 key parts could produce incorrect results and send [Note] Use_count: Wrong count for key at... messages toSTDERR. (Bug #16168) -
The
mysql_list_fields()C API function returned the incorrect table name for views. (Bug #19671) -
A cast problem caused incorrect results for prepared statements that returned float values when MySQL was compiled with gcc 4.0. (Bug #19694)
This is a bugfix release for the current production release family.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Network (a commercial MySQL offering). For more details please see http://www.mysql.com/network/advisors.html.
Bugs fixed:
-
MySQL 5.0.23 contained a fix for Bug #10952 that has been reverted in 5.0.24 because it introduced the risk of unintended data loss.
-
The
FEDERATEDstorage engine did not allow creation ofUNIQUEindexes on nullable columns. (Bug #15133) -
A
SELECTthat used a subquery in theFROMclause that did not select from a table failed when the subquery was used in a join. (Bug #21002) -
REPLACE ... SELECTfor a view required theINSERTprivilege for tables other than the table being modified. (Bug #21135) -
Failure to account for a
NULLtable pointer on big-endian machines could cause a server crash during type conversion. (Bug #21135) -
mysqldump sometimes did not select the correct database before trying to dump views from it, resulting in an empty result set that caused mysqldump to die with a segmentation fault. (Bug #21014)
MySQL 5.0.23 was never officially released.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Network (a commercial MySQL offering). For more details please see http://www.mysql.com/network/advisors.html.
Functionality added or changed:
-
NDB Cluster: The limit of 2048 ordered indexes per cluster has been lifted. There is now no upper limit on the number of ordered indexes (includingAUTO_INCREMENTcolumns) that may be used. (Bug #14509) -
NDB Cluster: The status variablesNdb_connected_hostandNdb_connected_portwere renamed toNdb_config_from_hostandNdb_config_from_port, respectively. -
The mysql_upgrade command has been converted from a shell script to a C program, so it is available on non-Unix systems such as Windows. This program should be run for each MySQL upgrade. See Section 5.6.2, “mysql_upgrade — Check Tables for MySQL Upgrade”.
-
Binary distributions that include SSL support now are built using yaSSL when possible.
-
Added the
--ssl-verify-server-certoption to MySQL client programs. This option causes the server's Common Name value in its certificate to be verified against the hostname used when connecting to the server, and the connection is rejected if there is a mismatch. AddedMYSQL_OPT_SSL_VERIFY_SERVER_CERToption for themysql_options()C API function to enable this verification. This feature can be used to prevent man-in-the-middle attacks. Verification is disabled by default. (Bug #17208) -
Added the
ssl_ca,ssl_capath,ssl_cert,ssl_cipher, andssl_keysystem variables, which display the values given via the corresponding command options. See Section 5.9.7.3, “SSL Command Options”. (Bug#19606) -
Added the
log_queries_not_using_indexessystem variable. (Bug#19616) -
Added the
--angel-pid-fileoption to mysqlmanager for specifying the file in which the angel process records its process ID when mysqlmanager runs in daemon mode. (Bug #14106) -
The
ONLY_FULL_GROUP_BYSQL mode now also applies to theHAVINGclause. That is, columns not named in theGROUP BYclause cannot be used in theHAVINGclause if not used in an aggregate function. (Bug #18739) -
SQL syntax for prepared statements now supports
ANALYZE TABLE,OPTIMIZE TABLE, andREPAIR TABLE. (Bug #19308) -
The bundled yaSSL library was upgraded to version 1.3.5. This improves handling of certain problems with SSL-related command options. (Bug #17737)
-
Added the
--set-charsetoption to mysqlbinlog to allow the character set to be specified for processing binary log files. (Bug #18351) -
For a table with an
AUTO_INCREMENTcolumn,SHOW CREATE TABLEnow shows the nextAUTO_INCREMENTvalue to be generated. (Bug #19025) -
It is now possible to use
NEW.var_namevalues within triggers asINOUTparameters to stored procedures. (Bug #14635) -
The mysqldumpslow script has been moved from client RPM packages to server RPM packages. This corrects a problem where mysqldumpslow could not be used with a client-only RPM install, because it depends on my_print_defaults which is in the server RPM. (Bug #20216)
Bugs fixed:
-
mysqldump would not dump views that had become invalid because a table named in the view definition had been dropped. Instead, it quit with an error message. Now you can specify the
--forceoption to cause mysqldump to keep going and write a SQL comment containing the view definition to the dump output. (Bug #17371) -
The
WITH CHECK OPTIONwas not enforced when aREPLACEstatement was executed against a view. (Bug #19789) -
The use of
MIN()andMAX()on columns with a partial index produced incorrect results in some queries. (Bug #18206) -
Concatenating the results of multiple constant subselects produced incorrect results. (Bug #16716)
-
A “table not found” error could occur for statements that called a function defined in another database. (Bug #17199)
-
A buffer overwrite error in Instance Manager caused a crash. (Bug #20622)
-
Re-execution of a prepared multiple-table
DELETEstatement that involves a trigger or stored function can result in a server crash. (Bug #19634) -
On Windows, corrected a crash stemming from differences in Visual C runtime library routines from POSIX behavior regarding invalid file descriptors. (Bug #18275)
-
Multiple-table updates with
FEDERATEDtables could cause a server crash. (Bug #19773) -
On Windows, terminating mysqld with Control-C could result in a crash during shutdown. (Bug #18235)
-
On Windows, removal of binary log files would fail if the files were already open. (Bug #19208)
-
mysqldump produced garbled output for view definitions. (Bug #18462)
-
The omission of leading zeros in dates could lead to erroneous results when these were compared with the output of certain date and time functions. (Bug #16377)
-
An invalid comparison between keys in partial indexes over multi-byte character fields could lead to incorrect result sets if the selected query execution plan used a range scan by a partial index over a
UTF8character field. This also caused incorrect results under similar circumstances with many other character sets. (Bug #14896) -
NDB Cluster: Cluster system status variables were not updated. (Bug #11459) -
NDB Cluster: The cluster's data nodes would fail while trying to load data whenNoOfFrangmentLogFileswas equal to 1. (Bug #19894) -
NDB Cluster: A problem with error handling whenndb_use_exact_countwas enabled could lead to incorrect values returned from queries usingCOUNT(). A warning is now returned in such cases. (Bug #19202) -
NDB Cluster: Restoring a backup made using ndb_restore failed when the backup had been taken from a cluster whose data memory was full. (Bug #19852) -
NDB Cluster:TEXTcolumns in Cluster tables having both an explicit primary key and a unique key were not correctly updated byREPLACEstatements. (Bug #19906) -
NDB Cluster: An internal formatting error caused some management client error messages to be unreadable. (Bug #20016) -
NDB Cluster: Running management client commands while mgmd was in the process of disconnecting could cause the management server to fail. (Bug #19932) -
NDB Cluster(NDBAPI): Update operations on blobs were not checked for illegal operations.Note: Read locks with blob update operations are now upgraded from read committed to read shared.
-
NDB Cluster: The management clientALL STOPcommand shut down mgmd processes (as well as ndbd processes). (Bug #18966) -
NDB Cluster:LOAD DATA LOCALfailed to ignore duplicate keys in Cluster tables. (Bug #19496) -
NDB Cluster: RepeatedCREATE-INSERT-DROPoperations tables could in some circumstances cause the MySQL table definition cache to become corrupt, so that some mysqld processes could access table information but others could not. (Bug #18595) -
NDB Cluster: The mgm client commandALL CLUSTERLOG STATISTICS=15;had no effect. (Bug #20336) -
NDB Cluster:TRUNCATE TABLEfailed to reset theAUTO_INCREMENTcounter. (Bug #18864) -
NDB Cluster:SELECT ... FOR UPDATEfailed to lock the selected rows. (Bug #18184) -
NDB Cluster: The failure of a data node when preparing to commit a transaction (that is, while the node's status wasCS_PREPARE_TO_COMMIT) could cause the failure of other cluster data nodes. (Bug #20185) -
NDB Cluster: Renaming a table in such a way as to move it to to a different database failed to move the table's indexes. (Bug #19967) -
NDB Cluster: Resources for unique indexes on Cluster table columns were incorrectly allocated, so that only one-fourth as many unique indexes as indicated by the value ofUniqueHashIndexescould be created. (Bug #19623) -
NDB Cluster: RunningALL STARTin theNDBmanagement client or restarting multiple nodes simultaneously could under some circumstances cause the cluster to crash. (Bug #19930) -
NDB Cluster:SELECTstatements with aBLOBorTEXTcolumn in the selected column list and aWHEREcondition including a primary key lookup on aVARCHARprimary key produced empty result sets. Note: This issue affected the 5.0 series of MySQL Cluster releases only. (Bug #19956) -
NDB Cluster(NDBAPI): On big-endian platforms,NdbOperation::write_attr()did not update 32-bit fields correctly. (Bug #19537) -
NDB Cluster: Some queries having aWHEREclause of the formc1=val1 OR c2 LIKE 'val2'were not evaluated correctly. (Bug # 17421) -
NDB Cluster: Using “stale” mysqld.FRMfiles could cause a newly-restored cluster to fail. This situation could arise when restarting a MySQL Cluster using the--intialoption while leaving connected mysqld processes running. (Bug #16875) -
NDB Cluster: Repeated use of theSHOWandALL STATUScommands in the ndb_mgm client could cause the mgmd process to crash. (Bug #18591) -
NDB Cluster: An issue with ndb_mgmd prevented more than 27mysqldprocesses from connecting to a single cluster at one time. (Bug #17150) -
NDB Cluster: Data node failures could cause excessive CPU usage by ndb_mgmd. (Bug #13987) -
NDB Cluster:TRUNCATEfailed on tables havingBLOBorTEXTcolumns with the error Lock wait timeout exceeded. (Bug #19201) -
NDB Cluster: Stopping multiple nodes could cause node failure handling not to be completed. (Bug #19039) -
NDB Cluster: ndbd could sometimes fail to start with the error Node failure handling not completed following a graceful restart. (Bug #18550) -
NDB Cluster: Backups could fail for large clusters with many tables, where the number of tables approachedMaxNoOfTables. (Bug #17607) -
On Windows, temporary tables containing ‘
:’ in the name could not be created. (Bug #20616) -
The
--core-file-sizeoption for mysqld_safe was effective only forroot. (Bug #17353) -
Some queries that used
ORDER BYandLIMITperformed quickly in MySQL 3.23, but slowly in MySQL 4.x/5.x due to an optimizer problem. (Bug #4981) -
mysql_upgrade was missing from binary MySQL distributions. (Bug #18516, Bug #20403)
-
Queries using an indexed column as the argument for the
MIN()andMAX()functions following anALTER TABLE .. DISABLE KEYSstatement returned Got error 124 from storage engine untilALTER TABLE ... ENABLE KEYSwas run on the table. (Bug #20357) -
A number of dependency issues in the RPM
benchandtestpackages caused installation of these packages to fail. (Bug #20078) -
Nested natural joins worked executed correctly when executed as a non-prepared statement could fail with an
Unknown column 'col_name' in 'field list' error when executed as a prepared statement, due to a name resolution problem. (Bug #15355) -
GROUP BYon an expression that contained a cast toDECIMALproduced an incorrect result. (Bug #19667) -
The
max_lengthmetadata value for columns created fromCONCAT()could be incorrect when the collation of an argument differed from the collation of theCONCAT()itself. In some contexts such asUNION, this could lead to truncation of the column contents. (Bug #15962) -
The MD5() and SHA() functions treat their arguments as case-sensitive strings. But when they are compared, their arguments were compared as case-insensitive strings, which leads to two function calls with different arguments (and thus different results) compared as being identical. This can lead to a wrong decision made in the range optimizer and thus to an incorrect result set. (Bug #15351)
-
For
BOOLEANmode full-text searches on non-indexed columns,NULLrows generated by aLEFT JOINcaused incorrect query results. (Bug #14708) -
BITcolumns in a table could cause joins that use the table to fail. (Bug #18895) -
A
UNIONover more than 128SELECTstatements that use an aggregate function failed. (Bug #18175) -
InnoDBunlocked its data directory before committing a transaction, potentially resulting in non-recoverable tables if a server crash occurred before the commit. (Bug #19727) -
Multiple-table
DELETEstatements containing a subquery that selected from one of the tables being modified caused a server crash. (Bug #19225) -
With settings of
read_buffer_size>= 2G andread_rnd_buffer_size>=2G,LOAD DATA INFILEfailed with no error message or caused a server crash for files larger than 2GB. (Bug #12982) -
REPLACEstatements caused activation ofUPDATEtriggers, notDELETEandINSERTtriggers. (Bug #13479) -
The thread for
INSERT DELAYEDrows was maintaining a separateAUTO_INCREMENTcounter, resulting in incorrect values being assigned ifDELAYEDand non-DELAYEDinserts were mixed. (Bug #20195) -
mysqldump wrote an extra pair of
DROP DATABASEandCREATE DATABASEstatements if run with the--add-drop-databaseoption and the database contained views. (Bug #17201) -
On 64-bit Windows systems,
REGEXPfor regular expressions with exactly 31 characters did not work. (Bug #19407) -
For mysqld, Valgrind revealed problems that were corrected: A dangling stack pointer being overwritten (Bug #20769); possible uninitialized data in a string comparison (Bug #20783); memory corruption in replication slaves when switching databases (Bug #19022); syscall write parameter pointing to uninitialized byte (Bug #20579).
-
For ndb_mgmd, Valgrind revealed problems that were corrected: A memory leak (Bug #19318); a dependency on an uninitialized variable (Bug #20333).
-
An update that used a join of a table to itself and modified the table on both sides of the join reported the table as crashed. (Bug #18036)
-
SSL connections using yaSSL on OpenBSD could fail. (Bug #19191)
-
On Windows, multiple clients simultaneously attempting to perform
ALTER TABLEoperations on anInnoDBtable could deadlock. (Bug #17264) -
The
fill_help_tables.sqlfile did not load properly if theANSI_QUOTESSQL mode was enabled. (Bug #20542) -
The
fill_help_tables.sqlfile did not contain aSET NAMES 'utf8'statement to indicate its encoding. This caused problems for some settings of the MySQL character set such asbig5. (Bug #20551) -
The MySQL server startup script /etc/init.d/mysql (created from mysql.server) is now marked to ensure that the system services ypbind, nscd, ldap, and NTP are started first (if these are configured on the machine). (Bug #18810)
-
MERGEtables did not work reliably withBITcolumns. (Bug #19648) -
For a reference to a non-existent index in
FORCE INDEX, the error message referred to a column, not an index. (Bug #17873) -
Some yaSSL public function names conflicted with those from OpenSSL, causing conflicts for applications that linked against both OpenSSL and a version of
libmysqlclientthat was built with yaSSL support. The yaSSL public functions now are renamed to avoid this conflict. (Bug #19575) -
CHECK TABLEtemporarily cleared theAUTO_INCREMENTvalue. Because it runs with a read lock, other readers could perform concurrent inserts, and if so, they could get an incorrectAUTO_INCREMENTvalue.CHECK TABLEno longer modifies theAUTO_INCREMENTvalue. (Bug #19604) -
If there is a global read lock,
CREATE DATABASE,RENAME DATABASE, andDROP DATABASEcould deadlock. (Bug #19815) -
On Linux,
libmysqlclientwhen compiled with yaSSL using the icc compiler had a spurious dependency on C++ libraries. (Bug #20119) -
Using
CONCAT(@user_var,col_name), wherecol_nameis a column in anINFORMATION_SCHEMAtable, could cause erroneous duplication of data in the query result. (Bug #19599) -
Results from
INFORMATION_SCHEMA.SCHEMATAcould contain uppercase information whenlower_case_table_nameswas not 0. (Bug #17661) -
Grant table modifications sometimes did not refresh the in-memory tables if the hostname was
''or not specified. (Bug #16297) -
Invalid escape sequences in option files caused MySQL programs that read them to abort. (Bug #15328)
-
InnoDB did not increment the
handler_read_prevcounter. (Bug #19542) -
Race conditions on certain platforms could cause the Instance Manager to fail to initialize. (Bug #19391)
-
ALTER TABLEon a table created prior to 5.0.3 would cause table corruption if theALTER TABLEdid one of the following:-
Change the default value of a column.
-
Change the table comment.
-
Change the table password.
(Bug #17001)
-
-
An
ALTER TABLEoperation that does not need to copy data, when executed on a table created prior to MySQL 4.0.25, could result in a server crash for subsequent accesses to the table. (Bug #19192) -
The binary log lacked character set information for table name when dropping temporary tables. (Bug #14157)
-
A
B-TREEindex on aMEMORYtable erroneously reported duplicate entry error for multipleNULLvalues. (Bug #12873) -
Race conditions on certain platforms could cause the Instance Manager to try to restart the same instance multiple times. (Bug #18023)
-
A
CREATE TABLEstatement that created a table from a materialized view did not inherit default values from the underlying table. (Bug #19089) -
The
COM_STATISTICScommand was changed in 5.0.3 to display session status variable values rather than global values. This causes mysqladmin status information not to be useful for theSlow queriesandOpensvalues. NowCOM_STATISTICSdisplays the global values forSlow queriesandOpens. (Bug #18669) -
INFORMATION_SCHEMA.TABLESprovided inconsistent info about invalid views. This could cause server crashes or result in incorrect data being returned for queries that attempt to obtain information fromINFORMATION_SCHEMAtables about views using stored functions. (Bug #18282) -
Multiple calls to a stored procedure that selects from
INFORMATION_SCHEMAcould cause a server crash. (Bug #17204) -
Premature optimization of nested subqueries in the
FROMclause that refer to aggregate functions could lead to incorrect results. (Bug #19077) -
A view definition that referred to an alias in the
HAVINGclause could be saved in the.frmfile with the alias replaced by the expression that it referred to, causing failure of subsequentSELECT * FROMview_namestatements. (Bug #19573) -
Several aspects of view privileges were being checked incorrectly. (Bug #18681, Bug #20363)
-
A view with a non-existent account in the
DEFINERclause causedSHOW CREATE VIEWto fail. NowSHOW CREATE VIEWissues a warning instead. (Bug #20048) -
A bug in NTPL threads on Linux could result in a deadlock with
FLUSH TABLES WITH READ LOCKunder some conditions. (Bug #20048) -
MyISAMtable deadlock was possible if one thread issued aLOCK TABLESrequest for write locks and then an administrative statement such asOPTIMIZE TABLE, if between the two statements another client meanwhile issued a multiple-tableSELECTfor some of the locked tables. (Bug #16986) -
Subqueries that produced a
BIGINT UNSIGNEDvalue were being treated as returning a signed value. (Bug #19700) -
The patch for Bug #17164 introduced the problem that some outer joins were incorrectly converted to inner joins. (Bug #19816)
-
BLOBorTEXTarguments to or values returned from stored functions were not copied properly if too long and could become garbled. (Bug #18587) -
Selecting data from a
MEMORYtable with aVARCHARcolumn and aHASHindex over it returned only the first row matched. (Bug #18233) -
CREATE TABLE ... SELECTdid not always produce the proper column default value inTRADITIONALSQL mode. (Bug #17626) -
Privilege checking on the contents of the
INFORMATION_SCHEMA.VIEWStable was insufficiently restrictive. (Bug #16681) -
The result from
CONV()is a string, but was not always treated the same way as a string when converted to a real value for an arithmetic operation. (Bug #13975) -
CREATE TABLE ... SELECT ...statements that used a stored function explicitly or implicitly (through a view) resulted in aTable not lockederror. (Bug #12472, Bug #15137) -
Within a trigger,
SETused the SQL mode of the invoking statement, not the mode in effect at trigger creation time. (Bug #6951) -
The server no longer uses a signal handler for signal 0 because it could cause a crash on some platforms. (Bug #15869)
-
Revised memory allocation for local objects within stored functions and triggers to avoid memory leak for repeated function or trigger invocation. (Bug #17260)
-
EXPLAIN ... SELECT INTOcaused the client to hang. (Bug #15463) -
Symlinking
.mysql_historyto/dev/nullto suppress statement history saving by mysql did not work. (mysql deleted the symlink and recreated.mysql_historyas a regular file, and then wrote history to it.) (Bug #16803) -
The
basedirandtmpdirsystem variables could not be accessed via@@var_namesyntax. (Bug #1039) -
For certain
CREATE VIEWstatements, the server did not detect invalid subqueries within theSELECTpart. (Bug #7549) -
The range operator failed and caused a server crash for clauses of the form
tbl_name.unsigned_keypartNOT IN (negative_const, ...). (Bug #19618) -
Returning the value of a system variable from a stored function caused a server crash. (Bug #18037)
-
Updates to a
MEMORYtable caused the size ofBTREEindexes for the table to increase. (Bug #18160) -
REPAIR TABLEdid not restore the length for packed keys in tables created under MySQL 4.x. (Bug #17810) -
Selecting from a view that used
GROUP BYon a non-constant temporal interval (such asDATE(col) + INTERVAL TIME_TO_SEC(col) SECOND could cause a server crash. (Bug #19490) -
An outer join of two views that was written using
{ OJ ... }syntax could cause a server crash. (Bug #19396) -
LOAD_FILE()returned an error if the file did not exist, rather thanNULLas it should according to the manual. (Bug #10418) -
For certain
CREATE TABLE ... SELECTstatements, the selected values were truncated when inserted into the new table. (Bug #17048) -
Use of uninitialized user variables in a subquery in the
FROMclause results in bad entries in the binary log. (Bug #19136) -
In the
INFORMATION_SCHEMA.COLUMNStable, the values for theCHARACTER_MAXIMUM_LENGTHandCHARACTER_OCTET_LENGTHcolumns were incorrect for multi-byte character sets. (Bug #19236) -
An entry in the
mysql.proctable with an empty routine name caused access to theINFORMATION_SCHEMA.ROUTINEStable to crash the server. (Bug #18177) -
A range access optimizer heuristic was invalid, causing some queries to be much slower in MySQL 5.0 than in 4.0. (Bug #17379, Bug #18940)
-
IS_USED_LOCK()could return an incorrect connection identifier. (Bug #16501) -
mysql displayed
NULLfor strings that are empty or contain only spaces. (Bug #19564) -
Concurrent reading and writing of privilege structures could crash the server. (Bug #16372)
-
A
NULbyte within a comment in a statement string caused the rest of the string not to be written to the query log, allowing logging to be bypassed. (CVE-2006-0903) (Bug #17667) -
mysql-test-run.pl started
NDBeven for test cases that didn't need it. (Bug #19083) -
SELECT DISTINCTqueries sometimes returned only the last row. (Bug #18068) -
Use of
CONVERT_TZ()in a stored function or trigger (or in a stored procedure called from a stored function or trigger) caused an error. (Bug #11081) -
Some queries were slower in 5.0 than in 4.1 because some 4.1 cost-evaluation code had not been merged into 5.0. (Bug #14292)
-
Index prefixes for
utf8VARCHARcolumns did not work forUPDATEstatements. (Bug #19080) -
InnoDBdoes not supportSPATIALindexes, but did not prevent creation of such an index. (Bug #15860) -
The configuration information for building the embedded server on Windows was missing a file. (Bug #18455)
-
The parser leaked memory when its stack needed to be extended. (Bug #18930)
-
When myisamchk needed to rebuild a table,
AUTO_INCREMENTinformation was lost. (Bug #10405) -
LOAD DATA FROM MASTERwould fail when trying to load theINFORMATION_SCHEMAdatabase from the master, because theINFORMATION_SCHEMAsystem database would already exist on the slave. (Bug #18607) -
The binary log would create an incorrect
DROPquery when creating temporary tables during replication. (Bug #17263) -
The
IN-to-EXISTStransformation was making a reference to a parse tree fragment that was left out of the parse tree. This caused problems with prepared statements. (Bug #18492) -
In mysqltest,
--sleep=0had no effect. Now it correctly causessleepcommands in test case files to sleep for 0 seconds. (Bug #18312) -
Attempting to set the default value of an
ENUMorSETcolumn toNULLcaused a server crash. (Bug #19145) -
The
sql_notesandsql_warningssystem variables were not always displayed correctly bySHOW VARIABLES(for example, they were displayed asONafter being set toOFF). (Bug #16195) -
The
sql_big_selectssystem variable was not displayed bySHOW VARIABLES. (Bug #17849) -
The
system_time_zoneandversion_*system variables could not be accessed viaSELECT @@var_namesyntax. (Bug #12792, Bug #15684) -
Flushing the compression buffer (via
FLUSH TABLE) no longer increases the size of an unmodifiedARCHIVEtable. (Bug #19204) -
RPM packages had spurious dependencies on Perl modules and other programs. (Bug #13634)
This is a security fix release for the previous production release family.
This release includes the security fix described later in this section and a few other changes to resolve build problems, relative to the last official MySQL release (5.0.21). If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Network (a commercial MySQL offering). For more details please see http://www.mysql.com/network/advisors.html.
Bugs fixed:
-
Security fix: An SQL-injection security hole has been found in multi-byte encoding processing. The bug was in the server, incorrectly parsing the string escaped with the
mysql_real_escape_string()C API function. (CVE-2006-2753, Bug#8378)This vulnerability was discovered and reported by Josh Berkus
<[email protected]>and Tom Lane<[email protected]>as part of the inter-project security collaboration of the OSDB consortium. For more information about SQL injection, please see the following text.Discussion: An SQL-injection security hole has been found in multi-byte encoding processing. An SQL-injection security hole can include a situation whereby when a user supplied data to be inserted into a database, the user might inject SQL statements into the data that the server will execute. With regards to this vulnerability, when character set unaware-escaping is used (for example,
addslashes()in PHP), it is possible to bypass the escaping in some multi-byte character sets (for example, SJIS, BIG5 and GBK). As a result, a function such asaddslashes()is not able to prevent SQL-injection attacks. It is impossible to fix this on the server side. The best solution is for applications to use character set-aware escaping offered by a function suchmysql_real_escape_string().However, a bug was detected in how the MySQL server parses the output of
mysql_real_escape_string(). As a result, even when the character set-aware functionmysql_real_escape_string()was used, SQL injection was possible. This bug has been fixed.Workarounds: If you are unable to upgrade MySQL to a version that includes the fix for the bug in
mysql_real_escape_string()parsing, but run MySQL 5.0.1 or higher, you can use theNO_BACKSLASH_ESCAPESSQL mode as a workaround. (This mode was introduced in MySQL 5.0.1.)NO_BACKSLASH_ESCAPESenables an SQL standard compatibility mode, where backslash is not considered a special character. The result will be that queries will fail.To set this mode for the current connection, enter the following SQL statement:
SET sql_mode='NO_BACKSLASH_ESCAPES';
You can also set the mode globally for all clients:
SET GLOBAL sql_mode='NO_BACKSLASH_ESCAPES';
This SQL mode also can be enabled automatically when the server starts by using the command-line option
--sql-mode=NO_BACKSLASH_ESCAPESor by settingsql-mode=NO_BACKSLASH_ESCAPESin the server option file (for example,my.cnformy.ini, depending on your system). -
The patch for Bug #8303 broke the fix for Bug #8378 and was undone. (In string literals with an escape character (
\) followed by a multi-byte character that has a second byte of (\), the literal was not interpreted correctly. The next byte now is escaped, not the entire multi-byte character. This means it a strict reverse of themysql_real_escape_string()function.) -
The client libraries had not been compiled for position-indpendent code on Solaris-SPARC and AMD x86_64 platforms. (Bug #13159, Bug #14202, Bug #18091)
-
Running myisampack followed by myisamchk with the
--unpackoption would corrupt theauto_incrementkey. (Bug #12633)
This is a bugfix release for the current production release family.
This MySQL 5.0.21 release includes the patches for recently
reported security vulnerabilites in the MySQL client-server
protocol. We would like to thank Stefano Di Paola
<[email protected]> for finding and reporting
these to us.
This section documents all changes and bug fixes that have been applied since the last official MySQL release. If you would like to receive more fine-grained and personalized update alerts about fixes that are relevant to the version and features you use, please consider subscribing to MySQL Network (a commercial MySQL offering). For more details please see http://www.mysql.com/network/advisors.html.
Functionality added or changed:
-
Security enhancement: Added the global
max_prepared_stmt_countsystem variable to limit the total number of prepared statements in the server. This limits the potential for denial-of-service attacks based on running the server out of memory by preparing huge numbers of statements. The current number of prepared statements is available through theprepared_stmt_countsystem variable. (Bug #16365) -
The
MySQL-shared-compat-5.0.X-.i386.rpm shared compatibility RPMs no longer contain libraries for MySQL 5.1. This avoids a conflict because the 5.0 and 5.1 libraries share the same soname number. It contains libraries for 3.23, 4.0, 4.1, and 5.0. (Bug #19288) -
Creating a table in an InnoDB database with a column name that matched the name of an internal InnoDB column (including
DB_ROW_ID,DB_TRX_ID,DB_ROLL_PTRandDB_MIX_ID) would cause a crash. MySQL now returns error 1005 (cannot create table) witherrnoset to -1. (Bug #18934) -
NDB Cluster: It is now possible to perform a partial start of a cluster. That is, it is now possible to bring up the cluster without running ndbd --initial on all configured data nodes first. (Bug #18606) -
NDB Cluster: A new--nowait-nodesstartup option for ndbd makes it possible to “skip” specific nodes without waiting for them to start when starting the cluster. See Section 15.6.5.2, “Command Options for ndbd”. -
NDB Cluster: It is now possible to install MySQL with Cluster support to a non-default location and change the search path for font description files using either the--basediror--character-sets-diroptions. (Previously in MySQL 5.0, ndbd searched only the default path for character sets.) -
In result set metadata, the
MYSQL_FIELD.lengthvalue forBITcolumns now is reported in number of bits. For example, the value for aBIT(9)column is 9. (Formerly, the value was related to number of bytes.) (Bug #13601) -
The default for the
innodb_thread_concurrencysystem variable was changed to8. (Bug #15868)
Bugs fixed:
-
Security fix: A malicious client, using specially crafted invalid login or
COM_TABLE_DUMPpackets was able to read uninitialized memory, which potentially, though unlikely in MySQL, could have led to an information disclosure. (CVE-2006-1516, CVE-2006-1517) Thanks to Stefano Di Paola<[email protected]>for finding and reporting this bug. -
Security fix: A malicious client, using specially crafted invalid
COM_TABLE_DUMPpackets was able to trigger an exploitable buffer overflow on the server. (CVE-2006-1518) Thanks to Stefano Di Paola<[email protected]>for finding and reporting this bug. -
Security fix: Invalid arguments to
DATE_FORMAT()caused a server crash. (CVE-2006-3469, Bug #20729) Thanks to Jean-David Maillefer for discovering and reporting this problem to the Debian project and to Christian Hammers from the Debian Team for notifying us of it. -
NDB Cluster: A simultaneousDROP TABLEand table update operation utilising a table scan could trigger a node failure. (Bug #18597) -
mysql-test-run could not be run as
root. (Bug #17002) -
MySQL-shared-compat-5.0.13-0.i386.rpm,MySQL-shared-compat-5.0.15-0.i386.rpm,MySQL-shared-compat-5.0.18-0.i386.rpm,MySQL-shared-compat-5.0.19-0.i386.rpm,MySQL-shared-compat-5.0.20-0.i386.rpm, andMySQL-shared-compat-5.0.20a-0.i386.rpmincorrectly depended onglibc2.3 and could not be installed on aglibc2.2 system. (Bug #16539) -
IA-64 RPM packages for Red Hat and SuSE Linux that were built with the icc compiler incorrectly depended on icc runtime libraries. (Bug #16662)
-
After calling
FLUSH STATUS, themax_used_connectionsvariable did not increment for existing connections and connections which use the thread cache. (Bug #15933) -
MySQL would not compile on Linux distributions that use the tinfo library. (Bug #18912)
-
Within a trigger,
CONNECTION_ID()did not return the connection ID of the thread that caused the trigger to be activated. (Bug #16461) -
The yaSSL library returned a cipher list in a manner incompatible with OpenSSL. (Bug #18399)
-
For single-
SELECTunion constructs of the form (SELECT ... ORDER BYorder_list1[LIMITn]) ORDER BYorder_list2, theORDER BYlists were concatenated and theLIMITclause was ignored. (Bug #18767) -
CREATE VIEWstatements would not be replicated to the slave if the--replicate-wild-ignore-tablerule was enabled. (Bug #18715) -
Index corruption could occur in cases when
key_cache_block_sizewas not a multiple ofmyisam_block_size(for example, withkey_cache_block_size=1536andmyisam_block_size=1024). (Bug #19079) -
LAST_INSERT_ID()in a stored function or trigger returned zero. . (Bug #15728) -
Use of
CONVERT_TZ()in a view definition could result in spurious syntax or access errors. (Bug #15153) -
UNCOMPRESS(NULL)could cause subsequentUNCOMPRESS()calls to returnNULLfor legal non-NULLarguments. (Bug #18643) -
Conversion of a number to a
CHAR UNICODEstring returned an invalid result. (Bug #18691) -
DELETEandUPDATEstatements that used largeNOT IN (value_list) clauses could use large amounts of memory. (Bug #15872) -
Prevent recursive views caused by using
RENAME TABLEon a view after creating it. (Bug #14308) -
A
LOCK TABLESstatement that failed could causeMyISAMnot to update table statistics properly, causing a subsequentCHECK TABLEto report table corruption. (Bug #18544) -
For a reference to a non-existent stored function in a stored routine that had a
CONTINUEhandler, the server continued as though a useful result had been returned, possibly resulting in a server crash. (Bug #18787) -
InnoDBdid not use a consistent read forCREATE ... SELECTwheninnodb_locks_unsafe_for_binlogwas set. (Bug #18350) -
InnoDBcould read a delete mark from its system tables incorrectly. (Bug #19217) -
Corrected a syntax error in mysql-test-run.sh. (Bug #19190)
-
A missing
DBUG_RETURN()caused the server to emit a spurious error message:missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "open_table". (Bug #18964) -
DROP DATABASEdid not drop stored routines associated with the database if the database name was longer than 21 characters. (Bug #18344) -
Avoid trying to include
<asm/atomic.h>when it doesn't work in C++ code. (Bug #13621) -
Executing
SELECTon a large table that had been compressed within myisampack could cause a crash. (Bug #17917) -
NDB Cluster: When attempting to create an index on aBITorBLOBcolumn, Error 743: Unsupported character set in table or index was returned instead of Error 906: Unsupported attribute type in index. -
Within stored routines, usernames were parsed incorrectly if they were enclosed within quotes. (Bug #13310)
-
Casting a string to
DECIMALworked, but casting a trimmed string (usingLTRIM()orRTRIM()) resulted in loss of decimal digits. (Bug #17043) -
NDB Cluster: On slow networks or CPUs, the management clientSHOWcommand could sometimes erroneously show all data nodes as being master nodes belonging to nodegroup 0. (Bug #15530) -
If the second or third argument to
BETWEENwas a constant expression such as'2005-09-01 - INTERVAL 6 MONTHand the other two arguments were columns,BETWEENwas evaluated incorrectly. (Bug #18618) -
If the first argument to
BETWEENwas aDATEorTIMEcolumn of a view and the other arguments were constants,BETWEENdid not perform conversion of the constants to the appropriate temporary type, resulting in incorrect evaluation. (Bug #16069) -
Server and clients ignored the
--sysconfdiroption that was passed to configure. (Bug #15069) -
NDB Cluster: In a 2-node cluster with a node failure, restarting the node with a low value forStartPartialTimeoutcould cause the cluster to come up partitioned (“split-brain” issue). (Bug #16447)A similar issue could occur when the cluster was first started with a sufficiently low value for this parameter. (Bug #18612)
-
NDB Cluster: On systems with multiple network interfaces, data nodes would get “stuck” in startup phase 2 if the interface connecting them to the management server was working on node startup while the interface interconnecting the data nodes experienced a temporary outage. (Bug #15695) -
NDB Cluster: Unused open handlers for tables in which the metadata had changed were not properly closed. This could result in stale results from Cluster tables following anALTER TABLE. (Bug #13228) -
NDB Cluster: Uninitialized internal variables could lead to unexpected results. (Bug #11033, Bug #11034) -
For
InnoDBtables, an expression of the formcol_nameBETWEENcol_name2- INTERVALxDAY ANDcol_name2+ INTERVALxDAY when used in a join returned incorrect results. (Bug #14360) -
INSERT DELAYEDinto a view caused an infinite loop. (Bug #13683) -
Lettercase in database name qualifiers was not consistently handled properly in queries when
lower_case_table_nameswas set to 1. (Bug #15917) -
The optimizer could cause a server crash or use a non-optimal subset of indexes when evaluating whether to use
Index Merge/Intersectionvariant ofindex_mergeoptimization. (Bug #19021) -
The presence of multiple equalities in a condition after reading a constant table could cause the optimizer not to use an index. This resulted in certain queries being much slower than in MySQL 4.1. (Bug #16504)
-
A recent change caused the mysql client not to display
NULLvalues correctly and to display numeric columns left-justified rather than right-justified. The problems have been corrected. (Bug #18265) -
mysql_reconnect()sent aSET NAMESstatement to the server, even for pre-4.1 servers that do not understand the statement. (Bug #18830) -
COUNT(*)on aMyISAMtable could return different results for the base table and a view on the base table. (Bug #18237) -
DELETEwithLEFT JOINforInnoDBtables could crash the server ifinnodb_locks_unsafe_for_binlogwas enabled. (Bug #15650) -
InnoDBfailure to release an adaptive hash index latch could cause a server crash if the query cache was enabled. (Bug #15758) -
For mysql.server, if the
basediroption was specified afterdatadirin an option file, the setting fordatadirwas ignored and assumed to be located underbasedir. (Bug #16240) -
The euro sign (
€) was not stored correctly in columns using thelatin1_german1_ciorlatin1_general_cicollation. (Bug #18321) -
EXTRACT(QUARTER FROMdate) returned unexpected results. (Bug #18100) -
TRUNCATEdid not reset theAUTO_INCREMENTcounter forMyISAMtables when issued inside a stored procedure. (Bug #14945)Note: This bug did not affect
InnoDBtables. Also,TRUNCATEdoes not reset theAUTO_INCREMENTcounter forNDBClustertables regardless of when it is called (see Bug #18864). -
The server was always built as though
--with-extra-charsets=complexhad been specified. (Bug #12076) -
A query using WHERE (
column_1,column_2) IN ((value_1,value_2)[, (..., ...), ...]) would return incorrect results. (Bug #16248) -
Queries of the form
SELECT DISTINCTtimestamp_columnWHEREdate_function(timestamp_col) =constantdid not return all matching rows. (Bug #16710) -
When running a query that contained a
GROUP_CONCAT( SELECT GROUP_CONCAT(...) ), the result wasNULLexcept in theROLLUPpart of the result, if there was one. (Bug #15560) -
For tables created in a MySQL 4.1 installation upgraded to MySQL 5.0 and up, multiple-table updates could update only the first matching row. (Bug #16281)
-
NDB Cluster: When multiple node restarts were attempted without allowing each restart to complete, the error message returned was Array index out of bounds rather than Too many crashed replicas. (Bug #18349) -
CASTdoubleAS SIGNED INT) for largedoublevalues outside the signed integer range truncates the result to be within range, but the result sometimes had the wrong sign, and no warning was generated. (Bug #15098) -
Updating a field value when also requesting a lock with
GET_LOCK()would cause slave servers in a replication environment to terminate. (Bug #17284)
This is a bugfix release for the current production release family. It replaces MySQL 5.0.20.
Changes from 5.0.20 to 5.0.20a:
-
The fix for “Command line options are ignored for mysql client” (Bug #16855) has been revoked because it introduced an incompatible change in the way the mysql command-line client selects the server to connect to. In the worst case, this might have led to a client issuing commands to a server for which they were not intended, and this must not happen. To help all users in understanding this subject, Section 4.2, “Invoking MySQL Programs” now includes additional explanation of how command options with regard to host selection.
-
The code of the
yaSSLlibrary has been improved to avoid the dependency on a C++ runtime library, so a link with pure C applications is now possible on additional (but not yet all) platforms. We are working on fixing the remaining issues.
Additional information about SSL support:
-
With version 5.0.20a, SSL support is contained in all binaries for all Unix (including Linux) and Windows platforms except AIX, HP-UX, OpenServer 6, and the RPMs specific for RHAS3/RHAS4/SLES9 on Itanium CPUs (
ia64); It is also not contained in those for Novell Netware. We are trying to add these platforms in future versions. -
Please note that the original 5.0.20 announcement included inexact wording: SSL support is “included” in both server and client, but by default not “enabled”. SSL can be enabled by passing the SSL-related options (
--ssl,--ssl-key=...,--ssl-cert=...,--ssl-ca=...) when starting the server and the client or by specifying these options in an option file. For more information, see Section 5.9.7, “Using Secure Connections”.
Functionality added or changed:
-
Added the
--sysdate-is-nowoption to mysqld to enableSYSDATE()to be treated as an alias forNOW(). See Section 12.5, “Date and Time Functions”. (Bug #15101) -
InnoDB: TheInnoDBstorage engine now provides a descriptive error message ifibdatafile information is omitted frommy.cnf. (Bug #16827) -
The
NDBClusterstorage engine now supportsINSERT IGNOREandREPLACEstatements. Previously, these statements failed with an error. (Bug #17431) -
Builds for Windows, Linux, and Unix (except AIX) platforms now have SSL support enabled, in the server as well as in the client libraries. Because part of the SSL code is written in C++, this does introduce dependencies on the system's C++ runtime libraries in several cases, depending on compiler specifics. (Bug #18195)
-
The syntax for
CREATE PROCEDUREandCREATE FUNCTIONstatements now includes aDEFINERclause. TheDEFINERvalue specifies the security context to be used when checking access privileges at routine invocation time if the routine has theSQL SECURITY DEFINERcharacteristic. See Section 17.2.1, “CREATE PROCEDUREandCREATE FUNCTIONSyntax”, for more information.When mysqldump is invoked with the
--routinesoption, it now dumps theDEFINERvalue for stored routines. -
Large file support added to build for
QNXplatform. (Bug #17336) -
Large file support was re-enabled for the MySQL server binary for the AIX 5.2 platform. (Bug #13571)
Bugs fixed:
-
If the
WHEREcondition of a query contained anOR-edFALSEterm, the set of tables whose rows cannot serve for null-complements in outer joins was determined incorrectly. This resulted in blocking possible conversions of outer joins into joins by the optimizer for such queries. (Bug #17164) -
mysql_config returned incorrect libraries on
x86_64systems. (Bug #13158) -
Stored routine names longer than 64 characters were silently truncated. Now the limit is properly enforced and an error occurs. (Bug #17015)
-
During conversion from one character set to
ucs2, multi-byte characters with noucs2equivalent were converted to multiple characters, rather than to0x003F QUESTION MARK. (Bug #15375) -
The
mysql_close()C API function leaked handles for shared-memory connections on Windows. (Bug #15846) -
Checks for permissions on database operations could be performed in a case-insensitive manner (a user with permissions on database
MYDATABASEcould by accident get permissions on databasemyDataBase), if the privilege data were still cached from a previous check. (Bug #17279) -
If
InnoDBran out of buffer space for row locks and adaptive hashes, the server would crash. NowInnoDBrolls back the transaction. (Bug #18238) -
InnoDBtables with an adaptive hash blocked other queries duringCHECK TABLEstatements while the entire hash was checked. This could be a long time for a large hash. (Bug #17126) -
For
InnoDBtables created in MySQL 4.1 or earlier, or created in 5.0 or later with compact format, updating a row so that a long column is updated or the length of some column changes,InnoDBlater would fail to reclaim theBLOBstorage space if the row was deleted. (Bug #18252) -
InnoDBhad a memory leak for duplicate-key errors with tables having 90 columns or more. (Bug #18384) -
InnoDB: TheLATEST FOREIGN KEY ERRORsection in the output ofSHOW INNODB STATUSwas sometimes formatted incorrectly, causing problems with scripts that parsed the output of this statement. (Bug #16814) -
When using
ORDER BYwith a non-string column insideGROUP_CONCAT()the result's character set was converted to binary. (Bug #18281)See also Bug #14169.
-
SELECT ... WHEREcolumnLIKE 'A%' whencolumnhad a key and used thelatin2_czech_cscollation. (Bug #17374) -
Complex queries with nested joins could cause a server crash. (Bug #18279)
-
The server could deadlock under heavy load while writing to the binary log. (Bug #18116)
-
A
SELECT ... ORDER BY ...from a view defined using a function could crash the server. An example of such a view might beCREATE VIEW AS SELECT SQRT(c1) FROM t1. (Bug #18386) -
A
DELETEusing a subquery could crash the server. (Bug #18306) -
REPAIR TABLE,OPTIMIZE TABLE, andALTER TABLEoperations on transactional tables (or on tables of any type on Windows) could corrupt triggers associated with those tables. (Bug #18153) -
MyISAM: Performing a bulk insert on a table referenced by a trigger would crash the table. (Bug #17764) -
MyISAM: Keys for which the first part of the key was aCHARorVARCHARcolumn using the UTF-8 character set and longer than 254 bytes could become corrupted. (Bug #17705) -
Using
ORDER BYintvarwithin a stored procedure (whereintvaris an integer variable or expression) would crash the server. (Bug #16474)Note: The use of an integer
iin anORDER BYiclause for sorting the result by theith column is deprecated (and non-standard). It should not be used in new applications. See Section 13.2.7, “SELECTSyntax”. -
Triggers created in MySQL 5.0.16 and earlier could not be dropped after upgrading the server to 5.0.17 or later. (Bug #15921)
-
A
SELECTusing a function against a nested view would crash the server. (Bug #15683) -
NDB Cluster: Certain queries usingORDER BY ... ASCin theWHEREclause could return incorrect results. (Bug #17729) -
NDB Cluster: A timeout in the handling of anABORTcondition with more that 32 operations could yield a node failure. (Bug #18414) -
NDB Cluster: A node restart immediately following aCREATE TABLEwould fail. Important: This fix supports 2-node Clusters only. (Bug #18385) -
NDB Cluster: In event of a node failure during a rollback, a “false” lock could be established on the backup for that node, which lock could not be removed without restarting the node. (Bug #18352) -
NDB Cluster: The cluster created a crashed replica of a table having an ordered index — or when logging was not enabled, of a table having a table or unique index — leading to a crash of the cluster following 8 successibe restarts. (Bug #18298) -
NDB Cluster: When replacing a failed master node, the replacement node could cause the cluster to crash from a buffer overflow if it had an excessively large amount of data to write to the cluster log. (Bug #18118) -
NDB Cluster: If a mysql or other client could not parse the result set returned from a mysqld process acting as an SQL node in a cluster, the client would crash instead of returning the appropriate error. For example, this could happen when the client attempted to use a character set was not available to the mysqld. (Bug #17380) -
NDB Cluster: Restarting nodes were allowed to start and join the cluster too early. (Bug #16772) -
If a row was inserted inside a stored procedure using the parameters passed to the procedure in the INSERT statement, the resulting binlog entry was not escaped properly. (Bug #18293)
-
If InnoDB encountered a
HA_ERR_LOCK_TABLE_FULLerror and rolled-back a transaction, the transaction was still written to the binary log. (Bug #18283) -
Stored procedures that call UDFs and pass local string variables caused server crashes. (Bug #17261)
-
Connecting to a server with a UCS2 default character set with a client using a non-UCS2 character set crashed the server. (Bug #18004)
-
Loading of UDFs in a statically linked MySQL caused a server crash. UDF loading is now blocked if the MySQL server is statically linked. (Bug #11835)
-
Views that incorporate tables from the INFORMATION_SCHEMA resulted in a server crash when queried. (Bug #18224)
-
A
SELECT *query on an INFORMATION_SCHEMA table by a user with limited privileges resulted in a server crash. (Bug #18113) -
Attempting to access an
InnoDBtable after starting the server with--skip-innodbcaused a server crash. (Bug #14575) -
InnoDBused table locks (not row locks) within stored functions. (Bug #18077) -
Replication slaves could not replicate triggers from older servers that included no
DEFINERclause in the trigger definition. Now the trigger executes with the privileges of the invoker (which on the slave is the slave SQL thread). (Bug #16266) -
Character set conversion of string constants for
UNIONof constant and table column was not done when it was safe to do so. (Bug #15949) -
The
DEFINERvalue for stored routines was not replicated. (Bug #15963) -
Use of stored functions with
DISTINCTorGROUP BYcan produce incorrect results whenORDER BYis also used. (Bug #13575) -
Use of
TRUNCATE TABLEfor aTEMPORARYtable on a master server was propagated to slaves properly, but slaves did not decrement theSlave_open_temp_tablescounter properly. (Bug #17137) -
SELECT COUNT(*)for aMyISAMtable could return different results depending on whether an index was used. (Bug #14980) -
A
LEFT JOINwith aUNIONthat selects literal values could crash the server. (Bug #17366) -
Large file support did not work in AIX server binaries. (Bug #10776)
-
Updating a view that filters certain rows to set a filtered out row to be included in the table caused infinite loop. For example, if the view has a WHERE clause of
salary > 100then issuing an UPDATE statement ofSET salary = 200 WHERE id = 10, caused an infinite loop. (Bug #17726) -
Certain combinations of joins with mixed
ONandUSINGclauses caused unknown column errors. (Bug #15229) -
NDB Cluster: Inserting and deletingBLOBcolumn values while a backup was in process could cause the loss of an ndbd node. (Bug #14028) -
If the server was started with the
--skip-grant-tablesoption, it was impossible to create a trigger or a view without explicitly specifying aDEFINERclause. (Bug #16777) -
COUNT(DISTINCTcol1,col2) andCOUNT(DISTINCT CONCAT(col1,col2)) operations produced different results if one of the columns was an indexedDECIMALcolumn. (Bug #15745) -
The server displayed garbage in the error message warning about bad assignments to
DECIMALcolumns or routine variables. (Bug #15480) -
The server would execute stored routines that had a non-existent definer. (Bug #13198)
-
For
FEDERATEDtables, aSELECTstatement with anORDER BYclause did not return rows in the proper order. (Bug #17377) -
The
FORMAT()function returned an incorrect result when the client'scharacter_set_connectionvalue wasutf8. (Bug #16678) -
NDB Cluster: Some query cache statistics were not always correctly reported for Cluster tables. (Bug #16795) -
Updating the value of a Unicode
VARCHARcolumn with the result returned by a stored function would cause the insertion of ASCII characters into the column instead of Unicode, even where the function's return type was also declared as Unicode. (Bug #17615)
Functionality added or changed:
-
Incompatible change: The
InnoDBstorage engine no longer ignores trailing spaces when comparingBINARYorVARBINARYcolumn values. This means that (for example) the binary values'a'and'a 'are now regarded as unequal any time they are compared, as they are inMyISAMtables. (Bug #14189)See Section 11.4.2, “The
BINARYandVARBINARYTypes” for more information about theBINARYandVARBINARYtypes. -
Several changes were made to make upgrades easier:
-
Added the mysql_upgrade program that checks all tables for incompatibilities with the current version of MySQL Server and repairs them if necessary. This program should be run for each MySQL upgrade (rather than mysql_fix_privilege_tables). See Section 5.6.2, “mysql_upgrade — Check Tables for MySQL Upgrade”.
-
Added the
FOR UPGRADEoption for theCHECK TABLEstatement. This option checks whether tables are incompatible with the current version of MySQL Server. -
Added the
--check-upgradeto mysqlcheck that invokesCHECK TABLEwith theFOR UPGRADEoption.
-
-
NDB Cluster: The ndb_mgm client commandsnode_idSTART andnode_idSTOP now work with management nodes as well as data nodes. (However, usingALLfor thenode_idcontinues to affect all data nodes only.) -
When using the
GROUP_CONCAT()function where thegroup_concat_max_lensystem variable was greater than 512, the type of the result wasBLOBonly if the query included anORDER BYclause; otherwise the result was aVARCHAR.The result type of the
GROUP_CONCAT()function is nowVARCHARonly if the value of thegroup_concat_max_lensystem variable is less than or equal to 512. Otherwise, this function returns aBLOB. (Bug #14169) -
mysql no longer terminates data value display when it encounters a NUL byte. Instead, it displays NUL bytes as spaces. (Bug #16859)
-
Added the
--wait-timeoutoption to mysqlmanager to allow configuration of the timeout for dropping an inactive connection, and increased the default timeout from 30 seconds to 28,800 seconds (8 hours). (Bug #12674, Bug#15980) -
A number of performance issues were resolved that had previously been encountered when using statements that repeatedly invoked stored functions. For example, calling
BENCHMARK()using a stored function executed much more slowly than when invoking it with inline code that accomplished the same task. In most cases the two should now execute with approximately the same speed. (Bug #15014, Bug #14946) -
libmysqlclientnow uses versioned symbols with GNU ld. (Bug #3074) -
NDB Cluster: More descriptive warnings are now issued when inappropriate logging parameters are set inconfig.ini. (Formerly, the warning issued was simply Could not add logfile destination.) (Bug #11331) -
Added the
--port-open-timeoutoption to mysqld to control how many seconds the server should wait for the TCP/IP port to become free if it cannot be opened. (Bug #15591) -
Repeated invocation of
my_init()andmy_end()caused corruption of character set data and connection failure. (Bug #6536) -
Two new Hungarian collations are included:
utf8_hungarian_cianducs2_hungarian_ci. These support the correct sort order for Hungarian vowels. However, they do not support the correct order for sorting Hungarian consonant contractions; this issue will be fixed in a future release. -
Wording of error 1329 changed to No data - zero rows fetched, selected, or processed. (Bug #15206)
-
The
INFORMATION_SCHEMAnow skips data contained in unlistable/unreadable directories rather than returning an error. (Bug #15851) -
InnoDB now caches a list of unflushed files instead of scanning for unflushed files during a table flush operation. This improves performance when
--innodb-file-per-tableis set on a system with a large number of InnoDB tables. (Bug #15653) -
The message for error 1109 changed from Unknown table ... in order clause to Unknown table ... in field list. (Bug #15091)
-
The
mysqltestutility now converts allCR/LFcombinations toLFto allow test cases intended for Windows to work properly on UNIX-like systems. (Bug #13809) -
The
mysql_pingfunction will now retry if thereconnectflag is set and errorCR_SERVER_LOSTis encountered during the first attempt to ping the server. (Bug #14057) -
mysqldumpnow surrounds theDEFINER,SQL SECURITY DEFINERandWITH CHECK OPTIONclauses of aCREATE VIEWstatement with "not in version" comments to prevent errors in earlier versions of MySQL. (Bug #14871) -
New
charsetcommand added to mysql command-line client. By typingcharsetnameor\Cname(such as\C UTF8), the client character set can be changed without reconnecting. (Bug #16217) -
Client API will now attempt reconnect on TCP/IP if the
reconnectflag is set, as is the case with sockets. (Bug #2845)
Bugs fixed:
-
Generating an
AUTO_INCREMENTvalue through aFEDERATEDtable did not set the value returned byLAST_INSERT_ID(). (Bug #14768) -
Cursors in stored routines could cause a server crash. (Bug #16887)
-
Setting the
myisam_repair_threadssystem variable to a value larger than 1 could cause corruption of largeMyISAMtables. (Bug #11527) -
The length of a
VARCHAR()column that used theutf8character set would increase each time the table was re-created in a stored procedure or prepared statement, eventually causing theCREATE TABLEstatement to fail. (Bug #13134) -
type_decimalfailed with the prepared statement protocol. (Bug #17826) -
The MySQL server could crash with out of memory errors when performing aggregate functions on a
DECIMALcolumn. (Bug #17602) -
A stored procedure failed to return data the first time it was called per connection. (Bug #17476)
-
Using
DROP FUNCTION IF EXISTSfunc_nameto drop a user-defined function caused a server crash if the server was running with the--skip-grant-tablesoption. (Bug #17595) -
Using
ALTER TABLEto increase the length of aBINARY(M) column caused column values to be padded with spaces rather than0x00bytes. (Bug #16857) -
A large
BIGINTvalue specified in aWHEREclause could be treated differently depending on whether it is specified as a quoted string. (For example,WHERE bigint_col = 17666000000000000000versusWHERE bigint_col = '17666000000000000000'). (Bug #9088) -
A natural join between
INFORMATION_SCHEMAtables failed. (Bug #17523) -
A memory leak caused warnings on slaves for certain statements that executed without warning on the master. (Bug #16175)
-
The embedded server did not allow binding of columns to the
MYSQL_TYPE_VAR_STRINGdata type in prepared statements. (Bug #12070) -
The embedded server failed various tests in the automated test suite. (Bug #9630, Bug #9631, Bug #9633, Bug #10801, Bug #10911, Bug #10924, Bug #10925, Bug #10926, Bug #10930, Bug #15433)
-
Instance Manager erroneously accepted a list of instance identifiers for the
START INSTANCEandSTOP INSTANCEcommands (should accept only a single identifier). (Bug #12813) -
For a transaction that used
MyISAMandInnoDBtables, interruption of the transaction due to a dropped connection on a master server caused slaves to lose synchrony. (Bug #16559) -
SELECTwithGROUP BYon a view can cause a server crash. (Bug #16382) -
If the query optimizer transformed a
GROUP BYclause in a subquery, it did not also transform theHAVINGclause if there was one, producing incorrect results. (Bug #16603) -
SUBSTRING_INDEX()could yield inconsistent results when applied with the same arguments to consecutive rows in a query. (Bug #14676) -
The parser allowed
CREATE AGGREGATE FUNCTIONfor creating stored functions, even thoughAGGREGATEdoes not apply. (It is used only forCREATE FUNCTIONonly when creating user-defined functions.) (Bug #16896) -
Data truncations on non-UNIQUE indexes could crash InnoDB when using multi-byte character sets. (Bug #17530)
-
Triggers created without
BEGINandENDclauses could not be properly restored from amysqldumpfile. (Bug #16878) -
The
RENAME TABLEstatement did not move triggers to the new table. (Bug #13525) -
Clients compiled from source with the
--without-readlinedid not save command history from session to session. (Bug #16557) -
Stored routines that contained only a single statement were not written properly to the dumpfile when using
mysqldump. (Bug #14857) -
For certain
MERGEtables, the optimizer wrongly assumed that usingindex_merge/intersectionwas too expensive. (Bug #17314) -
Executing a
SHOW CREATE VIEWquery of an invalid view caused themysql_next_resultfunction oflibMySQL.dllto hang. (Bug #15943) -
BITfields were not properly handled when using row-based replication. (Bug #13418) -
Issuing
GRANT EXECUTEon a procedure would display any warnings related to the creation of the procedure. (Bug #7787) -
NDB Cluster: ndb_delete_all would run out of memory on tables containingBLOBcolumns. (Bug #16693) -
NDB Cluster:UNIQUEkeys in Cluster tables were limited to 225 bytes in length. (Bug #15918) -
In a highly concurrent environment, a server crash or deadlock could result from execution of a statement that used stored functions or activated triggers coincident with alteration of the tables used by these functions or triggers. (Bug #16593)
-
Previously, a stored function invocation was written to the binary log as
DOfunc_name() if the invocation changes data and occurs within a non-logged statement, or if the function invokes a stored procedure that produces an error. These invocations now are logged asSELECTfunc_name() instead for better control over error code checking (slave servers could stop due to detecting a different error than occurred on the master). (Bug #14769) -
CHECKSUM TABLEreturned different values on MyISAM table depending on whether theQUICKorEXTENDEDoptions were used. (Bug #8841) -
MySQL server dropped client connection for certain SELECT statements against views defined that used
MERGEalgorithm. (Bug #16260) -
A call to the
IF()function using decimal arguments could return incorrect results. (Bug #16272) -
A statement containing
GROUP BYandHAVINGclauses could return incorrect results when theHAVINGclause contained logic that returnedFALSEfor every row. (Bug #14927) -
Using
GROUP BYon column used inWHEREclause could cause empty set to be returned. (Bug #16203) -
For a MySQL 5.0 server, using MySQL 4.1 tables in queries with a
GROUP BYclause could result in buffer overrun or a server crash. (Bug #16752) -
SET sql_mode =N, whereN> 31, did not work properly. (Bug #13897) -
NDB Cluster: Cluster log file paths were truncated to 128 characters. They may now be as long asMAX_PATH(the maximum path length permitted by the operating system). (Bug #17411) -
The
mysql_stmt_store_result()C API function could not be used for a prepared statement if a cursor had been opened for the statement. (Bug #14013) -
The
mysql_stmt_sqlstate()C API function incorrectly returned an empty string rather than'00000'when no error occurred. (Bug #16143) -
Using the
TRUNCATE()function with a negative number for the second argument on aBIGINTcolumn returned incorrect results. (Bug #8461) -
Instance Manager searched wrong location for password file on some platforms. (Bug #16499)
-
NDB Cluster: Following multiple forced shutdowns and restarts of data nodes,DROP DATABASEcould fail. (Bug #17325) -
NDB Cluster: AnUPDATEwith an inner join failed to match any records if both tables in the join did not have a primary key. (Bug #17257) -
NDB Cluster: ADELETEwith a join in theWHEREclause failed to retrieve any records if both tables in the join did not have a primary key. (Bug #17249) -
The error message returned by
perror--ndbwas prefixed with OS error code: instead of NDB error code:. (Bug #17235) -
NDB Cluster: In some cases,LOAD DATA INFILEdid not load all data intoNDBtables. (Bug #17081) -
NDB Cluster: TheREDOlog would become corrupted (and thus unreadable) in some circumstances, due to a failure in the query handler. (Bug #17295) -
NDB Cluster: No error message was generated for settingNoOfFragmentLogFilestoo low. (Bug #13966) -
NDB Cluster: No error message was generated for settingMaxNoOfAttributestoo low. (Bug #13965) -
Binary distributions for Solaris contained files with group ownership set to the non-existing
wheelgroup. Now thebingroup is used. (Bug #15562) -
The
DECIMALdata type was not being handled correctly with prepared statements. (Bug #16511) -
The
SELECTprivilege was required for triggers that performed no selects. (Bug #15196) -
The
UPDATEprivilege was required for triggers that performed no updates. (Bug #15166) -
CAST(... AS TIME)operations returned different results when using versus not using prepared-statement protocol. (Bug #15805) -
Improper memory handling for stored routine variables could cause memory overruns and binary log corruption. (Bug #15588)
-
Killing a long-running query containing a subquery could cause a server crash. (Bug #14851)
-
A
FULLTEXTquery in a prepared statement could result in unexpected behavior. (Bug #14496) -
A
RETURNstatement within a trigger caused a server crash.RETURNnow is disallowed within triggers. To exit immediately, useLEAVE. (Bug #16829) -
STR_TO_DATE(1,NULL)caused a server crash. (CVE-2006-3081, Bug #15828) -
An invalid stored routine could not be dropped. (Bug #16303)
-
When evaluation of the test in a
CASEfailed in a stored procedure that contained aCONTINUEhandler, execution resumed at the beginning of the CASE statement instead of at the end. (Bug #16568) -
An
INSERTstatement in a stored procedure corrupted the binary log. (Bug #16621) -
When MyODBC or any other client called
my_init()/my_end()several times, it caused corruption of charset data stored inonce_mem_pool. (Bug #11892) -
When multiple handlers are created for the same MySQL error number within nested blocks, the outermost handler took precedence. (Bug #15011)
-
Certain
LEAVEstatements in stored procedures were not properly optimized. (Bug #15737) -
Setting InnoDB path settings to an empty string caused InnoDB storage engine to crash upon server startup. (Bug #16157)
-
InnoDB used full explicit table locks in trigger processing. (Bug #16229)
-
Server crash when dropping InnoDB constraints named
TABLENAME_ibfk_0. (Bug #16387) -
Corrected race condition when dropping the adaptive hash index for a B-tree page in InnoDB. (Bug #16582)
-
The
mysql_real_connect()C API function incorrectly reset theMYSQL_OPT_RECONNECToption to its default value. (Bug #15719) -
InnoDB: After upgrading anInnoDBtable having aVARCHAR BINARYcolumn created in MySQL 4.0 to MySQL 5.0, update operations on the table would cause the server to crash. (Bug #16298) -
Trying to compile the server on Windows generated a stack overflow warning due to a recursive definition of the internal
Field_date::store()method. (Bug #15634) -
The use of
LOAD INDEXwithin a stored routine was permitted and caused the server to crash. Note:LOAD INDEXstatements within stored routines are not supported, and now yield an error if attempted. This behavior is intended. (Bug #14270) -
The mysqlbinlog utility did not output
DELIMITERstatements, causing syntax errors for stored routine creation statements. (Bug #11312) -
NDB Cluster returned incorrect
Can't find fileerror for OS error 24, changed toToo many open files. (Bug #15020) -
Performing a
RENAME TABLEon an InnoDB table when the server is started with the--innodb-file-per-tableand the data directory is a symlink caused a server crash. (Bug #15991) -
Multi-byte path names for
LOAD DATAandSELECT ... INTO OUTFILEcaused errors. Added thecharacter_set_filesystemsystem variable, which controls the interpretation of string literals that refer to filenames. (Bug #12448) -
Certain subqueries where the inner query is the result of a aggregate function would return different results on MySQL 5.0 than on MySQL 4.1. (Bug #15347)
-
Attempts to create FULLTEXT indexes on VARCHAR columns larger than 1000 bytes resulted in error. (Bug #13835)
-
Characters in the
gb2312andeuckrcharacter sets which did not have Unicode mappings were truncated. (Bug #15377) -
Certain nested LEFT JOIN operations were not properly optimized. (Bug #16393)
-
GRANTstatements specifying schema names that included underscore characters (i.e.my_schema) did not match if the underscore was escaped in theGRANTstatement (i.e.GRANT ALL ON `my\_schema` ...). (Bug #14834) -
Running out of diskspace in the location specified by the
tmpdiroption resulted in incorrect error message. (Bug #14634) -
Test suite
sptest left behind tables when the test failed that could cause future tests to fail. (Bug #15866) -
UPDATEstatement crashed multi-byte character setFULLTEXTindex if update value was almost identical to initial value only differing in some spaces being changed to . (Bug #16489) -
A
SELECTquery which contained aGROUP_CONCAT()and anORDER BYclause against theINFORMATION_SCHEMAresulted in an empty result set. (Bug #15307) -
The
--replicate-doand--replicate-ignoreoptions were not being enforced on multiple-table statements. (Bug #15699, Bug #16487) -
A prepared statement created from a
SELECT ... LIKEquery (such asPREPARE stmt1 FROM 'SELECT col_1 FROM tedd_test WHERE col_1 LIKE ?';) would begin to produce erratic results after being executed repeatedly numerous (thousands) of times. (Bug #12734) -
The server would crash when the size of an
ARCHIVEtable grew beyond 2GB. (Bug #15787) -
Created a user function with an empty string (that is,
CREATE FUNCTION ''()), was accepted by the server. Following this, callingSHOW FUNCTION STATUSwould cause the server to crash. (Bug #15658) -
In some cases the query optimizer did not properly perform multiple joins where inner joins followed left joins, resulting in corrupted result sets. (Bug #15633)
-
The absence of a table in the left part of a left or right join was not checked prior to name resolution, which resulted in a server crash. (Bug #15538)
-
NDBCluster: A bitfield whose offset and length totaled 32 would crash the cluster. (Bug #16125) -
NDBCluster: Upon the completion of a scan where a key request remained outstanding on the primary replica and a starting node died, the scan did not terminate. This caused incompleted error handling of the failed node. (Bug #15908) -
NDBCluster: Thendb_autodiscovertest failed sporadically due to a node not being permitted to connect to the cluster. (Bug #15619) -
NDBCluster: When running more than one management process in a cluster:-
ndb_mgm -c
host:port-e "node_idstop" would stop a management process running only on the same system on which the command was issued. -
ndb_mgm -e "shutdown" failed to shut down any management processes at all.
(Bug #12045, Bug #12124)
-
-
The contents of
fill_help_tables.sqlcould not be loaded in strict SQL mode. (Bug #15760) -
fill_help_tables.sqlwas not included in binary distributions for several platforms. (Bug #15759) -
An
INSERT ... SELECTstatement between tables in aMERGEset can return errors when statement involves insert into child table from merge table or vice-versa. (Bug #5390) -
Certain permission management statements could create a
NULLhostname for a user, resulting in a server crash. (Bug #15598) -
A
COMMITstatement followed by aALTER TABLEstatement on a BDB table caused server crash. (Bug #14212) -
A
DELETEstatement involving aLEFT JOINand anIS NULLtest on the right-hand table of the join crashed the server when theinnodb_locks_unsafe_for_binlogoption was enabled. (Bug #15650) -
Performing an
ORDER BYon an indexedENUMcolumn returned error. (Bug #15308) -
The
NOT FOUNDcondition handler for stored procedures did not distinguish between aNOT FOUNDcondition and an exception or warning. (Bug #15231) -
A stored procedure with an undefined variable and an exception handler would hang the client when called. (Bug #14498)
-
Subselect could return wrong results when records cache and grouping was involved. (Bug #15347)
-
Temporary table aliasing did not work inside stored functions. (Bug #12198)
-
MIN()andMAX()operations were not optimized for views. (Bug #16016) -
Using an aggregate function as the argument for a HAVING clause would result in the aggregate function always returning
FALSE. (Bug #14274) -
Parallel builds occasionally failed on Solaris. (Bug #16282)
-
The
FORCE INDEXkeyword in a query would prevent an index merge from being used where an index merge would normally be chosen by the optimizer. (Bug #16166) -
The
COALESCE()function truncated data in aTINYTEXTcolumn. (Bug #15581) -
InnoDB: Comparison of indexedVARCHAR CHARACTER SET ucs2 COLLATE ucs2_bincolumns usingLIKEcould fail. (Bug #14583) -
An attempt to open a table that requires a disabled storage engine could cause a server crash. (Bug #15185)
-
Issuing a
DROP USERcommand could cause some users to encounter ahostnameis not allowed to connect to this MySQL server error. (Bug #15775) -
Setting
innodb_log_file_sizeto a value greater than 4G crashed the server. (Bug #15108) -
A
SELECTof a stored function that references theINFORMATION_SCHEMAcould crash the server. (Bug #15533) -
Tarball install package was missing a proper
fill_help_tables.sqlfile. (Bug #15151)
Functionality added or changed:
-
It is now possible to build the server such that
MyISAMtables can support up to 128 keys rather than the standard 64. This can be done by configuring the build using the option--with-max-indexes=N, whereN≤128 is the maximum number of indexes to permit per table. (Bug #10932) -
The server treats stored routine parameters and local variables (and stored function return values) according to standard SQL. Previously, parameters, variables, and return values were treated as items in expressions and were subject to automatic (silent) conversion and truncation. Now the data type is observed. Data type conversion and overflow problems that occur in assignments result in warnings, or errors in strict mode. The
CHARACTER SETclause for character data type declarations is used. Parameters, variables, and return values must be scalars; it is no longer possible to assign a row value. Also, stored functions execute using thesql_modevalue in force at function creation time rather than ignoring it. For more information, see Section 17.2.1, “CREATE PROCEDUREandCREATE FUNCTIONSyntax”. (Bug #8702, Bug #8768, Bug #8769, Bug #9078, Bug #9572, Bug #12903, Bug #13705, Bug #13808, Bug #13909, Bug #14161, Bug #15148)
Bugs fixed:
-
API functionmysql_stmt_preparereturned wrong field length for TEXT columns. (Bug #15613) -
The output of mysqldump --triggers did not contain the
DEFINERclause in dumped trigger definitions. (Bug #15110) -
The output of
SHOW TRIGGERScontained extraneous whitespace. (Bug #15103) -
Creating a trigger caused a server crash if the table or trigger database was not known because no default database had been selected. (Bug #14863)
-
SHOW [FULL] COLUMNSandSHOW INDEX FROMdid not function with temporary tables. (Bug #14271, Bug #14387, Bug #15224) -
The INFORMATION_SCHEMA.COLUMNS table did not report the size of BINARY or VARBINARY columns. (Bug #14271)
-
The server would not compile under Cygwin. (Bug #13640)
-
DESCRIBEdid not function with temporary tables. (Bug #12770) -
Reversing the order of operands in a
WHEREclause testing a simple equality (such asWHERE t1.col1 = t2.col2) would produce different output fromEXPLAIN. (Bug #15106) -
Column aliases were displayed incorrectly in a
SELECTfrom a view following an update to a base table of the view. (Bug #14861) -
Set functions could not be aggregated in outer subqueries. (Bug #12762)
-
When a connection using yaSSL was aborted, the server would continue to try to read the closed socket, and the thread continued to appear in the output of
SHOW PROCESSLIST. Note that this issue did not affect secure connection attempts using OpenSSL. (Bug #15772) -
InnoDB: Having two tables in a parent-child relationship enforced by a foreign key where one table usedROW_FORMAT=COMPACTand the other usedROW_FORMAT=REDUNDANTcould result in a MySQL server crash. Note that this problem did not exist prior to MySQL 5.0.3, when the compact row format forInnoDBwas introduced. (Bug #15550) -
BDB: ADELETE,INSERT, orUPDATEof aBDBtable could cause the server to crash where the query contained a subquery using an index read. (Bug #15536) -
A left join on a column that having a
NULLvalue could cause the server to crash. (Bug #15268) -
A replication slave server could sometimes crash on a
BEFORE UPDATEtrigger if theUPDATEquery was not executed in the same database as the table with the trigger. (Bug #14614) -
A race condition when creating temporary files caused a deadlock on Windows with threads in
Opening tablesorWaiting for tablestates. (Bug #12071) -
InnoDB: IfFOREIGN_KEY_CHECKSwas 0,InnoDBallowed inconsistent foreign keys to be created. (Bug #13778) -
NDB Cluster: Under some circumstances, it was possible for a restarting node to undergo a forced shutdown. (Bug #15632) -
NDB Cluster: If an abort by the Transaction Coordinator timed out, the abort condition was incorrectly handled, causing the transaction record to be released prematurely. (Bug #15685) -
NDB Cluster: Thendb_read_multi_range.testscript failed to drop a table, causing the test to fail. (Bug #15675) (See also Bug #15401.) -
NDB Cluster: A node which failed during cluster startup was sometimes not removed from the internal list of active nodes. (Bug #15587) -
Resolution of the argument to the
VALUES()function to a variable inside a stored routine caused a server crash. The argument must be a table column. (Bug #15441)
Functionality added or changed:
-
The original Linux RPM packages (5.0.17-0) had an issue with a
zlibdependency that would result in an error during an install or upgrade. They were replaced by new binaries, 5.0.17-1. (Bug #15223) Here is a list of the new RPM binaries:-
MySQL-{Max,client,devel,server,shared,ndb*}-5.0.17-1.i386.rpm
-
MySQL-*-standard-5.0.17-1.rhel3.i386.rpm, MySQL-*-standard-5.0.17-1.rhel3.ia64.rpm, MySQL-*-standard-5.0.17-1.rhel3.x86_64.rpm
-
MySQL-*-pro-5.0.17-1.rhel3.i386.rpm, MySQL-*-pro-5.0.17-1.rhel3.ia64.rpm, MySQL-*-pro-5.0.17-1.rhel3.x86_64.rpm
-
MySQL-*-pro-gpl-5.0.17-1.rhel3.i386.rpm, MySQL-*-pro-gpl-5.0.17-1.rhel3.ia64.rpm, MySQL-*-pro-gpl-5.0.17-1.rhel3.x86_64.rpm
-
-
The syntax for
CREATE TRIGGERnow includes aDEFINERclause for specifying which access privileges to check at trigger invocation time. See Section 18.1, “CREATE TRIGGERSyntax”, for more information.Known issue: If you attempt to replicate from a master server older than MySQL 5.0.17 to a slave running MySQL 5.0.17 through 5.0.19, replication of
CREATE TRIGGERstatements fails on the slave with aDefiner not fully qualifiederror. A workaround is to create triggers on the master using a version-specific comment embedded in eachCREATE TRIGGERstatement:CREATE /*!50017 DEFINER = 'root'@'localhost' */ TRIGGER ... ;
CREATE TRIGGERstatements written this way will replicate to newer slaves, which pick up theDEFINERclause from the comment and execute successfully. (Bug #16266) -
Added a
DEFINERcolumn to theINFORMATION_SCHEMA.TRIGGERStable. -
Invoking a stored function or trigger creates a new savepoint level. When the function or trigger finishes, the previous savepoint level is restored. (See Bug #13825 for more information.)
-
Recursion is allowed in stored procedures. Recursive stored functions and triggers still are disallowed. (Bug #10100)
-
In the
latin5_turkish_cicollation, the order of the charactersA WITH CIRCUMFLEX,I WITH CIRCUMLEX, andU WITH CIRCUMFLEXwas changed. If you have used these characters in any indexed columns, you should rebuild those indexes. (Bug #13421) -
Support files for compiling with Visual Studio 6 have been removed. (Bug #15094)
Bugs fixed:
-
RPM packages had an incorrect
zlibdependency. (Bug #15223) -
NDB Cluster:REPLACEfailed when attempting to update a primary key value in a Cluster table. (Bug #14007) -
make failed when attempting to build MySQL in different directory than source. (Bug #11827)
-
Corrected an error-handling problem within stored routines on 64-bit platforms. (Bug #15630)
-
Slave SQL thread cleanup was not handled properly on Mac OS X when a statement was killed, resulting in a slave crash. (Bug #15623, Bug #15668)
-
Symbolic links did not function properly on Windows platforms. (Bug #14960, Bug #14310)
-
mysqld would not start on Windows 9X operating systems including Windows Me. (Bug #15209)
-
InnoDB: During replication, There was a failure to record events in the binary log that still occurred even in the event of aROLLBACK. For example, this sequence of commands:BEGIN; CREATE TEMPORARY TABLE t1 (a INT) ENGINE=INNODB; ROLLBACK; INSERT INTO t1 VALUES (1);
would succeed on the replication master as expected. However, the
INSERTwould fail on the slave because theROLLBACKwould (erroneously) cause theCREATE TEMPORARY TABLEstatement not to be written to the binlog. (Bug #7947) -
A bug in
mysql-test/t/mysqltest.testcaused that test to fail. (Bug #15605) -
The
CREATEtest case in mysql-test-run.pl failed on AIX and SCO. (Bug #15607) -
NDB Cluster: Creating a table with packed keys failed silently.NDBnow supports thePACK_KEYSoption toCREATE TABLEcorrectly. (Bug #14514) -
NDB Cluster: UsingORDER BYprimary_key_columnwhen selecting from a table having the primary key on aVARCHARcolumn caused a forced shutdown of the cluster. (Bug #14828, Bug #15240, Bug #15682, Bug #15517) -
NDB Cluster: Under certain circumstances, when mysqld connects to a cluster management server, the connection would fail before a node ID could be allocated. (Bug #15215) -
NDB Cluster: There was a small window for a node failure to occur during a backup without an error being reported. (Bug #15425) -
mysql --help was missing a newline after the version string when the bundled
readlinelibrary was not used. (Bug #15097) -
Implicit versus explicit conversion of float to integer (such as inserting a float value into an integer column versus using
CAST(... AS UNSIGNEDbefore inserting the value) could produce different results. Implicit and explicit typecasts now are done the same way, with a value equal to the nearest integer according to the prevailing rounding mode. (Bug #12956) -
GROUP BYon a view column did not correctly account for the possibility that the column could containNULLvalues. (Bug #14850) -
ANALYZE TABLEdid not properly update table statistics for aMyISAMtable with aFULLTEXTindex containing stopwords, so a subsequentANALYZE TABLEwould not recognize the table as having already been analyzed. (Bug #14902) -
The maximum value of
MAX_ROWSwas handled incorrectly on 64-bit systems. (Bug #14155) -
NDB Cluster: A forced cluster shutdown occurred when the management daemon was restarted with a changedconfig.inifile that added an API/SQL node. (Bug #15512) -
Multiple-table update operations were counting updates and not updated rows. As a result, if a row had several updates it was counted several times for the “rows matched” value but updated only once. (Bug #15028)
-
A statement that produced a warning, when fetched via
mysql_stmt_fetch(), did not produce a warning count according tomysql_warning_count(). (Bug #15510) -
Manual manipulation of the
mysql.proctable could cause a server crash. This should not happen, but it is also not supported that the server will notice such changes. (Bug #14233) -
Revised table locking to allow proper assessment of view security. (Bug #11555)
-
Within a stored procedure, inserting with
INSERT ... SELECTinto a table with anAUTO_INCREMENTcolumn did not generate the correct sequence number. (Bug #14304) -
SELECTqueries that began with an opening parenthesis were not being placed in the query cache. (Bug #14652) -
Space truncation was being ignored when inserting into
BINARYorVARBINARYcolumns. Now space truncation results in a warning, or an error in strict mode. (Bug #14299) -
The database-changing code for stored routine handling caused an error-handling problem resulting in a server crash. (Bug #15392)
-
Selecting from a view processed with the temptable algorithm caused a server crash if the query cache was enabled. (Bug #15119)
-
REPAIR TABLES,BACKUP TABLES,RESTORE TABLESwithin a stored procedure caused a server crash. (Bug #13012) -
Creating a view that referenced a stored function that selected from a view caused a crash upon selection from the view. (Bug #15096)
-
ALTER TABLE ... SET DEFAULThad no effect. (Bug #14693) -
Creating a view within a stored procedure could result in an out of memory error or a server crash. (Bug #14885)
-
InnoDB: A race condition allowed two threads to drop a hash index simultaneously. (Bug #14747) -
mysqlhotcopy tried to copy
INFORMATION_SCHEMAtables. (Bug #14610) -
CHAR(... USING ...)andCONVERT(CHAR(...) USING ...), though logically equivalent, could produce different results. (Bug #14146) -
The value of
INFORMATION_SCHEMA.TABLES.TABLE_TYPEsometimes was reported as empty. (Bug #14476) -
InnoDB: Activity on anInnoDBtable caused execution time forSHOW CREATE TABLEfor the table to increase. (Bug #13762) -
DELETEfromCSVtables reported an incorrect rows-affected value. (Bug #13406) -
The server crashed if compiled without any transactional storage engines. (Bug #15047)
-
Declaring a stored routine variable to have a
DEFAULTvalue that referred to a variable of the same name caused a server crash. (For example:DECLARE x INT DEFAULT x) Now theDEFAULTvariable is interpreted as referring to a variable in an outer scope, if there is one. (Bug #14376) -
Perform character set conversion of constant values whenever possible without data loss. (Bug #10446)
-
mysql ignored the
MYSQL_TCP_PORTenvironment variable. (Bug #5792) -
ROW_COUNT()returned an incorrect result afterEXECUTEof a prepared statement. (Bug #14956) -
A
UNIONofDECIMALcolumns could produce incorrect results. (Bug #14216) -
Queries that select records based on comparisons to a set of column could crash the server if there was one index covering the columns, and a set of other non-covering indexes that taken together cover the columns. (Bug #15204)
-
When using an aggregate function to select from a table that has a multiple-column primary key, adding
ORDER BYto the query could produce an incorrect result. (Bug #14920) -
SHOW CREATE TABLEfor a view could fail if the client had locked the view. (Bug #14726) -
For binary string data types, mysqldump --hex-blob produced an illegal output value of
0xrather than''. (Bug #13318) -
Some comparisons for the
IN()operator were inconsistent with equivalent comparisons for the=operator. (Bug #12612) -
In a stored procedure, continuing (via a condition handler) after a failed variable initialization caused a server crash. (Bug #14643)
-
Within a stored procedure, exception handling for
UPDATEstatements that caused a duplicate-key error caused aPackets out of ordererror for the following statement. (Bug #13729) -
Creating a table containing an
ENUMorSETcolumn from within a stored procedure or prepared statement caused a server crash later when executing the procedure or statement. (Bug #14410) -
Selecting from a view used
filesortretrieval when faster retrieval was possible. (Bug #14816) -
Warnings from a previous command were not being reset when fetching from a cursor. (Bug #13524)
-
RESET MASTERfailed to delete log files on Windows. (Bug #13377) -
Using
ORDER BYon a column from a view, when also selecting the column normally, and via an alias, caused a mistakenColumn 'x' in order clause is ambiguouserror. (Bug #14662) -
Invoking a stored procedure within another stored procedure caused the server to crash. (Bug #13549)
-
Stored functions making use of cursors were not replicated. (Bug #14077)
-
CAST(exprAS BINARY(N)) did not pad with 0x00 to a length ofNbytes. (Bug #14255) -
Casting a
FLOATorDOUBLEwhose value was less than1.0E-06toDECIMALwould yield an inappropriate value. (Bug #14268) -
In some cases, a left outer join could yield an invalid result or cause the server to crash, due to a
MYSQL_DATA_TRUNCATEDerror. (Bug #13488) -
For a invalid view definition, selecting from the
INFORMATION_SCHEMA.VIEWStable or usingSHOW CREATE VIEWfailed, making it difficult to determine what part of the definition was invalid. Now the server returns the definition and issues a warning. (Bug #13818) -
The server could misinterpret old trigger definition files created before MySQL 5.0.17. Now they are interpreted correctly, but this takes more time and the server issues a warning that the trigger should be re-created. (Bug #14090)
-
mysqldump --triggers did not account for the SQL mode and could dump trigger definitions with missing whitespace if the
IGNORE_SPACEmode was enabled. (Bug #14554) -
Within a trigger definition the
CURRENT_USER()function evaluated to the user whose actions caused the trigger to be activated. Now that triggers have aDEFINERvalue,CURRENT_USER()evaluates to the trigger definer. (Bug #5861) -
CREATE TABLEtbl_name(...) SELECT ... could crash the server and write invalid data into the.frmfile if theCREATE TABLEandSELECTboth contained a column with the same name. Also, if a default value is specified in the column definition, it is now actually used. (Bug #14480) -
A newline character in a column alias in a view definition caused an error when selecting from the view later. (Bug #13622)
-
mysql_fix_privilege_tables.sqlcontained an erroneous comment that resulted in an error when the file contents were processed. (Bug #14469) -
On Windows, the server could crash during shutdown if both replication threads and normal client connection threads were active. (Re-fix of Bug #11796)
-
The grammar for supporting the
DEFINER = CURRENT_USERclause inCREATE VIEWandALTER VIEWwas incorrect. (Bug #14719) -
Queries on
ARCHIVEtables that used thefilesortsorting method could result in a server crash. (Bug #14433) -
The
mysql_stmt_fetch()C APP function could returnMYSQL_NO_DATAfor aSELECT COUNT(*) FROMtbl_nameWHERE 1 = 0 statement, which should return 1 row. (Bug #14845) -
A
LIMIT-related optimization failed to take into account thatMyISAMtable indexes can be disabled, causing Error 124 when it tried to use such an index. (Bug #14616) -
A server crash resulted from the following sequence of events: 1) With no default database selected, create a stored procedure with the procedure name explicitly qualified with a database name (
CREATE PROCEDUREdb_name.proc_name...). 2) Create another stored procedure with no database name qualifier. 3) ExecuteSHOW PROCEDURE STATUS. (Bug #14569) -
Complex subqueries could cause improper internal query execution environment initialization and crash the server. (Bug #14342)
-
For a table that had been opened with
HANDLER OPEN, issuingOPTIMIZE TABLE,ALTER TABLE, orREPAIR TABLEcaused a server crash. (Bug #14397) -
A server crash could occur if a prepared statement invoked a stored procedure that existed when the statement was prepared but had been dropped and re-created prior to statement execution. (Bug #12329)
-
A server crash could occur if a prepared statement updated a table for which a trigger existed when the statement was prepared but had been dropped prior to statement execution. (Bug #13399)
-
Statements that implicitly commit a transaction are prohibited in stored functions and triggers. An attempt to create a function or trigger containing such a statement produces an error. (Bug #13627) (The originally reported symptom was that a trigger that dropped another trigger could cause a server crash. That problem was fixed by the patch for Bug #13343.)
Functionality added or changed:
-
When trying to run the server with yaSSL enabled, MySQL now tries to open
/dev/randomautomatically if/dev/urandomis not available. (Bug #13164) -
The
read_onlysystem variable no longer applies toTEMPORARYtables. (Bug #4544) -
Due to changes in binary logging, the restrictions on which stored routine creators can be trusted not to create unsafe routines have been lifted for stored procedures (but not stored functions). Consequently, the
log_bin_trust_routine_creatorssystem variable and the corresponding--log-bin-trust-routine-creatorsserver option were renamed tolog_bin_trust_function_creatorsand--log-bin-trust-function-creators. For backward compatibility, the old names are recognized but result in a warning. See Section 17.4, “Binary Logging of Stored Routines and Triggers”. -
Added the
Compressionstatus variable, which indicates whether the client connection uses compression in the client/server protocol. -
In MySQL 5.0.13, syntax for
DEFINERandSQL SECURITYclauses was added to theCREATE VIEWandALTER VIEWstatements, but the clauses had no effect. They now are enabled. They specify the security context to be used when checking access privileges at view invocation time. See Section 19.2, “CREATE VIEWSyntax”, for more information. -
The
InnoDB,NDB,BDB, andARCHIVEstorage engines now support spatial columns. See Chapter 16, Spatial Extensions. -
The
CHECK TABLEstatement now works forARCHIVEtables. -
You must now declare a prefix for an index on any column of any
Geometryclass, the only exception being when the column is aPOINT. (Bug #12267) -
Added a
--hexdumpoption to mysqlbinlog that displays a hex dump of the log in comments. This output can be helpful for replication debugging. -
MySQL 5.0 now supports character set conversion for seven additional
cp950characters into thebig5character set:0xF9D6,0xF9D7,0xF9D8,0xF9D9,0xF9DA,0xF9DB, and0xF9DC. Note: If you move data containing these additional characters to an older MySQL installation which does not support them, you may encounter errors. (Bug #12476) -
When a date column is set
NOT NULLand contains0000-00-00, it will be updated for UPDATE statements that containscolumnnameIS NULL in the WHERE clause. (Bug #14186)
Bugs fixed:
-
When the
DATE_FORMAT()function appeared in both theSELECTandORDER BYclauses of a query but with arguments that differ by case (i.e. %m and %M), incorrect sorting may have occurred. (Bug #14016) -
For
InnoDBtables, using a column prefix for autf8column in a primary key causedCannot find recorderrors when attempting to locate records. (Bug #14056) -
NDB Cluster: A memory leak occurred when performing ordered index scans using indexes a columns larger than 32 bytes, which would eventually lead to the forced shutdown of all mysqld server processes used with the cluster. (Bug #13078) -
InnoDB: Largeinnobase_buffer_pool_sizeandinnobase_log_file_sizevalues were displayed incorrectly on 64-bit systems. (Bug #12701) -
InnoDB: When dropping and adding aPRIMARY KEY, if a loose index scan using only the second part of multiple-part index was chosen, incorrect keys were created and an endless loop resulted. (Bug #13293) -
NDB Cluster: Repeated transactions using unique index lookups could cause a memory leak leading to error 288,Out of index operations in transaction coordinator. (Bug #14199) -
Selecting from a table in both an outer query and a subquery could cause a server crash. (Bug #14482)
-
SHOW CREATE TABLEdid not display theCONNECTIONstring forFEDERATEDtables. (Bug #13724) -
For some stored functions dumped by mysqldump --routines, the function definition could not be reloaded later due to a parsing error. (Bug #14723)
-
For a
MyISAMtable originally created in MySQL 4.1,INSERT DELAYEDcould cause a server crash. (Bug #13707) -
The
--exit-info=65536option conflicted with--temp-pooland caused problems with the server's use of temporary files. Now--temp-poolis ignored if--exit-info=65536is specified. (Bug #9551) -
ORDER BY DESCwithin theGROUP_CONCAT()function was not honored when used in a view. (Bug #14466) -
A comparison with an invalid date (such as
WHEREcol_name> '2005-09-31') caused any index oncol_namenot to be used and a string comparison for each row, resulting in slow performance. (Bug #14093) -
Within stored routines,
REPLACE()could return an empty string (rather than the original string) when no replacement was done, andIFNULL()could return garbage results. (Bug #13941) -
Inserts of too-large
DECIMALvalues were handled inconsistently (sometimes set to the maximumDECIMALvalue, sometimes set to 0). (Bug #13573) -
Executing
REPAIR TABLE,ANALYZE TABLE, orOPTIMIZE TABLEon a view for which an underlying table had been dropped caused a server crash. (Bug #14540) -
A prepared statement that selected from a view processed using the merge algorithm could crash on the second execution. (Bug #14026)
-
Deletes from a
CSVtable could cause table corruption. (Bug #14672) -
An update of a
CSVtable could cause a server crash. (Bug #13894) -
For queries with nested outer joins, the optimizer could choose join orders that query execution could not handle. The fix is that now the optimizer avoids choosing such join orders. (Bug #13126)
-
Starting mysqld with the
--skip-innodband--default-storage-engine=innodb(or--default-table-type=innodbcaused a server crash. (Bug #9815, re-fix of bug from 5.0.5) -
mysqlmanager did not start up correctly on Windows 2003. (Bug #14537)
-
The parser did not correctly recognize wildcards in the host part of the
DEFINERuser inCREATE VIEWstatements. (Bug #14256) -
Memory corruption and a server crash could be caused by statements that used a cursor and generated a result set larger than
max_heap_table_size. (Bug #14210) -
mysqld_safe did not correctly start the
-maxversion of the server (if it was present) if the--lediroption was given. (Bug #13774) -
The mysql parser did not properly strip the delimiter from input lines less than nine characters long. For example, this could cause
USE abc;to result in anUnknown database: abc;error. (Bug #14358) -
Statements of the form
CREATE TABLE ... SELECT ...that created a column with a multi-byte character set could incorrectly calculate the maximum length of the column, resulting in aSpecified key was too longerror. (Bug #14139) -
Some updatable views could not be updated. (Bug #14027)
-
Running
OPTIMIZE TABLEand other data-updating statements concurrently on anInnoDBtable could cause a crash or the following warnings in the error log:Warning: Found locks from different threads in write: enter write_lock,Warning: Found locks from different threads in write: start of release lock. (Bug #11704) -
Indexes for
BDBtables were being limited incorrectly to 255 bytes. (Bug #14381) -
Use of
col_name= VALUES(col_name) in theON DUPLICATE KEY UPDATEclause of anINSERTstatement failed with anColumn 'col_name' in field list is ambiguous error. (Bug #13392) -
On Windows, the server was not ignoring hidden or system directories that Windows may have created in the data directory, and would treat them as available databases. (Bug #4375)
-
mysqldump could not dump views if the
-xoption was given. (Bug #12838) -
mysqlimport now issues a
SET @@character_set_database = binarystatement before loading data so that a file containing mixed character sets (columns with different character sets) can be loaded properly. (Bug #12123) -
Use of the deprecated
--sql-bin-update-sameoption caused a server crash. (Bug #12974) -
Maximum values were handled incorrectly for command-line options of type
GET_LL. (Bug #12925) -
For a user that has the
SELECTprivilege on a view, the server erroneously was also requiring the user to have theEXECUTEprivilege at view execution time for stored functions used in the view definition. (Bug #9505) -
Use of
WITH ROLLUP PROCEDURE ANALYSE()could hang the server. (Bug #14138) -
TIMEDIFF(),ADDTIME(), andSTR_TO_DATE()were not reporting that they could returnNULL, so functions that invoked them might misinterpret their results. (Bug #14009) -
The example configuration files supplied with MySQL distributions listed the
thread_cache_sizevariable asthread_cache. (Bug #13811) -
Using
ALTER TABLEto add an index could fail if the operation ran out of temporary file space. Now it automatically makes a second attempt that uses a slower method but no temporary file. In this case, problems that occurred during the first attempt can be displayed withSHOW WARNINGS. (Bug #12166) -
The input polling loop for Instance Manager did not sleep properly. Instance Manager used up too much CPU as a result. (Bug #14388)
-
Trying to take the logarithm of a negative value is now handled in the same fashion as division by zero. That is, it produces a warning when
ERROR_FOR_DIVISION_BY_ZEROis set, and an error in strict mode. (Bug #13820) -
LOAD DATA INFILEwould not accept the same character for both theESCAPED BYand theENCLOSED BYclauses. (Bug #11203) -
The value of
Last_query_costwas not updated for queries served from the query cache. (Bug #10303) -
TIMESTAMPDIFF()returned an incorrect result if one argument but not the other was a leap year and a date was from March or later. (Bug #13534) -
The server incorrectly accepted column definitions of the form
DECIMAL(0,D) forDless than 11. (Bug #13667) -
The displayed value for the
CHARACTER_MAXIMUM_LENGTHcolumn in theINFORMATION_SCHEMA.COLUMNStable was not adjusted for multi-byte character sets. (Bug #14290) -
A bugfix in MySQL 5.0.15 caused the displayed values for the
CHARACTER_MAXIMUM_LENGTHandCHARACTER_OCTET_LENGTHcolumns in theINFORMATION_SCHEMA.COLUMNStable to be reversed. (Bug #14207) -
On Windows, the value of
character_sets_dirinSHOW VARIABLESoutput was displayed inconsistently (using both ‘/’ and ‘\’ as pathname component separators). (Bug #14137) -
Subqueries in the
FROMclause failed if the current database wasINFORMATION_SCHEMA. (Bug #14089) -
Corrected a parser precedence problem that resulted in an
Unknown column ... in 'on clause'error for some joins. (Bug #13832) -
For
LIKE ... ESCAPE, an escape sequence longer than one character was accepted as valid. Now the sequence must be empty or one character long. If theNO_BACKSLASH_ESCAPESSQL mode is enabled, the sequence must be one character long. (Bug #12595) -
SELECT DISTINCT CHAR(col_name) returned incorrect results afterSET NAMES utf8. (Bug #13233) -
A prepared statement failed with
Illegal mix of collationsif the client character set wasutf8and the statement used a table that had a character set oflatin1. (Bug #12371) -
Inserting a new row into an
InnoDBtable could causeDATETIMEvalues already stored in the table to change. (Bug #13900) -
The default value of
query_prealloc_sizewas set to 8192, lower than its minimum of 16384. The minimum has been lowered to 8192. (Bug #13334) -
The server did not take character set into account in checking the width of the
mysql.user.Passwordcolumn. As a result, it could incorrectly generate long password hashes even if the column was not long enough to hold them. (Bug #13064) -
Inserting
cp932strings into aVARCHARcolumn caused a server crash rather than string truncation if the string was longer than the column definition. (Bug #12547) -
Two threads that were creating triggers on an
InnoDBtable at the same time could deadlock. (Bug #12739) -
mysqladmin and mysqldump would hang on SCO OpenServer. (Bug #13238)
-
Where one stored procedure called another stored procedure: If the second stored procedure generated an exception, the exception was not caught by the calling stored procedure. For example, if stored procedure
Aused anEXITstatement to handle an exception, subsequent statements inAwould be executed regardless whenAwas called by another stored procedureB, even if an exception that should have been handled by theEXITwas generated inA. (Bug #7049) -
Trying to create a stored routine with no database selected would crash the server. (Bug #13514, Bug #13587)
-
Specifying
--default-character-set=cp-932for mysqld would cause SQL scripts containing comments written using that character set to fail with a syntax error. (Bug #13487) -
Trying to compile the server using the
--without-geometryoption caused the build to fail. (Bug #12991)
Functionality added or changed:
-
Warning: Incompatible change. For
BINARYcolumns, the pad value and how it is handled has changed. The pad value for inserts now is0x00rather than space, and there is no stripping of the pad value for selects. For details, see Section 11.4.2, “TheBINARYandVARBINARYTypes”. -
Warning: Incompatible change. The
CHAR()function now returns a binary string rather than a string in the connection character set. An optionalUSINGcharsetclause may be used to produce a result in a specific character set instead. Also, arguments larger than 256 produce multiple characters. They are no longer interpreted modulo 256 to produce a single character each. These changes may cause some incompatibilities, as noted in Section 2.11.2, “Upgrading from MySQL 4.1 to 5.0”. -
NDB Cluster: The perror utility included with theMySQL-ServerRPM now provides support for the--ndboption, and so can be used to obtain error message text for MySQL Cluster error codes. (Bug #13740) -
NDB Cluster: The ndb_mgm client now reports node startup phases automatically. (Bug #16197) -
When executing single-table
UPDATEorDELETEqueries containing anORDER BY ... LIMITNclause, but not having anyWHEREclause, MySQL can now take advantage of an index to read the firstNrows in the ordering specified in the query. If an index is used, only the firstNrecords will be read, as opposed to scanning the entire table. (Bug #12915) -
The
MySQL-serverRPM now explicitly assigns themysqlsystem user to themysqluser group during the postinstallation process. This corrects an issue with upgrading the server on some Linux distributions whereby a previously existingmysqluser was not changed to themysqlgroup, resulting in wrong groups for files created following the installation. (Bug #12823) -
Added the
--tz-utcoption to mysqldump. This option addsSET TIME_ZONE='+00:00'to the dump file so thatTIMESTAMPcolumns can be dumped and reloaded between servers in different time zones and protected from changes due to daylight saving time. (Bug #13052) -
When declaring a local variable (or parameter) named
passwordorname, and setting it withSET(for example,SET password = ''), the new error messageERROR 42000: Variable 'nnn' must be quoted with `...`, or renamedis returned (where 'nnn' is 'password' or 'names'). This means there is a syntax conflict with special sentences likeSET PASSWORD = PASSWORD(...)(for setting a user's password) andset names default(for setting charset and collation).This must be resolved either by quoting the variable name:
SET `password` = ..., which will set the local variable`password`, or by renaming the variable to something else (if setting the user's password is the desired effect). -
The following statements now cause an implicit
COMMIT:-
CREATE VIEW -
ALTER VIEW -
DROP VIEW -
CREATE TRIGGER -
DROP TRIGGER -
CREATE USER -
RENAME USER -
DROP USER
(Bug #13343)
-
-
NDBCluster: A number of new or improved error messages have been implemented in this release in order to provide better and more accurate diagnostic information regarding cluster configuration issues and problems. (Bug #11739, Bug #11749, Bug #12044, Bug #12786, Bug #13197) -
NDBCluster: A new “smart” node allocation algorithm means that it is no longer necessary to use sequential IDs for cluster nodes, and that nodes not explicitly assigned IDs should now have IDs allocated automatically in most cases. In practical terms, this means that it is now possible to assign a set of node IDs such as1,2,4,5without an error being generated due to the missing3. (Bug #13009)
Bugs fixed:
-
Issuing
STOP SLAVEafter having acquired a global read lock withFLUSH TABLES WITH READ LOCKcaused a deadlock. NowSTOP SLAVEis generates an error in such circumstances. (Bug #10942) -
An expression in an
ORDER BYclause failed withUnknown column 'col_name' in 'order clause' if the expression referred to a column alias. (Bug #11694) -
mysqldump could not dump views. (Bug #14061)
-
Using an undefined variable in an
IForSETclause inside a stored routine produced an incorrectunknown column ... in 'order clause'error message. (Bug #13037) -
Trying to create a view dynamically using a prepared statement within a stored procedure failed with error 1295. (Bug #13095)
-
mysqldump --triggers did not quote identifiers properly if the
--compatibleoption was given, so the dump output could not be reloaded. (Bug #13146) -
Character set conversion was not being done for
FIND_IN_SET(). (Bug #13751) -
CAST(1E+300 TO SIGNED INT)produced an incorrect result on little-endian machines. (Bug #13344) -
Corrected a memory-copying problem for
big5values when using icc compiler on Linux IA-64 systems. (Bug #10836) -
On BSD systems, the system
crypt()call could return an error for some salt values. The error was not handled, resulting in a server crash. (Bug #13619) -
Character set file parsing during
mysql_real_connect()read past the end of a memory buffer. (Bug #6413) -
InnoDB: Queries that were executed using anindex_mergeunion or intersection could produce incorrect results if the underlying table used theInnoDBstorage engine and had a primary key containingVARCHARmembers. (Bug #13484) -
CREATE DEFINER=... VIEW ...caused the server to crash when run with--skip-grant-tables. (Bug #13504) -
The
--interactive-timeoutand--slave-net-timeoutoptions for mysqld were not being obeyed on Mac OS X and other BSD-based platforms. (Bug #8731) -
Queries of the form
(SELECT ...) ORDER BY ...were being treated as aUNION. This improperly resulted in only distinct values being returned (becauseUNIONby default eliminates duplicate results). Also, references to column aliases inORDER BYclauses following parenthesizedSELECTstatements were not resolved properly. (Bug #7672) -
If special characters such as
'_','%', or the escape character were included within the prefix of a column index,LIKEpattern matching on the indexed column did not return the correct result. (Bug #13046, Bug #13919) -
An
UPDATEquery using a join would be executed incorrectly on a replication slave. (Bug #12618) -
Server crashed during a
SELECTstatement, writing a message like this to the error log:InnoDB: Error: MySQL is trying to perform a SELECT InnoDB: but it has not locked any tables in ::external_lock()!
(Bug #12736)
-
NDBCluster: ndb_mgmd would allow a node to be stopped or restarted while another node was still starting up, which could crash the cluster. It should now not be possible to issue a node stop or restart while a different node is still restarting, and the cluster management client issues an error if an attempt is made to do so. (Bug #13461) -
NDBCluster: Placing multiple[TCP DEFAULT]sections in the clusterconfig.inifile crashed ndb_mgmd. (The ndb_mgmd process now exits gracefully with an appropriate error message instead.) (Bug #13611) -
NDBCluster: Trying to run ndbd as systemrootwhen connecting to a mysqld process running as themysqlsystem user via SHM caused the ndbd process to crash. (ndbd should now exit gracefully with an appropriate error message instead.) (Bug #9249) -
Server may over-allocate memory when performing a
FULLTEXTsearch for stopwords only. (Bug #13582) -
Queries that use indexes in normal
SELECTstatements may cause range scans inVIEWs. (Bug #13327) -
When calling a stored procedure with the syntax
CALLschema.procedurenameand no default schema selected,ERROR 1046was displayed after the procedure returned. (Bug #13616) -
With
--log-slave-updatesExec_master_log_posof SQL thread lagged IO (Bug #13023) -
SHOW CREATE TABLEdid not display anyFOREIGN KEYclauses if a temporary file could not be created. NowSHOW CREATE TABLEdisplays an error message in an SQL comment if this occurs. (Bug #13002) -
A column in the
ONcondition of a join that referenced a table in a nested join could not be resolved if the nested join was a right join. (Bug #13597) -
A qualified reference to a view column in the
HAVINGclause could not be resolved. (Bug #13410) -
comp_err did not detect when multiple error messages for a language were given for an error symbol. (Bug #13071)
-
For XA transaction IDs (
gtrid.bqual.formatID), uniqueness is supposed to be assessed based ongtridandbqual. MySQL was also includingformatIDin the uniqueness check. (Bug #13143) -
Local (non-XA) and XA transactions are supposed to be mutually exclusive within a given client connection, but this prohibition was not always enforced. (Bug #12935)
-
mysqlcheck
--all-databases--analyze--optimizefailed because it also tried to analyze and optimize theINFORMATION_SCHEMAtables which it can't. (Bug #13783) -
SELECT * INTO OUTFILE ... FROM INFORMATION_SCHEMA.schematafailed with anAccess deniederror. (Bug #13202) -
A table or view named Ç (C-cedilla) couldn't be dropped. (Bug #13145)
-
Tests containing
SHOW TABLE STATUSorINFORMATION_SCHEMAfailed on opnsrv6c. (Bug, #14064, Bug #14065)
Functionality added or changed:
The limit of 255 characters on the input buffer for mysql on Windows has been lifted. The exact limit depends on what the system allows, but can be up to 64K characters. A typical limit is 16K characters. (Bug #12929)
Re-enabled the --delayed-inserts option for
mysqldump, which now checks for each table
dumped whether its storage engine supports
DELAYED inserts. (Bug #7815)
Added the myisam_stats_method, which controls
whether NULL values in indexes are considered
the same or different when collecting statistics for
MyISAM tables. This influences the query
optimizer as described in
Section 7.4.7, “MyISAM Index Statistics Collection”. (Bug #12232)
-
When an
InnoDBforeign key constraint is violated, the error message now indicates which table, column, and constraint names are involved. (Bug #3443) -
Configure-time checking for the availability of multi-byte macros and functions in the bundled
readlinelibrary. This improves handling of multi-byte character sets in the mysql client. (Bug #3982) -
The
CHAR()function now takes into account the character set and collation given by thecharacter_set_connectionandcollation_connectionsystem variables. For an argumentntoCHAR(), the result isnmod 256 for single-byte character sets. For multi-byte character sets,nmust be a valid code point in the character set. Also, the result string fromCHAR()is checked for well-formedness. For invalid arguments, or a result that is not well-formed, MySQL generates a warning (or, in strict SQL mode, an error). (Bug #10504) -
RENAME TABLEnow works for views as well, as long as you do not try to rename a view into a different database. (Bug #5508) -
Multiple-table
UPDATEandDELETEstatements that do not affect any rows are now written to the binary log and will replicate. (Bug #13348, Bug #12844) -
Range scans can now be performed for queries on VIEWs such as
column IN (<constants>)andcolumn BETWEEN ConstantA AND ConstantB. (Bug #13317)
Bugs fixed:
-
NDBCluster: A trigger updating the value of anAUTO_INCREMENTcolumn in a Cluster table would insert an error code rather than the expected value into the column. (Bug #13961) -
NDBCluster: When performing a delete of a great many (tens of thousands of) rows at once from a Cluster table, an improperly dereferenced pointer could cause the mysqld process to crash. (Bug #9282) -
CHECKSUM TABLElockedInnoDBtables and did not use a consistent read. (Bug #12669) -
The
--skip-innodb-doublewriteoption disables use of theInnoDBdoublewrite buffer. However, having this option in effect when creating a new MySQL installation prevented the buffer from even being created, resulting in a server crash later. (Bug #13367) -
MySQL programs in binary distributions for Solaris 8/9/10 x86 systems would not run on Pentium III machines. (Bug #6772)
-
When
SELECT ... FOR UPDATEorSELECT ... LOCK IN SHARE MODEfor anInnoDBtable were executed from within a stored function or a trigger, they were converted to a non-locking consistent read. (Bug #11238) -
NDB Cluster: If ndb_restore could not find a free mysqld process, it crashed. (Bug #13512) -
NDB Cluster: Receipt of severalenter single user modecommands by multiple ndb_mgmd processes within a short period of time resulted in cluster shutdown. (Bug #13053) -
NDB Cluster: Multiple ndb_mgmd processes in a cluster would not know each other's IP addresses. (Bug #12037) -
NDB Cluster: With two mgmd processes in a cluster, ndb_mgmd output forSHOWwould display the same IP address for both processes, even when they were on different hosts. (Bug #11595) -
NDB Cluster: Queries onNDBtables that are executed usingindex_merge/union orindex_merge/intersection could produce incorrect results. (Bug #13081) -
The
--replicate-rewrite-dband--replicate-do-tableoptions did not work for statements in which tables were aliased to names other than those listed by the options. (Bug #11139) -
After running configure with the
--with-embedded-privilege-controloption, the embedded server failed to build. (Bug #13501) -
Nested handlers within stored procedures didn't work. (Bug #6127)
-
The optimizer chose a less efficient execution plan for
col_nameBETWEENconstANDconstthan forcol_name=const, even though the two expressions are logically equivalent. Now the optimizer can use therefaccess method for both expressions. (Bug #13455) -
Incorrect creation of
DECIMALlocal variables in a stored procedure could cause a server crash. (Bug #12589) -
Queries against a
MERGEtable that has a composite index could produce incorrect results. (Bug #9112) -
The server was not rejecting
FLOAT(M,D) orDOUBLE(M,D) columns specifications whenMwas less thanD. (Bug #12694) -
After running configure with the
--without-serveroption, the distribution failed to build. (Bug #11680, Bug #13550) -
Joins nested under
NATURALorUSINGjoins were sometimes not initialized properly, causing a server crash. (Bug #13545) -
Locking a view with the query cache enabled and
query_cache_wlock_invalidateenabled could cause a server crash. (Bug #13424) -
A
HAVINGclause that references an unqualified view column name could crash the server. (Bug #13411) -
Comparisons involving row constructors containing constants could cause a server crash. (Bug #13356)
-
NDB Cluster:LOAD DATA INFILEwith a large data file failed. (Bug #10694) -
NDB Cluster: Adding an index to a table with a large number of columns (more then 100) crashed the storage node. (Bug #13316) -
Calling the
FORMAT()function with aDECIMALcolumn value caused a server crash when the value wasNULL. (Bug #13361) -
Aggregate functions sometimes incorrectly were allowed in the
WHEREclause ofUPDATEandDELETEstatements. (Bug #13180) -
It was possible to create a view that executed a stored function for which you did not have the
EXECUTEprivilege. (Bug #12812) -
BITcolumns and following columns inNDBtables were corrupt when dumped by mysqldump. (Bug #13152) -
NATURALjoins and joins withUSINGagainst a view could returnNULLrather than the correct value. (Bug #13127) -
Use of a user-defined function within the
HAVINGclause of a query resulted in anUnknown columnerror. (Bug #11553) -
For queries for which the optimizer determined a join type of “Range checked for each record” (as shown by
EXPLAIN, the query sometimes could cause a server crash, depending on the data distribution. (Bug #12291) -
For queries with
DISTINCTandWITH ROLLUP, theDISTINCTshould be applied after the rollup operation, but was not always. (Bug #12887) -
The server crashed when processing a view that invoked the
CONVERT_TZ()function. (Bug #11416) -
Shared-memory connections were not working on Windows. (Bug #12723)
Functionality added or changed:
-
The syntax for
CREATE VIEWandALTER VIEWstatements now includesDEFINERandSQL SECURITYclauses for specifying the security context to be used when checking access privileges at view invocation time. (The syntax is present in 5.0.13, but these clauses have no effect until 5.0.16.) See Section 19.2, “CREATE VIEWSyntax”, for more information. -
The
--hex-dumpoption for mysqldump now also applies toBITcolumns. -
Added a
--routinesoption for mysqldump that enables dumping of stored routines. (Bug #9056) -
The connection string for
FEDERATEDtables now is specified using aCONNECTIONtable option rather than aCOMMENTtable option. -
Better detection of connection timeout for replication servers on Windows allows elimination of extraneous
Lost connectionerrors in the error log. (Bug #5588) -
The counters for the
Key_read_requests,Key_reads,Key_write_requests, andKey_writesstatus variables were changed fromunsigned longtounsigned longlongto accommodate larger values before the variables roll over and restart from 0. (Bug #12920) -
The restriction on the use of
PREPARE,EXECUTE, andDEALLOCATE PREPAREwithin stored procedures was lifted. The restriction still applies to stored functions and triggers. (Bug #10975, Bug #7115, Bug #10605) -
A new command line argument was added to mysqld to ignore client character set information sent during handshake, and use server side settings instead, to reproduce 4.0 behavior (Bug #9948):
mysqld --skip-character-set-client-handshake
-
OPTIMIZE TABLEandHANDLERnow are prohibited in stored procedures and functions and in triggers. (Bug #12953, Bug #12995) -
InnoDB: TheTRUNCATE TABLEstatement forInnoDBtables always resets the counter for anAUTO_INCREMENTcolumn now, regardless of whether there is a foreign key constraint on the table. (Beginning with 5.0.3,TRUNCATE TABLEreset the counter, but only if there was no such constraint.) (Bug #11946) -
The
LEAST()andGREATEST()functions used to returnNULLonly if all arguments wereNULL. Now they returnNULLif any argument isNULL, the same as Oracle. (Bug #12791) -
Two new collations have been added for Esperanto:
utf8_esperanto_cianducs2_esperanto_ci. -
Reorder network startup to come after all other initialization, particularly storage engine startup which can take a long time. This also prevents MySQL from being run on a privileged port (any port under 1024) unless run as the root user. (Bug #11707)
-
The Windows binary packages are now compiled with the Microsoft Visual Studio 2003 compiler instead of Microsoft Visual C++ 6.0.
-
The binaries compiled with the Intel icc compiler are now built using icc 9.0 instead of icc 8.1. You will have to install new versions of the Intel icc runtime libraries, which are available from here: ( http://dev.mysql.com/downloads/os-linux.html)
Bugs fixed:
-
Incompatible change: A lock wait timeout caused
InnoDBto roll back the entire current transaction. Now it rolls back only the most recent SQL statement. (Bug #12308) -
The
FEDERATEDstorage engine does not supportALTER TABLE, but no appropriate error message was issued. (Bug #13108) -
mysqldump did not dump triggers properly. (Bug #12597)
-
NDBCluster: The average row size for Cluster tables was being calculated incorrectly. This affected the values shown for theData_lengthandAvg_row_lengthcolumns in the output generated bySHOW TABLE STATUSas well as the values for thedata_lengthanddata_length/table_rowscolumns shown in theTABLEStable of theINFORMATION_SCHEMAdatabase with respect to Cluster tables (tables using other storage engines were not affected by this bug). (Bug #9896) -
Within a stored procedure, fetching a large number of rows in a loop using a cursor could result in a server crash or an out of memory error. Also, values inserted within a stored procedure using a cursor were interpreted as
latin1even if character set variables had been set to a different character set. (Bug #6513, Bug #9819) -
For a server compiled with yaSSL, clients that used MySQL Connector/J were not able to establish SSH connections. (Bug #13029)
-
When used in view definitions,
DAYNAME(expr),DAYOFWEEK(expr),WEEKDAY(expr) were incorrectly treated as though the expression wasTO_DAYS(expr) orTO_DAYS(TO_DAYS(expr)). (Bug #13000) -
Incorrect implicit nesting of joins caused the parser to fail on queries of the form
SELECT ... FROM t1 JOIN t2 JOIN t3 ON t1.t1col = t3.t3colwith anUnknown column 't1.t1col' in 'on clause'error. (Bug #12943) -
NDB: A cluster shutdown following the crash of a data node would fail to terminate the remaining node processes, even though ndb_mgm showed the shutdown request as having been completed. (Bug #10938, Bug #9996, Bug #11623) -
A column that can be
NULLwas not handled properly forWITH ROLLUPin a subquery or view. (Bug #12885) -
Within a transaction, the following statements now cause an implicit commit:
CREATE FUNCTION,DROP FUNCTION,DROP PROCEDURE,ALTER FUNCTION,ALTER PROCEDURE,CREATE PROCEDURE. This corrects a problem where these statements followed byROLLBACKmight not be replicated properly. (Bug #12870) -
Simultaneous execution of DML statements and
CREATE TRIGGERorDROP TRIGGERstatements on the same table could cause server crashes or errors. (Bug #12704) -
If a stored function invoked from a
SELECTfailed with an error, it could cause the client connection to be dropped. Now such errors generate warnings instead so as not to interrupt theSELECT. (Bug #12379) -
A concurrency problem for
CREATE ... SELECTcould cause a server crash. (Bug #12845) -
The server incorrectly generated an
Unknown tableerror message when for attempts to drop tables in theINFORMATION_SCHEMAdatabase. Now it issues anAccess deniedmessage. (Bug #9846) -
The server allowed privileges to be granted explicitly for the
INFORMATION_SCHEMAdatabase. Such privileges are always implicit and should not be grantable. (Bug #10734) -
The server allowed
TEMPORARYtables and stored procedures to be created in theINFORMATION_SCHEMAdatabase. (Bug #9683, Bug #10708) -
The server failed to disallow
SET AUTOCOMMITin stored functions and triggers. It is allowed to change the value ofAUTOCOMMITin stored procedures, but a runtime error might occur if the procedure is invoked from a stored function or trigger. (Bug #12712) -
Using an
INOUTparameter with aDECIMALdata type in a stored procedure caused a server crash. (Bug #12979) -
Performing an
IS NULLcheck on theMIN()orMAX()of an indexed column in a complex query could produce incorrect results. (Bug #12695) -
The
mysql.serverscript contained incorrect path for thelibexecdirectory. (Bug #12550) -
The NDB
START BACKUPcommand could be interrupted by aSHOWcommand. (Bug #13054) -
The
LIKE ... ESCAPEsyntax produced invalid results when escape character was larger than one byte. (Bug #12611) -
A client connection thread cleanup problem caused the server to crash when closing the connection if the binary log was enabled. (Bug #12517)
-
Using
ASto rename a column selected from a view in a subquery made it not possible to refer to that column in the outer query. (Bug #12993) -
The
character_set_systemsystem variable could not be selected withSELECT @@character_set_system. (Bug #11775) -
A view-creation statement of the form
CREATE VIEWnameAS SELECT ... FROMtbl_nameASnamefailed with aNot unique table/alias: 'name' error. (Bug #6808) -
UNION [DISTINCT]was not removing all duplicates for multi-byte character values. (Bug #12891) -
Multiplying a
DECIMALvalue within a loop in a stored routine could incorrectly result in a value ofNULL. (Bug #12938) -
mysql and mysqldump were ignoring the
--defaults-extra-fileoption. (Bug #12917) -
Columns named in the
USING()clause ofJOIN ... USING()were incorrectly resolved in case-sensitive fashion. (Bug #13067) -
Local variables in stored routines were not always initialized correctly. (Bug #13133)
-
SHOW FIELDS FROMschemaname.viewnamecaused error 1046 when no default schema was set. (Bug #12905) -
The value of
character_set_resultscould be set toNULL, but returned the string"NULL"when retrieved. (Bug #12363) -
InnoDB: Limit recursion depth to 200 in deadlock detection to avoid running out of stack space. (Bug #12588) -
GROUP_CONCAT()ignored an empty string if it was the first value to occur in the result. (Bug #12863) -
Outer join elimination was erroneously applied for some queries that used a
NOT BETWEENcondition, anIN(value_list) condition, or anIF()condition. (Bug #12101, Bug #12102) -
SHOW FIELDStruncated theTYPEcolumn to 40 characters. (Bug #7142) -
Use of
PREPAREandEXECUTEwith a statement that selected from a view in a subquery could cause a server crash. (Bug #12651) -
On HP-UX 11.x (PA-RISC), the
-Loption caused mysqlimport to crash. (Bug #12958) -
If the binary log is enabled, execution of a stored procedure that modifies table data and uses user variables could cause a server crash or incorrect information to be written to the binary log. (Bug #12637)
-
Queries with subqueries, where the inner subquery uses the
rangeorindex_mergeaccess method, could return incorrect results. (Bug #12720) -
After changing the character set with
SET CHARACTER SET, the result of theGROUP_CONCAT()function was not converted to the proper character set. (Bug #12829) -
A bug introduced in MySQL 5.0.12 caused
SHOW TABLE STATUSto display anAuto_incrementvalue of 0 forInnoDBtables. (Bug #12973) -
Foreign keys were not properly enforced in
TEMPORARYtables. Foreign keys now are disallowed inTEMPORARYtables. (Bug #12084) -
Replication of
LOAD DATA INFILEfailed between systems that use different pathname syntax (such as delimiter characters). (Bug #11815) -
Within a stored procedure, a server crash was caused by assigning to a
VARCHAR INOUTparameter the value of an expression that included the variable itself. (For example,SET c = c.) (Bug #12849) -
SELECT ... JOIN ... ON ... JOIN ... USINGcaused a server crash. (Bug #12977) -
Using
GROUP BYwhen selecting from a view in some cases could cause incorrect results to be returned. (Bug #12922) -
myisampack did not properly pack
BLOBvalues larger than 224 bytes. (Bug #4214) -
Incorrect results could be returned from a view processed using a temporary table. (Bug #12941)
-
The server crashed when one thread resized the query cache while another thread was using it. (Bug #12848)
-
mysqld_multi now quotes arguments on command lines that it constructs to avoid problems with arguments that contain shell metacharacters. (Bug #11280)
-
InnoDB: A consistent read could return inconsistent results due to a bug introduced in MySQL 5.0.5. (Bug #12947) -
Deadlock occurred when several account management statements were run (particularly between
FLUSH PRIVILEGES/SET PASSWORDandGRANT/REVOKEstatements). (Bug #12423) -
The Windows installer made a change to one of the
mysql.proctable files, causing stored routine functionality to be compromised. The Windows installer now never overwrites files in the MySQL data directory. During an upgrade from one version to another, a file in the data directory will not be overwritten even if it has not been modified since it was put there by an older installer.If you have already lost access to stored routines because of this problem, you can get them back using the following procedure:
-
Stop the server.
-
In the
mysql\datadirectory under your MySQL installation directory, and replace theproc.frmfile with corresponding file from the version of MySQL that you were using before you upgraded. -
Start the server
-
Start the mysql command-line client (use the
rootaccount or another account that has full database privileges) and execute themysql_fix_privilege_tables.sqlscript that upgrades the grant tables to the current structure. Instructions for doing this are given in Section 5.6.1, “mysql_fix_privilege_tables — Upgrade MySQL System Tables”.
After this, all stored routine functionality should work. (Bug #12820)
-
-
On Windows, the server was preventing tables from being created if the table name was a prefix of a forbidden name. For example,
nulis a forbidden name because it's the same as a Windows device name, but a table with the name ofnornuwas being forbidden as well. (Bug #12325) -
InnoDBwas too permissive withLOCK TABLE ... READ LOCALand allowed new inserts into the table. NowREAD LOCALis equivalent toREADforInnoDB. This will cause slightly more locking in mysqldump, but makesInnoDBtable dumps consistent withMyISAMtable dumps. (Bug #12410) -
Use of the mysql client
HELPcommand from within a stored routine caused a “packets out of order” error and a lost connection. NowHELPis detected and disallowed within stored routines. (Bug #12490) -
Use of yaSSL for a secure client connection caused
LOAD DATA LOCAL INFILEto fail. (Bug #11286) -
SHOW CREATE PROCEDUREandSHOW CREATE FUNCTIONno longer qualify the routine name with the database name, for consistency with the behavior ofSHOW CREATE TABLE. (Bug #10362) -
A
UNIONof longutf8VARCHARcolumns was sometimes returned as a column with aLONGTEXTdata type rather thanVARCHAR. This could prevent such queries from working at all if selected into aMEMORYtable because theMEMORYstorage engine does not support theTEXTdata types. (Bug #12537) -
If a client has opened an
InnoDBtable for which the.ibdfile is missing,InnoDBwould not honor aDROP TABLEstatement for the table. (Bug #12852) -
ALTER TABLE ... DISCARD TABLESPACEfor non-InnoDBtable caused the client to lose the connection. (The server was not returning the error properly.) (Bug #12207) -
DO IFNULL(NULL, NULL)andSELECT CAST(IFNULL(NULL, NULL) AS DECIMAL)caused a server crash. (Bug #12841) -
When using a cursor, a
SELECTstatement that uses aGROUP BYclause could return incorrect results. (Bug #11904) -
The
SYSDATE()function now returns the time at which it was invoked. In particular, within a stored routine or trigger,SYSDATE()returns the time at which it executes, not the time at which the stored routine or triggering statement began to execute. (Bug #12480) -
CREATE VIEWinside a stored procedure caused a server crash if the table underlying the view had been deleted. (Bug #12468) -
A memory leak resulting from repeated
SELECT ... INTOstatements inside a stored procedure could cause the server to crash. (Bug #11333)
Functionality added or changed:
-
Incompatible change: Beginning with MySQL 5.0.12, natural joins and joins with
USING, including outer join variants, are processed according to the SQL:2003 standard. The changes include elimination of redundant output columns forNATURALjoins and joins specified with aUSINGclause and proper ordering of output columns. (Bug #6136, Bug #6276, Bug #6489, Bug #6495, Bug #6558, Bug #9067, Bug #9978, Bug #10428, Bug #10646, Bug #10972.) The precedence of the comma operator also now is lower compared toJOIN. (Bug #4789, Bug #12065, Bug #13551.)These changes make MySQL more compliant with standard SQL. However, they can result in different output columns for some joins. Also, some queries that appeared to work correctly prior to 5.0.12 must be rewritten to comply with the standard. For details about the scope of the changes and examples that show what query rewrites are necessary, see Section 13.2.7.1, “
JOINSyntax”. -
Recursive triggers are detected and disallowed. Also, within a stored function or trigger, it is not allowable to modify a table that is already being used (for reading or writing) by the statement that invoked the function or trigger. (Bug #11896, Bug #12644)
-
SHOW TABLE STATUSfor a view now showsVIEWin uppercase, consistent withSHOW TABLESandINFORMATION_SCHEMA. (Bug #5501) -
An optimizer estimate of zero rows for a non-empty
InnoDBtable used in a left or right join could cause incomplete rollback for the table. (Bug #12779) -
Calls to stored procedures were written to the binary log even within transactions that were rolled back, causing them to be executed on replication slaves. (Bug #12334)
-
Interleaved execution of stored procedures and functions could be written to the binary log incorrectly, causing replication slaves to get out of sync. (Bug #12335)
-
A query of the form
SHOW TABLE STATUS FROMdb_nameWHERE name IN (select_query) would crash the server. (Bug #12636) -
Users created using an IP address or other alias rather than a hostname listed in
/etc/hostscould not set their own passwords. (Bug #12302) -
Using
DESCRIBEon a view after renaming a column in one of the view's base tables caused the server to crash. (Bug #12533) -
SHOW OPEN TABLESnow supportsFROMandLIKEclauses. (Bug #12183) -
SHOW TABLE STATUS FROM INFORMATION_SCHEMAnow sorts output by table name the same as it does for other databases. (Bug #12315) -
SHOW ENGINE INNODB STATUSnow can display longer query strings. (Bug #7819) -
Added the
SLEEP()function, which pauses for the number of seconds given by its argument. (Bug #6760) -
Trying to drop the default keycache by setting
@@global.key_buffer_sizeto zero now returns a warning that the default keycache cannot be dropped. (Bug #10473) -
The stability of cursors when used with
InnoDBtables was greatly improved. (Bug #11832, Bug #12243, Bug #11309) -
It is no longer possible to issue
FLUSHcommands from within stored functions or triggers. See Section I.1, “Restrictions on Stored Routines and Triggers”, for details. (Bug #12280, Bug #12307) -
INFORMATION_SCHEMAobjects are now reported as aSYSTEM VIEWtable type. (Bug #11711)
Bugs fixed:
-
CHECKSUM TABLEcommand returned incorrect results for tables with deleted rows. After upgrading, users who used stored checksum information to detect table changes should rebuild their checksum data. (Bug #12296) -
A data type of
CHAR BINARYwas not recognized as valid for stored routine parameters. (Bug #9048) -
SET GLOBAL TRANSACTION ISOLATION LEVELwas not working. (Bug #11207) -
NDB Cluster: Corrected the parsing of theCLUSTERLOGcommand by ndb_mgm to allow multiple items. (Bug #12833) -
NDB Cluster: Improved error messages related to filesystem issues. (Bug #11218) -
NDB Cluster: When a schema was detected to be corrupt, ndb neglected to close it, resulting in a “file already open” error if the schema was opened again later. written. (Bug #12027) -
NDB Cluster: When it could not copy a fragment, ndbd exited without printing a message about the condition to the error log. Now the message is written. (Bug #12900) -
NDB Cluster: When a disk full condition occurred, ndbd exited without printing a message about the condition to the error log. Now the message is written. (Bug #12716) -
mysql_fix_privilege_tables.sqlwas missing a comma, causing a syntax error when executed. (Bug #12705) -
STRCMP()was not handled correctly in views. (Bug #12489) -
NDB Cluster: Bad values inconfig.inicaused ndb_mdmd to crash. (Bug #12043) -
TRUNCATE TABLEdid not work withTEMPORARYInnoDBtables. (Bug #11816) -
Built-in commands for the mysql client, such as
delimiterand\dare now always parsed within files that are read using the\.andsourcecommands. (Bug #11523) -
ALTER TABLEdb_name.tRENAMEtdid not move the table to default database unless the new name was qualified with the database name. (Bug #11493) -
It was not possible to create a stored function with a spatial return value data type. (Bug #10499)
-
The only valid values for the
PACK_KEYStable option are 0 and 1, but other values were being accepted. (Bug #10056) -
If a
DROP DATABASEfails on a master server due to the presence of a non-database file in the database directory, the master have the database tables deleted, but not the slaves. To deal with failed database drops, we now writeDROP TABLEstatements to the binary log for the tables so that they are dropped on slaves. (Bug #4680) -
Improper use of loose index scan in
InnoDBsometimes caused incorrect query results. (Bug #12672) -
DELETEorUPDATEfor an indexedMyISAMtable could fail. This was due to a change in end-space comparison behavior from 4.0 to 4.1. (Bug #12565) -
Joins on
VARCHARcolumns of different lengths could produce incorrect results. (Bug #11398) -
A “Duplicate column name” error no longer occurs when selecting from a view defined as
SELECT *from a join that uses aUSINGclause on tables that have a common column name. (Bug #6558) -
Invocations of the
SLEEP()function incorrectly could get optimized away for statements in which it occurs. Statements containingSLEEP()incorrectly could be stored in the query cache. (Bug #12689) -
NDB Cluster: AnALTER TABLEcommand caused loss of data stored prior to the issuing of the command. (Bug #12118) -
Query cache is switched off if a thread (connection) has tables locked. This prevents invalid results where the locking thread inserts values between a second thread connecting and selecting from the table. (Bug #12385)
-
NOW(),CURRENT_TIMEand values generated by timestamp columns are now constant for the duration of a stored function or trigger. This prevents the breaking of statements-based replication. (Bug #12480, Bug #12481) -
Some statements executed on a master server caused the SQL thread on a slave to run out of memory. (Bug #12532)
-
A
SELECT DISTINCTquery with a constant value for one of the columns would return only a single row. (Bug #12625) -
NDB Cluster: Cluster failed to take character set data into account when recomputing hashes (and thus could not locate records for updating or deletion) following a configuration change and node restart. (Bug #12220) -
NDB Cluster: Wrong error message displayed when cluster management server closed port while mysqld was connecting. (Bug #10950) -
A view was allowed to depend on a function that referred to a temporary table. (Bug #10970)
-
Prepared statement parameters could cause errors in the binary log if the character set was
cp932. (Bug #11338) -
The
CREATE_OPTIONScolumn ofINFORMATION_SCHEMA.TABLESshowed incorrect options for tables inINFORMATION_SCHEMA. (Bug #12397) -
MEMORYtables usingB-Treeindex on 64-bit platforms could produce false table is full errors. (Bug #12460) -
Issuing
FLUSH INSTANCESfollowed bySTOP INSTANCEcaused instance manager to crash. (Bug #10957) -
Duplicate instructions in stored procedures resulted in incorrect execution when the optimizer optimized the duplicate code away. (Bug #12168)
-
SHOW TABLES FROMreturned wrong error message if the schema specified did not exist. (Bug #12591) -
The
ROW()function returned an incorrect result when comparison involvedNULLvalues. (Bug #12509) -
Views with multiple
UNIONandUNION ALLproduced incorrect results. (Bug #10624) -
Stored procedures with particularly long loops could crash server due to memory leak. (Bug #12297, Bug #11247)
-
Trigger and stored procedure execution could break replication. (Bug #12482)
-
A server crash could result from an update of a view defined as a join, even though the update updated only a single table. (Bug #12569)
-
On Windows when the
--innodb_buffer_pool_awe_mem_mboption has been given, the server detects whether AWE support is available and has been compiled into the server, and displays an appropriate error message if not. (Bug #6581) -
The
NUMERIC_SCALEcolumn of theINFORMATION_SCHEMA.COLUMNStable should be returned as0for integer columns. It was being returned asNULL. (Bug #12301) -
The
COLUMN_DEFAULTcolumn of theINFORMATION_SCHEMA.COLUMNStable should be returned asNULLif a column has no default value. An empty string was being returned if the column was defined asNOT NULL. (Bug #12518) -
Slave I/O threads were considered to be in the running state when launched (rather than after successfully connecting to the master server), resulting in incorrect
SHOW SLAVE STATUSoutput. (Bug #10780) -
Column names in subqueries must be unique, but were not being checked for uniqueness. (Bug #11864)
-
On Windows, the server could crash during shutdown if both replication threads and normal client connection threads were active. (Bug #11796)
-
Some subqueries of the form
SELECT ... WHERE ROW(...) IN (subquery)were being handled incorrectly. (Bug #11867) -
Selecting from a view after
INSERTstatements for the view's underlying table yielded different results than subsequent selects. (Bug #12382) -
The
mysql_info()C API function could return incorrect data when executed as part of a multi-statement that included a mix of statements that do and do not return information. (Bug #11688) -
When restoring
INFORMATION_SCHEMAas the default database after failing to execute a stored procedure in an inaccessible database, the server returned a spuriousERROR 42000: Unknown database 'information_schema'message. (Bug #12318) -
Renamed the
rest()macro inmy_list.htolist_rest()to avoid name clashes with user code. (Bug #12327) -
DATE_ADD()andDATE_SUB()were converting invalid dates toNULLinTRADITIONALSQL mode rather than rejecting them with an error. (Bug #10627) -
A trigger that included a
SELECTstatement could cause a server crash. (Bug #11587) -
An incorrect conversion from
doubletoulonglongcaused indexes not to be used forBDBtables on HP-UX. (Bug #10802) -
myisampack failed to delete
.TMDtemporary files when run with-Toption. (Bug #12235) -
Added portability check for Intel compiler to address a problem compiling
InnoDBcode. (Bug #11510) -
XAallowed two active transactions to be started with the same XID. (Bug #12162) -
Concatenating
USER()orDATEBASE()with a column produced invalid results. (Bug #12351) -
Creating a view that included the
TIMESTAMPDIFF()function resulted in a invalid view. (Bug #12298) -
Comparison of
InnoDBmulti-part primary keys that includeVARCHARcolumns can result in incorrect results. (Bug #12340) -
For PKG installs on Mac OS X, the preinstallation and postinstallation scripts were being run only for new installations and not for upgrade installations, resulting in an incomplete installation process. (Bug #11380)
-
Using cursors and nested queries for the same table, corrupted results were returned for the outer query. (Bug #11909)
-
User variables were not automatically cast for comparisons, causing queries to fail if the column and connection character sets differed. Now when mixing strings with different character sets but the same coercibility, allow conversion if one character set is a superset of the other. (Bug #10892)
-
Selecting from a view defined as a join over many tables could result in a server crash due to miscalculation of the number of conditions in the
WHEREclause. (Bug #12470) -
Pathame values for options such as
---basediror--datadirdidn't work on Japanese Windows machines for directory names containing multi-byte characters having a second byte of0x5C(‘\’). (Bug #5439) -
A race condition between server threads could cause a crash if one thread deleted a stored routine while another thread was executing a stored routine. (Bug #12228)
-
Mishandling of comparison for rows containing
NULLvalues against rows produced by anINsubquery could cause a server crash. (Bug #12392) -
Inserting
NULLinto aGEOMETRYcolumn for a table that has a trigger could result in a server crash if the table was subsequently dropped. (Bug #12281) -
A failure to obtain a lock for an
IN SHARE MODEquery could result in a server crash. (Bug #12082) -
SELECT ... INTOvar_namewithin a trigger could cause a server crash. (Bug #11973) -
INSERT ... SELECT ... ON DUPLICATE KEY UPDATEcould fail with an erroneous “Column 'col_name' specified twice” error. (Bug #10109) -
SHOW TABLE STATUSsometimes reported aRow_formatvalue ofDynamicforMEMORYtables, though such tables always have a format ofFixed. (Bug #3094) -
A query using a
LEFT JOIN, anINsubquery on the outer table, and anORDER BYclause, caused the server to crash when cursors were enabled. (Bug #11901) -
Using a stored procedure that referenced tables in the
INFORMATION_SCHEMAdatabase would return an empty result set. (Bug #10055, Bug #12278) -
Columns defined as
TINYINT(1)were redefined asTINYINT(4)when incorporated into aVIEW. (Bug #11335) -
ISO-8601formatted dates were not being parsed correctly. (Bug #7308) -
FLUSH TABLES WITH READ LOCKcombined withLOCK TABLE .. WRITEcaused deadlock. (Bug #9459) -
NULLcolumn definitions read incorrectly for inner tables of nested outer joins. (Bug #12154) -
GROUP_CONCATignores theDISTINCTmodifier when used in a query joining multiple tables where one of the tables has a single row. (Bug #12095) -
UNIONquery withFULLTEXTcould cause server crash. (Bug #11869)
Functionality added or changed:
-
Security improvement: Applied a patch that addresses a potential
zlibdata vulnerability that could result in an application crash. (CVE-2005-1849) This only affects the binaries for platforms that are linked statically against the bundled zlib (most notably Microsoft Windows and HP-UX). -
SHOW CHARACTER SETandINFORMATION_SCHEMAnow properly report theLatin1character set ascp1252. (Bug #11216) -
mysqldump now dumps triggers for each dumped table. This can be suppressed with the
--skip-triggersoption. (Bug #10431) -
Added new
ER_STACK_OVERRUN_NEED_MOREerror message to indicate that, while the stack is not completely full, more stack space is required. (Bug #11213) -
NDB: Improved handling of the configuration variablesNoOfPagesToDiskDuringRestartACC,NoOfPagesToDiskAfterRestartACC,NoOfPagesToDiskDuringRestartTUP, andNoOfPagesToDiskAfterRestartTUPshould result in noticeably faster startup times for MySQL Cluster. (Bug #12149) -
Added support of where clause for queries with
FROM DUAL. (Bug #11745) -
Added an optimization that avoids key access with
NULLkeys for therefmethod when used in outer joins. (Bug #12144) -
Maximum size of stored procedures increased from 64k to 4Gb. (Bug #11602)
-
Added error message for users who attempt
CREATE TABLE ... LIKEand specify a non-table in theLIKEclause. (Bug #6859)
Bugs fixed:
-
DDL statements now are allowed in stored procedures if the procedure is not invoked from a stored function or a trigger. Also fixed problems where a
TEMPORARYstatement created by one stored routine was inaccessible to another routine invoked during the same connection. (Bug #11126) -
Creation of the
mysqlgroup account failed during the RPM installation. (Bug #12348) -
big5strings were not being stored inFULLTEXTindex. (Bug #12075) -
When
DROP DATABASEwas called concurrently with aDROP TABLEof any table the MySQL Server crashed. (Bug #12212) -
max_connections_per_hoursetting was being capped by unrelatedmax_user_connectionssetting. (Bug #9947) -
SELECT @@local...returned@@session...in the column header. (Bug #10724) -
Multiplying
ABS()output by a negative number would return incorrect results. (Bug #11402) -
Updated dependency list for RPM builds to include missing dependencies such as
useraddandgroupadd. (Bug #12233) -
mysql_install_dbused staticlocalhostvalue inGRANTtables even when server hostname is notlocalhost, such aslocalhost.localdomain. This change is applied to version 5.0.10b on Windows. (Bug #11822) -
Multiple
SELECT SQL_CACHEqueries in a stored procedure causes error and client hang. (Bug #6897) -
Added checks to prevent error when allocating memory when there was insufficient memory available. (Bug #7003)
-
Character data truncated when GBK characters
0xA3A0and0xA1are present. (Bug #11987) -
Comparisons like
SELECT "A\\" LIKE "A\\";fail when usingSET NAMES utf8;. (Bug #11754) -
When used in a
SELECTquery against a view, theGROUP_CONCAT()function returned only a single row. (Bug #11412) -
Calling the C API function
mysql_stmt_fetch()after all rows of a result set were exhausted would return an error instead ofMYSQL_NO_DATA. (Bug #11037) -
Information about a trigger was not displayed in the output of
SELECT ... FROM INFORMATION_SCHEMA.TRIGGERSwhen the selected database wasINFORMATION_SCHEMA, prior to the trigger's first invocation. (Bug #12127) -
Issuing successive
FLUSH TABLES WITH READ LOCKwould cause themysqlclient to hang. (Bug #11934) -
In stored procedures, a cursor that fetched an empty string into a variable would set the variable to
NULLinstead. (Bug #8692) -
A trigger dependent on a feature of one
SQL_MODEsetting would cause an error when invoked after theSQL_MODEwas changed. (Bug #5891) -
A delayed insert that would duplicate an existing record crashed the server instead. (Bug #12226)
-
ALTER TABLEwhenSQL_MODE = 'TRADITIONAL'gave rise to an invalid error message. (Bug #11964) -
Attempting to repair a table having a fulltext index on a column containing words whose length exceeded 21 characters and where
myisam_repair_threadswas greater than 1 would crash the server. (Bug #11684) -
The MySQL Cluster backup log was invalid where the number of Cluster nodes was not equal to a power of 2. (Bug #11675)
-
GROUP_CONCAT()sometimes returned a result with a different collation from that of its arguments. (Bug #10201) -
The
LPAD()andRPAD()functions returned the wrong length tomysql_fetch_fields(). (Bug #11311) -
A
UNIQUE VARCHARcolumn would be mis-identified asMULin table descriptions. (Bug #11227) -
Incorrect error message displayed if user attempted to create a table in a non-existing database using
CREATEdatabase_name.table_namesyntax. (Bug #10407) -
InnoDB: Do not flush after each write, not even before setting up the doublewrite buffer. Flushing can be extremely slow on some systems. (Bug #12125) -
InnoDB: TrueVARCHAR: ReturnNULLcolumns in the format expected by MySQL. (Bug #12186) -
Two threads could potentially initialize different characters sets and overwrite each other. (Bug #12109)
-
Unsigned
LONGsystem variables may return incorrect value when retrieved with aSELECTfor certain values. (Bug #10351) -
Prepared statements were not being written to the Slow Query log. (Bug #9968)
Functionality added or changed:
-
Security improvement: Applied a patch that addresses a
zlibdata vulnerability that could result in a buffer overflow and code execution. (CVE-2005-2096) (Bug #11844) -
Incompatible change: The namespace for triggers has changed. Previously, trigger names had to be unique per table. Now they must be unique within the schema (database). An implication of this change is that
DROP TRIGGERsyntax now uses a schema name instead of a table name (schema name is optional and, if omitted, the current schema will be used). (Bug #5892)Note: When upgrading from a previous version of MySQL 5 to MySQL 5.0.10 or newer, you must drop all triggers and re-create them or
DROP TRIGGERwill not work after the upgrade. A suggested procedure for doing this is given in Section 2.11.2, “Upgrading from MySQL 4.1 to 5.0”. -
The viewing of triggers and trigger metadata has been enhanced as follows:
-
An extension to the
SHOWcommand has been added:SHOW TRIGGERScan be used to view a listing of triggers. See Section 13.5.4.23, “SHOW TRIGGERSSyntax”, for details. -
The
INFORMATION_SCHEMAdatabase now includes aTRIGGERStable. See Section 20.16, “TheINFORMATION_SCHEMA TRIGGERSTable”, for details. (Bug #9586)
-
-
Triggers can now reference tables by name. See Section 18.1, “
CREATE TRIGGERSyntax”, for more information. -
The output of
perror --helpnow displays the--ndboption. (Bug #11999) -
On Windows, the search path used by MySQL applications for
my.ininow includes..\my.ini(that is, the application's parent directory, and hence, the installation directory). (Bug #10419) -
Add the
--defaults-group-suffixoption. See Section 4.3.2, “Using Option Files”. -
Added
mysql_get_character_set_info()C API function for obtaining information about the default character set of the current connection. -
The bundled version of the
readlinelibrary was upgraded to version 5.0. -
It is no longer necessary to issue an explicit
LOCK TABLESfor any tables accessed by a trigger prior to executing any statements that might invoke the trigger. (Bug #9581, Bug #8406) -
MySQL Cluster: A new-Poption is available for use with the ndb_mgmd client. When called with this option, ndb_mgmd prints all configuration data tostdout, then exits. -
Add
table_lock_wait_timeoutglobal server system variable.
Bugs fixed:
-
NDB: Trying to use a greater number of tables then specified by the value ofMaxNoOfTablescaused table corruption such that data nodes could not be restarted. (Bug #9994) -
NDB: Attempting to create or drop tables during a backup would cause the cluster to shut down. (Bug #11942) -
When attempting to drop a table with a broken unique index,
NDBfailed to drop the table and erroneously report that the table was unknown. (Bug #11355) -
SELECT ... NOT IN()gave unexpected results when only static value present between the(). (Bug #11885) -
Fixed compile error when using GCC4 on AMD64. (Bug #12040)
-
NDBignored theHostnameoption in theNDBD DEFAULTsection of the Cluster configuration file. (Bug #12028) -
SHOW PROCEDURE/FUNCTION STATUSdidn't work for users with limited access. (Bug #11577) -
MySQL server would crash is a fetch was performed after a
ROLLBACKwhen cursors were involved. (Bug #10760) -
The temporary tables created by an
ALTER TABLEon a cluster table were visible to all MySQL servers. (Bug #12055) -
NDB_MGMDwas leaking file descriptors. (Bug #11898) -
IP addresses not shown in
ndb_mgm SHOWcommand on second ndb_mgmd (or on ndb_mgmd restart). (Bug #11596) -
Functions that evaluate to constants (such as
NOW()andCURRENT_USER()were being evaluated in the definition of aVIEWrather than included verbatim. (Bug #4663) -
Execution of
SHOW TABLESfailed to increment theCom_show_tablesstatus variable. (Bug #11685) -
For execution of a stored procedure that refers to a view, changes to the view definition were not seen. The procedure continued to see the old contents of the view. (Bug #6120)
-
For prepared statements, the SQL parser did not disallow ‘
?’ parameter markers immediately adjacent to other tokens, which could result in malformed statements in the binary log. (For example,SELECT * FROM t WHERE? = 1could becomeSELECT * FROM t WHERE0 = 1.) (Bug #11299) -
When two threads compete for the same table, a deadlock could occur if one thread has also a lock on another table through
LOCK TABLESand the thread is attempting to remove the table in some manner and the other thread want locks on both tables. (Bug #10600) -
Aliasing the column names in a
VIEWdid not work when executing aSELECTquery on theVIEW. (Bug #11399) -
Performing an
ORDER BYon aSELECTfrom aVIEWproduced unexpected results whenVIEWand underlying table had the same column name on different columns. Bug #11709) -
The C API function
mysql_statement_reset()did not clear error information. (Bug #11183) -
When used within a subquery,
SUBSTRING()returned an empty string. (Bug #10269) -
Multiple-table
UPDATEqueries usingCONVERT_TZ()would fail with an error. (Bug #9979) -
mysql_fetch_fields()returned incorrect length information forMEDIUMandLONGTEXTandBLOBcolumns. (Bug #9735) -
mysqlbinlogwas failing the test suite on Windows due toBOOLbeing incorrectly cast toINT. (Bug #11567) -
NDBCLuster: Server left core files following shutdown if data nodes had failed. (Bug #11516) -
Creating a trigger in one database that references a table in another database was being allowed without generating errors. (Bug #8751)
-
Duplicate trigger names were allowed within a single schema. (Bug #6182)
-
Server did not accept some fully-qualified trigger names. (Bug #8758)
-
The
traditionalSQL mode accepted invalid dates if the date value provided was the result of an implicit type conversion. (Bug #5906) -
The MySQL server had issues with certain combinations of basedir and datadir. (Bug #7249)
-
INFORMATION_SCHEMA.COLUMNShad some inaccurate values for some data types. (Bug #11057) -
LIKE pattern matching using prefix index didn't return correct result. (Bug #11650)
-
For several character sets, MySQL incorrectly converted the character code for the division sign to the
eucjpmscharacter set. (Bug #11717) -
When invoked within a view,
SUBTIME()returned incorrect values. (Bug #11760) -
SHOW BINARY LOGSdisplayed a file size of 0 for all log files but the current one if the files were not located in the data directory. (Bug #12004) -
Server-side prepared statements failed for columns with a character set of
ucs2. (Bug #9442) -
References to system variables in an SQL statement prepared with
PREPAREwere evaluated duringEXECUTEto their values at prepare time, not to their values at execution time. (Bug #9359) -
For server shutdown on Windows, error messages of the form
Forcing close of threadnuser: 'name' were being written to the error log. Now connections are closed more gracefully without generating error messages. (Bug #7403) -
Increased the version number of the
libmysqlclientshared library from 14 to 15 because it is binary incompatible with the MySQL 4.1 client library. (Bug #11893) -
A recent optimizer change caused
DELETE ... WHERE ... NOT LIKEandDELETE ... WHERE ... NOT BETWEENto not properly identify the rows to be deleted. (Bug #11853) -
Within a stored procedure that selects from a table, invoking another procedure that requires a write lock for the table caused that procedure to fail with a message that the table was read-locked. (Bug #9565)
-
Within a stored procedure, selecting from a table through a view caused subsequent updates to the table to fail with a message that the table was read-locked. (Bug #9597)
-
For a stored procedure defined with
SQL SECURITY DEFINERcharacteristic,CURRENT_USER()incorrectly reported the use invoking the procedure, not the user who defined it. (Bug #7291) -
Creating a table with a
SETorENUMcolumn with theDEFAULT 0clause caused a server crash if the table's character set wasutf8. (Bug #11819) -
With strict SQL mode enabled,
ALTER TABLEreported spurious “Invalid default value” messages for columns that had noDEFAULTclause. (Bug #9881) -
In SQL prepared statements, comparisons could fail for values not equally space-padded. For example,
SELECT 'a' = 'a ';returns 1, butPREPARE s FROM 'SELECT ?=?'; SET @a = 'a', @b = 'a '; PREPARE s FROM 'SELECT ?=?'; EXECUTE s USING @a, @b;incorrectly returned 0. (Bug #9379) -
Labels in stored routines did not work if the character set was not
latin1. (Bug #7088) -
Invoking the
DES_ENCRYPT()function could cause a server crash if the server was started without the--des-key-fileoption. (Bug #11643) -
The server crashed upon execution of a statement that used a stored function indirectly (via a view) if the function was not yet in the connection-specific stored routine cache and the statement would update a
Handler_xxxstatus variable. This fix allows the use of stored routines underLOCK TABLESwithout explicitly locking themysql.locktable. However, you cannot usemysql.procin statements that will combine locking of it with modifications for other tables. (Bug #11554) -
The server crashed when dropping a trigger that invoked a stored procedure, if the procedure was not yet in the connection-specific stored routine cache. (Bug #11889)
-
Selecting the result of an aggregate function for an
ENUMorSETcolumn within a subquery could result in a server crash. (Bug #11821) -
Incorrect column values could be retrieved from views defined using statements of the form
SELECT * FROMtbl_name. (Bug #11771) -
The
mysql.proctable was not being created properly with the properutf8character set and collation, causing server crashes for stored procedure operations if the server was using a multi-byte character set. To take advantage of the bug fix, mysql_fix_privilege_tables should be run to correct the structure of themysql.proctable. (Bug #11365)Note that it is necessary to run mysql_fix_privileges_tables when upgrading from a previous installation that contains the
mysql.proctable (that is, from a previous 5.0 installation). Otherwise, creating stored procedures might not work. -
Execution of a prepared statement that invoked a non-existent or dropped stored routine would crash the server. (Bug #11834)
-
Executing a statement that invoked a trigger would cause problems unless a
LOCK TABLESwas first issued for any tables accessed by the trigger. Note: The exact nature of the problem depended upon the MySQL 5.0 release being used: prior to 5.0.3, this resulted in a crash; from 5.0.3 to 5.0.7, MySQL would issue a warning; in 5.0.9, the server would issue an error. (Bug #8406)The same issue caused
LOCK TABLESto fail followingUNLOCK TABLESif triggers were involved. (Bug #9581) -
In a shared Windows environment, MySQL could not find its configuration file unless the file was in the
C:\directory. (Bug #5354)
Functionality added or changed:
-
An attempt to create a
TIMESTAMPcolumn with a display width (for example,TIMESTAMP(6)) now results in a warning. Display widths have not been supported forTIMESTAMPsince MySQL 4.1. (Bug #10466) -
InnoDB: When creating or extending an InnoDB data file, at most one megabyte at a time is allocated for initializing the file. Previously, InnoDB allocated and initialized 1 or 8 megabytes of memory, even if only a few 16-kilobyte pages were to be written. This improves the performance ofCREATE TABLEininnodb_file_per_tablemode. -
InnoDB: Various optimizations. Removed unreachable debug code from non-debug builds. Added hints for the branch predictor in gcc. Made assertions occupy less space. -
InnoDB: Makeinnodb_thread_concurrency=20by default. Bypass the concurrency checking if the setting is greater than or equal to 20. -
InnoDB: MakeCHECK TABLEkillable. (Bug #9730) -
Recursion in stored routines is now disabled because it was crashing the server. We plan to modify stored routines to allow this to operate safely in a future release. (Bug #11394)
-
The handling of
BITcolumns has been improved, and should now be much more reliable in a number of cases. (Bug #10617, Bug #11091, Bug #11572) -
mysql_real_escape_string()API function now respectsNO_BACKSLASH_ESCAPESSQL mode. (Bug #10214)
Bugs fixed:
-
SHOW CREATE VIEWdid not take theANSI MODEinto account when quoting identifiers. (Bug #6903) -
The
mysql_configscript did not handle symbolic linking properly. (Bug #10986) -
Incorrect results when using
GROUP BY ... WITH ROLLUPon aVIEW. (Bug #11639) -
Instances of the
VAR_SAMP()function in view definitions were converted toVARIANCE(). This is incorrect becauseVARIANCE()is the same asVAR_POP(), notVAR_SAMP(). (Bug #10651) -
mysqldump failed when reloading a view if the view was defined in terms of a different view that had not yet been reloaded. mysqldump now creates a dummy table to handle this case. (Bug #10927)
-
mysqldump could crash for illegal or non-existent table names. (Bug #9358)
-
The
--no-dataoption for mysqldump was being ignored if table names were given after the database name. (Bug #9558) -
The
--master-dataoption for mysqldump resulted in no error if the binary log was not enabled. Now an error occurs unless the--forceoption is given. (Bug #11678) -
DES_ENCRYPT()andDES_DECRYPT()require SSL support to be enabled, but were not checking for it. Checking for incorrect arguments or resource exhaustion was also improved for these functions. (Bug #10589) -
When used in joins,
SUBSTRING()failed to truncate to zero any string values that could not be converted to numbers. (Bug #10124) -
mysqldump --xmldid not formatNULLcolumn values correctly. (Bug #9657) -
There was a compression algorithm issue with
myisampackfor very large datasets (where the total size of all records in a single column was on the order of 3 GB or more) on 64-bit platforms. (A fix for other platforms was made in MySQL 5.0.6.) (Bug #8321) -
Temporary tables were created in the data directory instead of
tmpdir. (Bug #11440) -
MySQL would not compile correctly on QNX due to missing
rint()function. (Bug #11544) -
A
SELECT DISTINCTcol_namewould work correctly with aMyISAMtable only when there was an index oncol_name. (Bug #11484) -
The server would lose table-level
CREATE VIEWandSHOW VIEWprivileges following aFLUSH PRIVILEGESor server restart. (Bug #9795) -
In strict mode, an
INSERTinto a view that did not include a value for aNOT NULLcolumn but that did include aWHEREtest on the same column would succeed, This happened even though theINSERTshould have been prevented due to the failure to supply a value for theNOT NULLcolumn. (Bug #6443) -
Running a
CHECK TABLESon multiple views crashed the server. (Bug #11337) -
When a table had a primary key containing a
BLOBcolumn, creation of another index failed with the errorBLOB/TEXT column used in key specification without keylength, even when the new index did not contain aBLOBcolumn. (Bug #11657) -
NDB Cluster: When trying to open a table that could not be discovered or unpacked, cluster would return error codes which the MySQL server falsely interpreted as operating system errors. (Bug #103651)
-
Manually inserting a row with
host=''intomysql.tables_privand performing aFLUSH PRIVILEGESwould cause the server to crash. (Bug #11330) -
A cursor using a query with a filter on a
DATEorDATETIMEcolumn would cause the server to crash server after the data was fetched. (Bug #11172) -
Closing a cursor that was already closed would cause MySQL to hang. (Bug #9814)
-
Using
CONCAT_WSon a column setNOT NULLcaused incorrect results when used in aLEFT JOIN. (Bug #11469) -
Signed
BIGINTwould not accept-9223372036854775808as aDEFAULTvalue. (Bug #11215) -
Views did not use indexes on all appropriate queries. (Bug #10031)
-
For
MEMORYtables, it was possible for updates to be performed using outdated key statistics when the updates involved only very small changes in a very few rows. This resulted in the random failures of queries such asUPDATE t SET col = col + 1 WHERE col_key = 2;where the same query with noWHEREclause would succeed. (Bug #10178) -
Optimizer performed range check when comparing unsigned integers to negative constants, could cause errors. (Bug #11185)
-
Wrong comparison method used in
VIEWwhen relaxed date syntax used (for example,2005.06.10). (Bug #11325) -
The
ENCRYPT()andSUBSTRING_INDEX()functions would cause errors when used with aVIEW. (Bug #7024) -
Clients would hang following some errors with stored procedures. (Bug #9503)
-
Combining cursors and subqueries could cause server crash or memory leaks. (Bug #10736)
-
If a prepared statement cursor is opened but not completely fetched, attempting to open a cursor for a second prepared statement will fail. (Bug #10794)
Note: Starting with version 5.0.8, changes for MySQL Cluster can be found in the combined Change History.
Functionality added or changed:
-
Warning: Incompatible change: Previously, conversion of
DATETIMEvalues to numeric form by adding zero produced a result inYYYYMMDDHHMMSSformat. The result ofDATETIME+0is now inYYYYMMDDHHMMSS.000000format. (Bug#12268) -
MEMORYtables now support indexes of up to 500 bytes. See Section 14.4, “TheMEMORY(HEAP) Storage Engine”. (Bug #10566) -
New
SQL_MODE-NO_ENGINE_SUBSTITUTIONPrevents automatic substitution of storage engine when the requested storage engine is disabled or not compiled in. (Bug #6877) -
The statements
CREATE TABLE,TRUNCATE TABLE,DROP DATABASE, andCREATE DATABASEcause an implicit commit. (Bug #6883) -
Expanded on information provided in general log and slow query log for prepared statements. (Bug #8367, Bug #9334)
-
Where a
GROUP BYquery uses a grouping column from the query'sSELECTclause, MySQL now issues a warning. This is done because the SQL standard states that any grouping column must unambiguously reference a column of the table resulting from the query'sFROMclause, and allowing columns from theSELECTclause to be used as grouping columns is a MySQL extension to the standard.By way of example, consider the following table:
CREATE TABLE users ( userid INT NOT NULL PRIMARY KEY, username VARCHAR(25), usergroupid INT NOT NULL );
MySQL allows you to use the alias in this query:
SELECT usergroupid AS id, COUNT(userid) AS number_of_users FROM users GROUP BY id;
However, the SQL standard requires that the column name be used, as shown here:
SELECT usergroupid AS id, COUNT(userid) AS number_of_users FROM users GROUP BY usergroupid;
Queries such as the first of the two shown above will continue to be supported in MySQL; however, beginning with MySQL 5.0.8, using a column alias in this fashion will generate a warning. Note that in the event of a collision between column names and/or aliases used in joins, MySQL attempts to resolve the conflict by giving preference to columns arising from tables named in the query's
FROMclause. (Bug #11211) -
The granting or revocation of privileges on a stored routine is no longer performed when running the server with
--skip-grant-tableseven after the statementSET @@global.automatic_sp_privileges=1;has been executed. (Bug #9993) -
Added support for
B'10'syntax for bit literal. (Bug #10650)
Bugs fixed:
-
Security fix: On Windows systems, a user with any of the following privileges
-
REFERENCES -
CREATE TEMPORARY TABLES -
GRANT OPTION -
CREATE -
SELECT
on
*.*could crash mysqld by issuing aUSE LPT1;orUSE PRN;command. In addition, any of the commandsUSE NUL;,USE CON;,USE COM1;, orUSE AUX;would report success even though the database was not in fact changed. Note: Although this bug was thought to be fixed previously, it was later discovered to be present in the MySQL 5.0.7-beta release for Windows. (Bug #9148, CVE-2005-0799 -
-
A
CREATE TABLEdb_name.tbl_nameLIKE ... statement would crash the server when no database was selected. (Bug #11028) -
SELECT DISTINCTqueries orGROUP BYqueries withoutMIN()orMAX()could return inconsistent results for indexed columns. (Bug #11044) -
The
SHOW INSTANCE OPTIONScommand in MySQL Instance Manager displayed option values incorrectly for options for which no value had been given. (Bug #11200) -
An outer join with an empty derived table (a result from a subquery) returned no result. (Bug #11284)
-
An outer join with an
ONcondition that evaluated to false could return an incorrect result. (Bug #11285) -
mysqld_safewould sometimes fail to remove the pid file for the oldmysqlprocess after a crash. As a result, the server would fail to start due to a falseA mysqld process already exists...error. (Bug #11122) -
CAST( ... AS DECIMAL) didn't work for strings. (Bug #11283) -
NULLIF()function could produce incorrect results if first argument isNULL. (Bug #11142) -
Setting
@@SQL_MODE = NULLcaused an erroneous error message. (Bug #10732) -
Converting a
VARCHARcolumn having an index to a different type (such asTINYTEXT) gave rise to an incorrect error message. (Bug #10543)Note that this bugfix induces a slight change in the behavior of indexes: If an index is defined to be the same length as a field (or is left to default to that field's length), and the length of the field is later changed, then the index will adopt the new length of the field. Previously, the size of the index did not change for some field types (such as
VARCHAR) when the field type was changed. -
sql_data_accesscolumn ofroutinestable ofINFORMATION_SCHEMAwas empty. (Bug #11055) -
A
CAST()value could not be included in aVIEW. (Bug #11387) -
Server crashed when using
GROUP BYon the result of aDIVoperation on aDATETIMEvalue. (Bug #11385) -
Possible
NULLvalues inBLOBcolumns could crash the server when aBLOBwas used in aGROUP BYquery. (Bug #11295) -
Fixed 64 bit compiler warning for packet length in replication. (Bug #11064)
-
Multiple range accesses in a subquery cause server crash. (Bug #11487)
-
An issue with index merging could cause suboptimal index merge plans to be chosen when searching by indexes created on
DATEcolumns. The same issue caused the InnoDB storage engine to issue the warningusing a partial-field key prefix in search. (Bug #8441) -
The
mysqlhotcopyscript was not parsing the output ofSHOW SLAVE STATUScorrectly when called with the--record_log_posoption. (Bug #7967) -
SELECT * FROMtablereturned incorrect results when called from a stored procedure, wheretablehad a primary key. (Bug #10136) -
When used in defining a view, the
TIME_FORMAT()function failed with calculated values, for example, when passed the value returned bySEC_TO_TIME(). (Bug #7521) -
SELECT DISTINCT ... GROUP BYconstantreturned multiple rows (it should return a single row). (Bug #8614) -
INSERT INTO SELECT FROMviewproduced incorrect result when usingORDER BY. (Bug #11298) -
Fixed hang/crash with Boolean full-text search where a query contained more query terms that one-third of the query length (it could be achieved with truncation operator: 'a*b*c*d*'). (Bug #7858)
-
Fixed column name generation in
VIEWcreation to ensure there are no duplicate column names. (Bug #7448) -
An
ORDER BYclause sometimes had no effect on the ordering of a result when selecting specific columns (as opposed to usingSELECT *) from a view. (Bug #7422) -
Some data definition statements (
CREATE TABLEwhere the table was not a temporary table,TRUNCATE TABLE,DROP DATABASE, andCREATE DATABASE) were not being written to the binary log after aROLLBACK. This also caused problems with replication. (Bug #6883) -
Calling a stored procedure that made use of an
INSERT ... SELECT ... UNION SELECT ...query caused a server crash. (Bug #11060) -
Selecting from a view defined using
SELECT SUM(DISTINCT ...)caused an error; attempting to execute aSELECT * FROM INFORMATION_SCHEMA.TABLESquery after defining such a view crashed the server. (Bug #7015) -
The mysql client would output a prompt twice following input of very long strings, because it incorrectly assumed that a call to the _cgets() function would clear the input buffer. (Bug #10840)
-
A three byte buffer overflow in the client functions caused improper exiting of the client when reading a command from the user. (Bug #10841)
-
Fixed a problem where a stored procedure caused a server crash if the query cache was enabled. (Bug #9715)
-
SHOW CREATE DATABASE INFORMATION_SCHEMAreturned an “unknown database” error. (Bug #9434) -
Corrected a problem with
IFNULL()returning an incorrect result on 64-bit systems. (Bug #11235) -
Fixed a problem resolving table names with
lower_case_table_names=2when the table name lettercase differed in theFROMandWHEREclauses. (Bug #9500) -
Fixed server crash due to some internal functions not taking into account that for multi-byte character sets,
CHARcolumns could exceed 255 bytes andVARCHARcolumns could exceed 65,535 bytes. (Bug #11167) -
Fixed locking problems for multiple-statement
DELETEstatements performed within a stored routine, such as incorrectly locking a to-be-modified table with a read lock rather than a write lock. (Bug #11158) -
Fixed a portability problem testing for
crypt()support that caused compilation problems when using OpenSSL/yaSSL on HP-UX and Mac OS X. (Bug #10675, Bug #11150) -
The hostname cache was not working. (Bug #10931)
-
On Windows,
mysqlshowdid not interpret wildcard characters properly if they were given in the table name argument. (Bug #10947) -
The default hostname for MySQL server was always
mysql. (Bug #11174) -
Using
PREPAREto prepare a statement that invoked a stored routine that deallocated the prepared statement caused a server crash. This is prevented by disabling dynamic SQL within stored routines. (Bug #10975) (Note: This restriction was lifted in 5.0.13 for stored procedures, but not stored functions or triggers.) -
Using
PREPAREto prepare a statement that invoked a stored routine that executed the prepared statement caused aPackets out of ordererror the second time the routine was invoked. This is prevented by disabling dynamic SQL within stored routines. (Bug #7115) (Note: This restriction was lifted in 5.0.13 for stored procedures, but not stored functions or triggers.) -
Using prepared statements within a stored routine (
PREPARE,EXECUTE,DEALLOCATE) could cause the client connection to be dropped after the routine returned. This is prevented by disabling dynamic SQL within stored routines. (Bug #10605) (Note: This restriction was lifted in 5.0.13 for stored procedures, but not stored functions or triggers.) -
When using a cursor with a prepared statement, the first execution returned the correct result but was not cleaned up properly, causing subsequent executions to return incorrect results. (Bug #10729)
-
MySQL Cluster: Connections between data nodes and management nodes were not being closed following shutdown of
ndb_mgmd. (Bug #11132) -
MySQL Cluster: mysqld processes would not reconnect to cluster following restart of
ndb_mgmd. (Bug #11221) -
MySQL Cluster: Fixed problem whereby data nodes would fail to restart on 64-bit Solaris (Bug #9025)
-
MySQL Cluster: Calling
ndb_select_count()crashed the cluster when running on Red Hat Enterprise 4/64-bit/Opteron. (Bug #10058) -
MySQL Cluster: Insert records were incorrectly applied by
ndb_restore, thus making restoration from backup inconsistent if the binlog contained inserts. (Bug #11166) -
MySQL Cluster: Cluster would time out and crash after first query on 64-bit Solaris 9. (Bug #8918)
-
MySQL Cluster:
ndb_mgmclientshowcommand displayed incorrect output after master data node failure. (Bug #11050) -
MySQL Cluster: A delete performed as part of a transaction caused an erroneous result. (Bug #11133)
-
MySQL Cluster: Not allowing sufficient parallelism in cluster configuration (for example,
NoOfTransactionstoo small) causedndb_restoreto fail without providing any error messages. (Bug #10294) -
MySQL Cluster: When using dynamically allocated ports on Linux, cluster would hang on initial startup. (Bug #10893)
-
MySQL Cluster: Setting TransactionInactiveTimeout= 0 did not result in an infinite timeout. (Bug #11290)
-
InnoDB: Enforce maximumCHAR_LENGTH()of UTF-8 data inON UPDATE CASCADE. (Bug #10409) -
InnoDB: Pad UTF-8VARCHARcolumns with0x20. Pad UCS2CHARcolumns with0x0020. (Bug #10511)
Functionality added or changed:
-
Security improvement: Applied a patch to fix a UDF library-loading vulnerability that could result in a buffer overflow and code execution. (http://www.appsecinc.com/resources/alerts/mysql/2005-002.html)
-
Added
mysql_set_character_set()C API function for setting the default character set of the current connection. This allows clients to affect the character set used bymysql_real_escape_string(). (Bug #8317) -
The behavior of the
Last_query_costsystem variable has been changed. The default value is now 0 (rather than -1) and it now has session-level scope (rather than being global). See Section 5.2.4, “Server Status Variables”, for additional information. -
All characters occurring on the same line following the
DELIMITERkeyword will be set as delimiter. For example,DELIMITER :;will set:;as the delimiter. This behavior is now consistent between MySQL 5.1 and MySQL 5.0. (Bug #9879) -
The
table,type, androwscolumns ofEXPLAINoutput can now beNULL. This is required for usingEXPLAINonSELECTqueries that use no tables (for example,EXPLAIN SELECT 1). (Bug #9899) -
Placeholders now can be used for
LIMITin prepared statements. (Bug #7306) -
SHOW BINARY LOGSnow displays aFile_sizecolumn that indicates the size of each file. -
The
--delayed-insertoption for mysqldump has been disabled to avoid causing problems with storage engines that do not supportINSERT DELAYED. (Bug #7815) -
Improved the optimizer to be able to use indexes for expressions of the form
indexed_colNOT IN (val1,val2, ...) andindexed_colNOT BETWEENval1ANDval2.. (Bug #10561) -
Removed
mysqlshutdown.exeandmysqlwatch.exefrom the Windows “No Installer” distribution (they had already been removed from the “With Installer” distribution before). Removed those programs from the source distribution. -
Removed
WinMySQLAdminfrom the source distribution and from the “No Installer” Windows distribution (it had already been removed from the “With Installer” distribution before). -
InnoDB: In stored procedures and functions,InnoDBno longer takes full explicit table locks for every involved table. Only `intention' locks are taken, similar to those in the execution of an ordinary SQL statement. This greatly reduces the number of deadlocks.
Bugs fixed:
-
Security update: A user with limited privileges could obtain information about the privileges of other users by querying objects in the
INFORMATION_SCHEMAdatabase for which that user did not have the requisite privileges. (Bug #10964) -
Triggers with dropped functions caused crashes. (Bug #5893)
-
Failure of a
BEFOREtrigger did not prevent the triggering statement from performing its operation on the row for which the trigger error occurred. Now the triggering statement fails as described in Section 18.3, “Using Triggers”. (Bug #10902) -
Issuing a write lock for a table from one client prevented other clients from accessing the table's metadata. For example, if one client issued a
LOCK TABLESmydb.mytableWRITE, then a second client attempting to execute aUSEmydb; would hang. (Bug #9998) -
The
LAST_DAY()failed to returnNULLwhen supplied with an invalid argument. See Section 12.5, “Date and Time Functions”. (Bug #10568) -
The functions
COALESCE(),IF(), andIFNULL()performed incorrect conversions of their arguments. (Bug #9939) -
The
TIME_FORMAT()function returned incorrect results with some format specifiers. See Section 12.5, “Date and Time Functions”. (Bug #10590) -
Dropping stored routines when the MySQL server had been started with
--skip-grant-tablesgenerated extraneous warnings. (Bug #9993) -
A problem with the
my_global.hfile caused compilation of MySQL to fail on single-processor Linux systems running 2.6 kernels. (Bug #10364) -
The ucs2_turkish_ci collation failed with upper('i'). UPPER/LOWER now can return a string with different length. (Bug #8610)
-
OPTIMIZE of InnoDB table does not return 'Table is full' if out of tablespace. (Bug #8135)
-
GROUP BY queries with ROLLUP returned wrong results for expressions containing group by columns. (Bug #7894)
-
Fixed bug in
FIELD()function where value list containsNULL. (Bug #10944) -
Corrected a problem where an incorrect data type was returned in the result set metadata when using a prepared
SELECT DISTINCTstatement to select from a view. (Bug #11111) -
Fixed bug in the MySQL Instance manager that caused the version to always be
unknownwhenSHOW INSTANCE STATUSwas issued. (Bug #10229) -
Using
ORDER BYto sort the results of anIF()that contained aFROM_UNIXTIME()expression returned incorrect results due to integer overflow. (Bug #9669) -
Fixed a server crash resulting from accessing
InnoDBtables within stored functions. This is handled by prohibiting statements that do an implicit or explicit commit or rollback within stored functions or triggers. (Bug #10015) -
Fixed a server crash resulting from the second invocation of a stored procedure that selected from a view defined as a join that used
ONin the join conditions. (Bug #6866) -
Using
ALTER TABLEfor a table that had a trigger caused a crash when executing a statement that activated the trigger, and also a crash later withUSEdb_namefor the database containing the table. (Bug #5894) -
Fixed a server crash resulting from an attempt to allocate too much memory when
GROUP BYblob_colandCOUNT(DISTINCT)were used. (Bug #11088) -
Fixed a portability problem for compiling on Windows with Visual Studio 6. (Bug #11153)
-
The incorrect sequence of statements
HANDLERtbl_nameREADindex_nameNEXT without a precedingHANDLERtbl_nameREADindex_name= (value_list) for anInnoDBtable resulted in a server crash rather than an error. (Bug #5373) -
On Windows, with
lower_case_table_namesset to 2, usingALTER TABLEto alter aMEMORYorInnoDBtable that had a mixed-case name also improperly changed the name to lowercase. (Bug #9660) -
The server timed out SSL connections too quickly on Windows. (Bug #8572)
-
Executing
LOAD INDEX INTO CACHEfor a table while other threads where selecting from the table caused a deadlock. (Bug #10602) -
Fixed a server crash resulting from
CREATE TABLE ... SELECTthat selected from a table being altered byALTER TABLE. (Bug #10224) -
The
FEDERATEDstorage engine properly handled outer joins, but not inner joins. (Bug #10848) -
Consistently report
INFORMATION_SCHEMAtable names in uppercase inSHOW TABLE STATUSoutput. (Bug #10059) -
Fixed a failure of
WITH ROLLUPto sum values properly. (Bug #10982) -
Triggers were not being activated for multiple-table
UPDATEorDELETEstatements. (Bug #5860) -
INSERT BEFOREtriggers were not being activated forINSERT ... SELECTstatements. (Bug #6812) -
INSERT BEFOREtriggers were not being activated for implicit inserts (LOAD DATA). (Bug #8755) -
If a stored function contained a
FLUSHstatement, the function crashed when invoked.FLUSHnow is disallowed within stored functions. (Bug #8409) -
Multiple-row
REPLACEcould fail on a duplicate-key error when having oneAUTO_INCREMENTkey and one unique key. (Bug #11080) -
Fixed a server crash resulting from invalid string pointer when inserting into the
mysql.hosttable. (Bug #10181) -
Multiple-table
DELETEdid always delete on the fly from the first table that was to be deleted from. In some cases, when using many tables and it was necessary to access the same row twice in the first table, we could miss some rows-to-be-deleted from other tables. This is now fixed. -
The
mysql_next_result()function could hang if you were executing many statements in amysql_real_query()call and one of those statements raised an error. (Bug #9992) -
The combination of
COUNT(),DISTINCT, andCONCAT()sometimes triggered a memory deallocation bug on Windows resulting in a server crash. (Bug #9593) -
InnoDB: Do very fast shutdown only ifinnodb_fast_shutdown=2, but wait for threads to exit and release allocated memory ifinnodb_fast_shutdown=1. Starting with MySQL/InnoDB 5.0.5, InnoDB would do brutal shutdown also wheninnodb_fast_shutdown=1. (Bug #9673) -
InnoDB: FixedInnoDB: Error: stored_select_lock_type is 0 inside ::start_stmt()!in a stored procedure call ifinnodb_locks_unsafe_for_binlogwas set inmy.cnf. (Bug #10746) -
InnoDB: Fixed a duplicate key error that occurred withREPLACEin a table with anAUTO-INCcolumn. (Bug #11005) -
MySQL would pass an incorrect key length to storage engines for
MIN(). This could cause warningsInnoDB: Warning: using a partial-field key prefix in search.in the.errlog. (Bug #11039, same as Bug #13218 in MySQL 4.1.15) -
Fixed a server crash for
INSERTorUPDATEwhen theWHEREclause contained a correlated subquery that referred to a column of the table being modified. (Bug #6384) -
Fixed a problem causing an incorrect result for columns that include an aggregate function as part of an expression when
WITH ROLLUPis added toGROUP BY. (Bug #7914) -
Fixed a problem with returning an incorrect result from a view that selected a
COALESCE()expression from the result of an outer join. (Bug #9938) -
MySQL was adding a
DEFAULTclause toENUMcolumns that included no explicitDEFAULTand were defined asNOT NULL. (This is supposed to happen only for columns that areNULL.) (Bug #6267) -
Corrected inappropriate error messages that were displayed when attempting to set the read-only
warning_countanderror_countsystem variables. (Bug #10339)
Functionality added or changed:
-
Incompatible change:
MyISAMandInnoDBtables created withDECIMALcolumns in MySQL 5.0.3 to 5.0.5 will appear corrupt after an upgrade to MySQL 5.0.6. Dump such tables with mysqldump before upgrading, and then reload them after upgrading. (The same incompatibility will occur for these tables created in MySQL 5.0.6 after a downgrade to MySQL 5.0.3 to 5.0.5.) (Bug #10465, Bug #10625) -
Incompatible change: The behavior of
LOAD DATA INFILEandSELECT ... INTO OUTFILEhas changed when theFIELDS TERMINATED BYandFIELDS ENCLOSED BYvalues both are empty. Formerly, a column was read or written the display width of the column. For example,INT(4)was read or written using a field with a width of 4. Now columns are read and written using a field width wide enough to hold all values in the field. However, data files written before this change was made might not be reloaded correctly withLOAD DATA INFILEfor MySQL 4.1.12 and up. This change also affects data files read by mysqlimport and written by mysqldump --tab, which useLOAD DATA INFILEandSELECT ... INTO OUTFILE. For more information, see Section 13.2.5, “LOAD DATA INFILESyntax”. (Bug#12564) -
The precision of the
DECIMALdata type has been increased from 64 to 65 decimal digits. -
Added the
div_precision_incrementsystem variable, which indicates the number of digits of precision by which to increase the result of division operations performed with the/operator. -
Added the
log_bin_trust_routine_creatorssystem variable, which applies when binary logging is enabled. It controls whether stored routine creators can be trusted not to create stored routines that will cause unsafe events to be written to the binary log. -
Added the
--log-bin-trust-routine-creatorsserver option for setting thelog_bin_trust_routine_creatorssystem variable from the command line. -
Implemented the
STMT_ATTR_PREFETCH_ROWSoption for themysql_stmt_attr_set()C API function. This sets how many rows to fetch at a time when using cursors with prepared statements. -
The
GRANTandREVOKEstatements now support anobject_typeclause to be used for disambiguating whether the grant object is a table, a stored function, or a stored procedure. Use of this clause requires that you upgrade your grant tables. See Section 5.6.1, “mysql_fix_privilege_tables — Upgrade MySQL System Tables”. (Bug #10246) -
Added
REFERENCED_TABLE_SCHEMA,REFERENCED_TABLE_NAME, andREFERENCED_COLUMN_NAMEcolumns to theKEY_COLUMN_USAGEtable ofINFORMATION_SCHEMA. (Bug #9587) -
Added a
--show-warningsoption to mysql to cause warnings to be shown after each statement if there are any. This option applies to interactive and batch mode. In interactive mode,\wand\Wmay be used to enable and disable warning display. (Bug #8684) -
Removed a limitation that prevented use of FIFOs as logging targets (such as for the general query log). This modification does not apply to the binary log and the relay log. (Bug #8271)
-
Added a
--debugoption to my_print_defaults. -
When the server cannot read a table because it cannot read the
.frmfile, print a message that the table was created with a different version of MySQL. (This can happen if you create tables that use new features and then downgrade to an older version of MySQL.) (Bug #10435) -
SHOW VARIABLESnow shows theslave_compressed_protocol,slave_load_tmpdirandslave_skip_errorssystem variables. (Bug #7800) -
Removed unused system variable
myisam_max_extra_sort_file_size. -
Changed default value of
myisam_data_pointer_sizefrom 4 to 6. This allows us to avoidtable is fullerrors for most cases. -
The variable
concurrent_insertnow takes 3 values. Setting this to 2 changesMyISAMto do concurrent inserts to end of table if table is in use by another thread. -
New
/*>prompt for mysql. This prompt indicates that a/* ... */comment was begun on an earlier line and the closing*/sequence has not yet been seen. (Bug #9186) -
If strict SQL mode is enabled,
VARCHARandVARBINARYcolumns with a length greater than 65,535 no longer are silently converted toTEXTorBLOBcolumns. Instead, an error occurs. (Bug #8295, Bug #8296) -
The
INFORMATION_SCHEMA.SCHEMATAtable now has aDEFAULT_COLLATION_NAMEcolumn. (Bug #8998) -
InnoDB: When the maximum length ofSHOW INNODB STATUSoutput would be exceeded, truncate the beginning of the list of active transactions, instead of truncating the end of the output. (Bug #5436) -
InnoDB: Ifinnodb_locks_unsafe_for_binlogoption is set and the isolation level of the transaction is not set to serializable thenInnoDBuses a consistent read for select in clauses likeINSERT INTO ... SELECTandUPDATE ... (SELECT)that do not specifyFOR UPDATEorIN SHARE MODE. Thus no locks are set to rows read from selected table. -
Updated version of
libeditto 2.9. (Bug #2596) -
Removed
mysqlshutdown.exeandmysqlwatch.exefrom the Windows “With Installer” distribution.
Bugs fixed:
-
An error in the implementation of the
MyISAMcompression algorithm causedmyisampackto fail with very large sets of data (total size of all the records in a single column needed to be >= 3 GB in order to trigger this issue). (Bug #8321) -
Statements that create and use stored routines were not being written to the binary log, which affects replication and data recovery options. (Bug #2610) Stored routine-related statements now are logged, subject to the issues and limitations discussed in Section 17.4, “Binary Logging of Stored Routines and Triggers”.
-
Disabled binary logging within stored routines to avoid writing spurious extra statements to the binary log. For example, if a routine
p()executes anINSERTstatement, then forCALL p(), theCALLstatement appears in the binary log, but not theINSERTstatement. (Bug #9100) -
Statements that create and drop triggers were not being written to the binary log, which affects replication and data recovery options. (Bug #10417) Trigger-related statements now are logged, subject to the issues and limitations discussed in Section 17.4, “Binary Logging of Stored Routines and Triggers”.
-
The
mysql_stmt_execute()andmysql_stmt_reset()C API functions now close any cursor that is open for the statement, which prevents a server crash. (Bug #9478) -
The
mysql_stmt_attr_set()C API function now returns an error for option values that are defined inmysql.hbut not yet implemented, such asCURSOR_TYPE_SCROLLABLE. (Bug #9643) -
MERGEtables could fail on Windows due to incorrect interpretation of pathname separator characters for filenames in the.MRGfile. (Bug #10687) -
Fixed a server crash for
INSERT ... ON DUPLICATE KEY UPDATEwithMERGEtables, which do not have unique indexes. (Bug #10400) -
Fix
FORMAT()to do better rounding for double values (for example,FORMAT(4.55,1)returns4.6, not4.5). (Bug #9060) -
Disallow use of
SESSIONorGLOBALfor user variables or local variables in stored routines. (Bug #9286) -
Fixed a server crash when using
GROUP BY ... WITH ROLLUPon an indexed column in anInnoDBtable. (Bug #9798) -
In strict SQL mode, some assignments to numeric columns that should have been rejected were not (such as the result of an arithmetic expression or an explicit
CAST()operation). (Bug #6961) -
CREATE TABLE t AS SELECT UUID()created aVARCHAR(12)column, which is too small to hold the 36-character result fromUUID(). (Bug #9535) -
Fixed a server crash in the
BLACKHOLEstorage engine. (Bug #10175) -
Fixed a server crash resulting from repeated calls to
ABS()when the argument evaluated toNULL. (Bug #10599) -
For a user-defined function invoked from within a prepared statement, the UDF's initialization routine was invoked for each execution of the statement, but the deinitialization routine was not. (It was invoked only when the statement was closed.) Similarly, when invoking a UDF from within a trigger, the initialization routine was invoked but the deinitialization routine was not. For UDFs that have an expensive deinit function (such as
myperl, this bugfix will have negative performance consequences. (Bug #9913) -
Portability fix for Cygwin: Don't use
#pragma interfacein source files. (Bug #10241) -
Fix
CREATE TABLE ... LIKEto work whenlower_case_table_namesis set on a case-sensitive filesystem and the source table name is not given in lowercase. (Bug #9761) -
Fixed a server crash resulting from a
CHECK TABLEstatement where the arguments were a view name followed by a table name. (Bug #9897) -
Within a stored procedure, attempting to update a view defined as an inner join failed with a
Table 'tbl_name' was locked with a READ lock and can't be updated error. (Bug #9481) -
Fixed a problem with
INFORMATION_SCHEMAtables being inaccessible depending on lettercase used to refer to them. (Bug #10018) -
my_print_defaults was ignoring the
--defaults-extra-fileoption or crashing when the option was given. (Bug #9136, Bug #9851) -
The
INFORMATION_SCHEMA.COLUMNStable was missing columns of views for which the user has access. (Bug #9838) -
Fixed a mysqldump crash that occurred with the
--complete-insertoption when dumping tables with a large number of long column names. (Bug #10286) -
Corrected a problem where
DEFAULTvalues where not assigned properly toBIT(1)orCHAR(1)columns if certain other columns preceded them in the table definition. (Bug #10179) -
For
MERGEtables, avoid writing absolute pathnames in the.MRGfile for the names of the constituentMyISAMtables so that if the data directory is moved,MERGEtables will not break. For mysqld, write just theMyISAMtable name if it is in the same database as theMERGEtable, and a path relative to the data directory otherwise. For the embedded servers, absolute pathnames may still be used. (Bug #5964) -
Corrected a problem resolving outer column references in correlated subqueries when using the prepared statements. (Bug #10041)
-
Corrected the error message for exceeding the
MAX_CONNECTIONS_PER_HOURlimit to saymax_connections_per_hourinstead ofmax_connections. (Bug #9947) -
Fixed incorrect memory block allocation for the query cache in the embedded server. (Bug #9549)
-
Corrected an inability to select from a view within a stored procedure. (Bug #9758)
-
Fixed a server crash resulting from use of
AVG(DISTINCT)withGROUP BY ... WITH ROLLUP. (Bug #9799) -
Fixed a server crash resulting from use of
DISTINCT AVG()withGROUP BY ... WITH ROLLUP. (Bug #9800) -
Fixed a server crash resulting from use of a
CHARorVARCHARcolumn withMIN()orMAX()andGROUP BY ... WITH ROLLUP. (Bug #9820) -
Fixed a server crash resulting from use of
SELECT DISTINCTwith a prepared statement that uses a cursor. (Bug #9520) -
Fixed server crash resulting from multiple calls to a stored procedure that assigned the result of a subquery to a variable or compared it to a value with
IN. (Bug #5963) -
Selecting from a single-table view defined on multiple-table views caused a server crash. (Bug #8528)
-
If the file named by a
--defaults-extra-fileoption does not exist or is otherwise inaccessible, an error now occurs. (Bug #5056) -
net_read_timeoutandnet_write_timeoutwere not being respected on Windows. (Bug #9721) -
SELECTfromINFORMATION_SCHEMAtables failed if the statement has aGROUP BYclause and an aggregate function in the select list. (Bug #9404) -
Corrected some failures of prepared statements for SQL (
PREPAREplusEXECUTE) to return all rows for someSELECTstatements. (Bug #9096, Bug #9777) -
Remove extra slashes in
--tmpdirvalue (for example, convert/var//tmpto/var/tmp, because they caused various errors. (Bug #8497) -
Added
Create_routine_priv,Alter_routine_priv, andExecute_privprivileges to themysql.hostprivilege table. (They had been added tomysql.dbin MySQL 5.0.3 but not to thehosttable.) (Bug #8166) -
Fixed configure to properly recognize whether NTPL is available on Linux. (Bug #2173)
-
Incomplete results were returned from
INFORMATION_SCHEMA.COLUMNSforINFORMATION_SCHEMAtables for non-rootusers. (Bug #10261) -
Fixed a portability problem in compiling
mysql.ccwith VC++ on Windows. (Bug #10245) -
SELECT 0/0returned0rather thanNULL. (Bug #10404) -
MAX()for anINT UNSIGNED(unsigned 4-byte integer) column could return negative values if the column contained values larger than 231. (Bug #9298) -
SHOW CREATE VIEWgot confused and could not find the view if there was a temporary table with the same name as the view. (Bug #8921) -
Fixed a deadlock resulting from use of
FLUSH TABLES WITH READ LOCKwhile anINSERT DELAYEDstatement is in progress. (Bug #7823) -
The optimizer was choosing suboptimal execution plans for certain outer joins where the right table of a left join (or left table of a right join) had both
ONandWHEREconditions. (Bug #10162) -
RENAME TABLEfor anARCHIVEtable failed if the.arnfile was not present. (Bug #9911) -
Invoking a stored function that executed a
SHOWstatement resulted in a server crash. (Bug #8408) -
Fixed problems with static variables and do not link with
libsupc++to allow building on FreeBSD 5.3. (Bug #9714) -
Fixed some awk script portability problems in cmd-line-utils/libedit/makelist.sh. (Bug #9954)
-
Fixed a problem with mishandling of
NULLkey parts in hash indexes onVARCHARcolumns, resulting in incorrect query results. (Bug #9489, Bug #10176) -
InnoDB: Fixed a critical bug in InnoDBAUTO_INCREMENT: it could assign the same value for several rows. (Bug #10359)InnoDB: All InnoDB bug fixes from 4.1.12 and earlier versions, and also the fixes to bugs #10335 and #10607 listed in the 4.1.13 change notes.
No public release of MySQL 5.0.5 was made. The changes described in this section are available in MySQL 5.0.6.
Functionality added or changed:
-
Added support for the
BITdata type to theMEMORY,InnoDB, andBDBstorage engines. -
SHOW VARIABLESno longer displays the deprecatedlog_updatesystem variable. (Bug #9738) -
The behavior controlled by the
--innodb-fast-shutdownoption now can be changed at runtime by setting the value of the globalinnodb_fast_shutdownsystem variable. It now accepts values 0, 1 and 2 (except on Netware where 2 is disabled). If set to 2, then when the MySQL server shuts down,InnoDBwill just flush its logs and shut down brutally (and quickly) as if a MySQL crash had occurred; no committed transaction will be lost, but a crash recovery will be done at next startup.
Bugs fixed:
-
Security fix: If mysqld was started with
--user=non_existent_user, it would run using the privileges of the account it was invoked from, even if that wasroot. (Bug #9833) -
Corrected a failure to resolve a column reference correctly for a
LEFT JOINthat compared a join column to anINsubquery. (Bug #9338) -
Fixed a problem where, after an internal temporary table in memory became too large and had to be converted to an on-disk table, the error indicator was not cleared and the query failed with error 1023 (
Can't find record in ''). (Bug #9703) -
Multiple-table updates could produce spurious data-truncation warnings if they used a join across columns that are indexed using a column prefix. (Bug #9103)
-
Fixed a string-length comparison problem that caused mysql to fail loading dump files containing certain ‘
\’-sequences. (Bug #9756) -
Fixed a failure to resolve a column reference properly when an outer join involving a view contained a subquery and the column was used in the subquery and the outer query. (Bug #6106, Bug #6107)
-
Use of a subquery that used
WITH ROLLUPin theFROMclause of the main query sometimes resulted in aColumn cannot be nullerror. (Bug #9681) -
Fixed a memory leak that occurred when selecting from a view that contained a subquery. (Bug #10107)
-
Fixed an optimizer bug in computing the union of two ranges for the
ORoperator. (Bug #9348) -
Fixed a segmentation fault in mysqlcheck that occurred when the last table checked in
--auto-repairmode returned an error (such as the table being aMERGEtable). (Bug #9492) -
SET @var= CAST(NULL AS [INTEGER|CHAR])now sets the result type of the variable toINTEGER/CHAR. (Bug #6598) -
Incorrect results were returned for queries of the form
SELECT ... LEFT JOIN ... WHERE EXISTS (subquery), where the subquery selected rows based on anIS NULLcondition. (Bug #9516) -
Executing
LOCK TABLESand then calling a stored procedure caused an error and resulting in the server thinking that no stored procedures exist. (Bug #9566) -
Selecting from a view containing a subquery caused the server to hang. (Bug #8490)
-
Within a stored procedure, attempting to execute a multiple-table
UPDATEfailed with aTable 'tbl_name' was locked with a READ lock and can't be updated error. (Bug #9486) -
Starting mysqld with the
--skip-innodband--default-storage-engine=innodb(or--default-table-type=innodbcaused a server crash. (Bug #9815) -
Queries containing
CURRENT_USER()incorrectly were registered in the query cache. (Bug #9796) -
Setting the
storage_enginesystem variable toMEMORYsucceeded, but retrieving the variable resulted in a value ofHEAP(the old name for theMEMORYstorage engine) rather thanMEMORY. (Bug #10039) -
mysqlshow displayed an incorrect row count for tables. (Bug #9391)
-
The server died with signal 11 if a non-existent location was specified for the location of the binary log. Now the server exits after printing an appropriate error message. (Bug #9542)
-
Fixed a problem in the client/server protocol where the server closed the connection before sending the final error message. The problem could show up as a
Lost connection to MySQL server during querywhen attempting to connect to access a non-existent database. (Bug #6387, Bug #9455) -
Fixed a
readline-related crash in mysql when the user pressed Control-R. (Bug #9568) -
For stored functions that should return a
YEARvalue, corrected a failure of the value to be inYEARformat. (Bug #8861) -
Fixed a server crash resulting from invocation of a stored function that returned a value having an
ENUMorSETdata type. (Bug #9775) -
Fixed a server crash resulting from invocation of a stored function that returned a value having a
BLOBdata type. (Bug #9102) -
Fixed a server crash resulting from invocation of a stored function that returned a value having a
BITdata type. (Bug #7648) -
TIMEDIFF()with a negative time first argument and positive time second argument produced incorrect results. (Bug #8068) -
Fixed a problem with
OPTIMIZE TABLEforInnoDBtables being written twice to the binary log. (Bug #9149) -
InnoDB: PreventALTER TABLEfrom changing the storage engine if there are foreign key constraints on the table. (Bug #5574, Bug #5670) -
InnoDB: Fixed a bug where next-key locking doesn't allow the insert which does not produce a phantom. (Bug #9354) If the range is of type'a' <= uniquecolumn,InnoDBlock only the RECORD, if the record with the column value'a'exists in a CLUSTERED index. This allows inserts before a range. -
InnoDB: WhenFOREIGN_KEY_CHECKS=0,ALTER TABLEandRENAME TABLEwill ignore any type incompatibilities between referencing and referenced columns. Thus, it will be possible to convert the character sets of columns that participate in a foreign key. Be sure to convert all tables before modifying any data! (Bug #9802) -
Provide more informative error messages in clustered setting when a query is issued against a table that has been modified by another mysqld server. (Bug #6762)
Functionality added or changed:
-
Added
ENGINE=MyISAMtable option when creatingmysql.proctable in mysql_create_system_tables script to make sure the table is created as aMyISAMtable even if the default storage engine has been changed. (Bug #9496) -
SHOW CREATE TABLEfor anINFORMATION_SCHEMAtable no longer prints aMAX_ROWSvalue because the value has no meaning. (Bug #8941) -
Invalid
DEFAULTvalues forCREATE TABLEnow generate errors. (Bug #5902) -
Added
--show-table-typeoption to mysqlshow, to display a column indicating the table type, as inSHOW FULL TABLES. (Bug #5036) -
The way the time zone information is stored in the binary log was changed, so that it is now possible to have a replication master and slave running with different global time zones. A drawback is that replication from 5.0.4 masters to pre-5.0.4 slaves is impossible.
-
Added
--with-big-tablescompilation option to configure. (Previously it was necessary to pass-DBIG_TABLESto the compiler manually in order to enable large table support.) See Section 2.9.2, “Typical configure Options”, for details. -
New configuration directives
!includeand!includedirimplemented for including option files and searching directories for option files. See Section 4.3.2, “Using Option Files”, for usage.
Bugs fixed:
-
The use of
XORtogether withNOT ISNULL()erroneously resulted in some outer joins being converted to inner joins by the optimizer. (Bug #9017) -
Fixed an optimizer problem where extraneous comparisons between
NULLvalues in indexed columns were being done for operators such as=that are never true forNULL. (Bug #8877) -
Fixed the client/server protocol for prepared statements so that reconnection works properly when the connection is killed while reconnect is enabled. (Bug #8866)
-
A server installed as a Windows service and started with
--shared-memorycould not be stopped. (Bug #9665) -
Fixed a server crash resulting from multiple executions of a prepared statement involving a join of an
INFORMATION_SCHEMAtable with another table. (Bug #9383) -
Fixed
utf8_spanish2_cianducs2_spanish2_cicollations to not consider ‘r’ equal to ‘rr’. If you upgrade to this version from an earlier version, you should rebuild the indexes of affected tables. (Bug #9269) -
mysqldump dumped core when invoked with
--tmpand--single-transactionoptions and a non-existent table name. (Bug #9175) -
Allow extra HKSCS and cp950 characters (
big5extension characters) to be accepted inbig5columns. (Bug #9357) -
mysql.server no longer uses non-portable alias command or LSB functions. (Bug #9852)
-
Fixed a server crash resulting from
GROUP BYon a decimal expression. (Bug #9210) -
In prepared statements, subqueries containing parameters were erroneously treated as
consttables during preparation, resulting in a server crash. (Bug #8807) -
InnoDB:
ENUMandSETcolumns were treated incorrectly as character strings. This bug did not manifest itself withlatin1collations if there were less than about 100 elements in anENUM, but it caused malfunction withUTF-8. Old tables will continue to work. In new tables,ENUMandSETwill be internally stored as unsigned integers. (Bug #9526) -
InnoDB: Avoid test suite failures caused by a locking conflict between two server instances at server shutdown/startup. This conflict on advisory locks appears to be the result of a bug in the operating system; these locks should be released when the files are closed, but somehow that does not always happen immediately in Linux. (Bug #9381)
-
InnoDB: True
VARCHAR: InnoDB stored the 'position' of a row wrong in a column prefix primary key index; this could cause MySQL to complainERROR 1032: Can't find record …in an update of the primary key, and also someORDER BYorDISTINCTqueries. (Bug #9314) -
InnoDB: Fix bug in MySQL/InnoDB 5.0.3: SQL statements were not rolled back on error. (Bug #8650)
-
Fixed a
Commands out of syncerror when two prepared statements for single-row result sets were open simultaneously. (Bug #8880) -
Fixed a server crash after a call to
mysql_stmt_close()for single-row result set. (Bug #9159) -
Fixed server crashes for
CREATE TABLE ... SELECTorINSERT INTO ... SELECTwhen selecting from multiple-table view. (Bug #8703, Bug #9398) -
TRADITIONALSQL mode should prevent inserts where a column with no default value is omitted or set to a value ofDEFAULT. Fixed cases where this restriction was not enforced. (Bug #5986) -
Fixed a server crash when creating a
PRIMARY KEYfor a table, if the table contained aBITcolumn. (Bug #9571) -
Warning message from
GROUP_CONCAT()did not always indicate correct number of lines. (Bug #8681) -
The commit count cache for
NDBwas not properly invalidated when deleting a record using a cursor. (Bug #8585) -
Fixed option-parsing code for the embedded server to understand
K,M, andGsuffixes for thenet_buffer_lengthandmax_allowed_packetoptions. (Bug #9472) -
Selecting a
BITcolumn failed if the binary client/server protocol was used. (Bug #9608) -
Fixed a permissions problem whereby information in
INFORMATION_SCHEMAcould be exposed to a user with insufficient privileges. (Bug #7214) -
An error now occurs if you try to insert an invalid value via a stored procedure in
STRICTmode. (Bug #5907) -
Link with
libsupc++on Fedora Core 3 to get language support functions. (Bug #6554) -
The value of the
CHARACTER_MAXIMUM_LENGTHandCHARACTER_OCTET_LENGTHcolumns of theINFORMATION_SCHEMA.COLUMNStable must beNULLfor numeric columns, but were not. (Bug #9344) -
DROP TABLEdid not drop triggers that were defined for the table.DROP DATABASEdid not drop triggers in the database. (Bug #5859, Bug #6559) -
CREATE OR REPLACE VIEWandALTER VIEWnow require theCREATE VIEWandDROPprivileges, notCREATE VIEWandDELETE. (DELETEis a row-level privilege, not a table-level privilege.) (Bug #9260) -
Some user variables were not being handled with “implicit” coercibility. (Bug #9425)
-
Setting the
max_error_countsystem variable to 0 resulted in a setting of 1. (Bug #9072) -
Fixed a collation coercibility problem that caused a union between binary and non-binary columns to fail. (Bug #6519)
-
Fixed a bug in division of floating point numbers. It could cause nine zeros (
000000000) to be inserted in the middle of the quotient. (Bug #9501) -
INFORMATION_SCHEMAtables had an implicit upper limit for the number of rows. As a result, not all data could be returned for some queries. (Bug #9317) -
Fixed a problem with the
teecommand in mysql that resulted in mysql crashing. (Bug #8499) -
CAST()now produces warnings when casting incorrectINTEGERandCHARvalues. This also applies to implicitstringtonumbercasts. (Bug #5912) -
ALTER TABLEnow fails inSTRICTmode if the alteration generates warnings. -
Using
CONVERT('0000-00-00',date)orCAST('0000-00-00' as date)with theNO_ZERO_DATESQL mode enabled now produces a warning. (Bug #6145) -
Inserting a zero date in a
DATE,DATETIMEorTIMESTAMPcolumn duringTRADITIONALmode now produces an error. (Bug #5933) -
Inserting a zero date into a
DATETIMEcolumn inTRADITIONALmode now produces an error. -
STR_TO_DATE()now produces errors in strict mode (and warnings otherwise) when given an illegal argument. (Bug #5902) -
Fixed a problem with
ORDER BYthat sometimes caused incorrect sorting ofutf8data. (Bug #9309) -
Fixed server crash resulting from queries that combined
SELECT DISTINCT,SUM(), andROLLUP. (Bug #8615) -
Incorrect results were returned from queries that combined
SELECT DISTINCT,GROUP BY, andROLLUP. (Bug #8616) -
Too many rows were returned from queries that combined
ROLLUPandLIMITifSQL_CALC_FOUND_ROWSwas given. (Bug #8617) -
If on replication master a
LOAD DATA INFILEis interrupted in the middle (integrity constraint violation, killed connection...), the slave used to skip thisLOAD DATA INFILEentirely, thus missing some changes if this command permanently inserted/updated some table records before being interrupted. This is now fixed. (Bug #3247)
Note: This Beta release, as any other pre-production release, should not be installed on “production” level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any software beta release.
Functionality added or changed:
-
Security improvement: The server creates
.frm,.MYD,.MYI,.MRG,.ISD, and.ISMtable files only if a file with the same name does not already exist. Thanks to Stefano Di Paola<[email protected]>for finding and informing us about this issue. (CVE-2005-0711) -
Security improvement: User-defined functions should have at least one symbol defined in addition to the
xxxsymbol that corresponds to the mainxxx()function. These auxiliary symbols correspond to thexxx_init(),xxx_deinit(),xxx_reset(),xxx_clear(), andxxx_add()functions. mysqld by default no longer loads UDFs unless they have at least one auxiliary symbol defined in addition to the main symbol. The--allow-suspicious-udfsoption controls whether UDFs that have only anxxxsymbol can be loaded. By default, the option is off. mysqld also checks UDF filenames when it reads them from themysql.functable and rejects those that contain directory pathname separator characters. (It already checked names as given inCREATE FUNCTIONstatements.) See Section 24.2.4.1, “UDF Calling Sequences for Simple Functions”, Section 24.2.4.2, “UDF Calling Sequences for Aggregate Functions”, and Section 24.2.4.6, “User-Defined Function Security Precautions”. Thanks to Stefano Di Paola<[email protected]>for finding and informing us about this issue. (CVE-2005-0709, CVE-2005-0710) -
The
DECIMALandNUMERICdata types now are handled with a fixed-point library that allows for precision math handling that results in more accurate results. See Chapter 21, Precision Math.Warning: Incompatible change: A consequence of the change in handling of the
DECIMALandNUMERICfixed-point data types is that the server is more strict to follow standard SQL. For example, a data type ofDECIMAL(3,1)stores a maximum value of 99.9. Previously, the server allowed larger numbers to be stored. That is, it stored a value such as 100.0 as 100.0. Now the server clips 100.0 to the maximum allowable value of 99.9. If you have tables that were created before MySQL 5.0.3 and that contain floating-point data not strictly legal for the data type, you should alter the data types of those columns. For example:ALTER TABLE
tbl_nameMODIFYcol_nameDECIMAL(4,1); -
Incompatible change: The C API
ER_WARN_DATA_TRUNCATEDwarning symbol was renamed toWARN_DATA_TRUNCATED. -
InnoDB: Upgrading from 4.1: The sorting order for end-space in
TEXTcolumns for InnoDB tables has changed. Starting from 5.0.3, InnoDB comparesTEXTcolumns as space-padded at the end. If you have a non-unique index on aTEXTcolumn, you should runCHECK TABLEon it, and runOPTIMIZE TABLEif the check reports errors. If you have aUNIQUE INDEXon aTEXTcolumn, you should rebuild the table withOPTIMIZE TABLE. -
Implemented support for XA transactions. See Section 13.4.7, “XA Transactions”. The implementation make the
innodb_safe_binlogsystem variable obsolete, so it has been removed. -
mysqlbinlog now prints a
ROLLBACKstatement at the end of its output, in case the server crashed while it was in the process of writing the final entry into the last binary log named on the command line. This causes any half-written transaction to be rolled back when the output is executed. TheROLLBACKis harmless if the binary log file was written and closed normally. -
Added the
engine_condition_pushdownsystem variable. For NDB, setting this variable to 1 allows processing of someWHEREclause conditions to be processed in NDB nodes before rows are sent to the MySQL server, rather than having rows sent to the server for evaluation. -
Additional control over transaction completion was implemented. The
COMMITandROLLBACKstatements supportAND [NO] CHAINandRELEASEclauses. There is a newRELEASE SAVEPOINTstatement. Thecompletion_typesystem variable was added for setting the global and session default completion type. -
A new
CREATE USERprivilege was added. -
my.cnfin the compile-time datadir (usually/usr/local/mysql/data/in the binary tarball distributions) is not being read anymore. The value of the environment variableMYSQL_HOMEis used instead of the hard-coded path. -
Support for the
ISAMstorage engine has been removed. If you haveISAMtables, you should convert them before upgrading. See Section 2.11.2, “Upgrading from MySQL 4.1 to 5.0”. -
Support for
RAIDoptions inMyISAMtables has been removed. If you have tables that use these options, you should convert them before upgrading. See Section 2.11.2, “Upgrading from MySQL 4.1 to 5.0”. -
Added support for
AVG(DISTINCT). -
ONLY_FULL_GROUP_BYno longer is included in theANSIcomposite SQL mode. (Bug #8510) -
mysqld_safe will create the directory where the UNIX socket file is to be located if the directory does not exist. This applies only to the last component of the directory pathname. (Bug #8513)
-
The coercibility for the return value of functions such as
USER()orVERSION()now is “system constant” rather than “implicit.” This makes these functions more coercible than column values so that comparisons of the two do not result inIllegal mix of collationserrors.COERCIBILITY()was modified to accommodate this new coercibility value. See Section 12.9.3, “Information Functions”. -
User variable coercibility has been changed from “coercible” to “implicit.” That is, user variables have the same coercibility as column values.
-
Boolean full-text phrase searching now requires only that matches contain exactly the same words as the phrase and in the same order. Non-word characters no longer need match exactly.
-
CHECKSUM TABLEreturns a warning for non-existing tables. The checksum value remainsNULLas before. (Bug #8256) -
The server now includes a timestamp in the
Ready for connectionsmessage that is written to the error log at startup. (Bug #8444) -
Added
SQL_NOTESsession variable to causeNote-level warnings not to be recorded. (Bug #6662) -
Allowed the service-installation command for Windows servers to specify a single option other than
--defaults-filefollowing the service name. This is for compatibility with MySQL 4.1. (Bug #7856) -
InnoDB: Commit after every 10,000 copied rows when executingALTER TABLE,CREATE INDEX,DROP INDEXorOPTIMIZE TABLE. This makes it much faster to recover from an aborted operation. -
Added
VAR_POP()andSTDDEV_POP()as standard SQL aliases for theVARIANCE()andSTDDEV()functions that compute population variance and standard deviation. Added newVAR_SAMP()andSTDDEV_SAMP()functions to compute sample variance and standard deviation. (Bug #3190) -
Fixed a problem with out-of-order packets being sent (
ERRORafterOKorEOF) following aKILL QUERYstatement. (Bug #6804) -
Retrieving from a view defined as a
SELECTthat mixedUNION ALLandUNION DISTINCTresulted in a different result than retrieving from the originalSELECT. (Bug #6565) -
Fixed a problem with non-optimal
index_mergequery execution plans being chosen on IRIX. (Bug #8578) -
BITin column definitions now is a distinct data type; it no longer is treated as a synonym forTINYINT(1). -
Bit-field values can be written using
b'value' notation.valueis a binary value written using 0s and 1s. -
From the Windows distribution, predefined accounts without passwords for remote users ("root@%", "@%") were removed (other distributions never had them).
-
Added
mysql_library_init()andmysql_library_end()as synonyms for themysql_server_init()andmysql_server_end()C API functions.mysql_library_init()andmysql_library_end()are#definesymbols, but the names more clearly indicate that they should be called when beginning and ending use of a MySQL C API library no matter whether the application useslibmysqlclientorlibmysqld. (Bug #6149) -
SHOW COLUMNSnow displaysNOrather than blank in theNulloutput column if the corresponding table column cannot beNULL. -
Changed XML format for mysql from
<col_name>col_value</col_name> to<field name="col_name">col_value</field> to allow for proper encoding of column names that are not legal as element names. (Bug #7811) -
Added
--innodb-checksumsand--innodb-doublewriteoptions for mysqld. -
Added
--large-pagesoption for mysqld. -
Added
multi_read_rangesystem variable. -
SHOW DATABASES,SHOW TABLES,SHOW COLUMNS, and so forth display information about theINFORMATION_SCHEMAdatabase. Also, severalSHOWstatements now accept aWHEREclause specifying which output rows to display. See Chapter 20, TheINFORMATION_SCHEMADatabase. -
Added the
CREATE ROUTINEandALTER ROUTINEprivileges, and made theEXECUTEprivilege operational. -
InnoDB: Corrected a bug in the crash recovery of
ROW_FORMAT=COMPACTtables that caused corruption. (Bug #7973) There may still be bugs in the crash recovery, especially inCOMPACTtables. -
When the
MyISAMstorage engine detects corruption of aMyISAMtable, a message describing the problem now is written to the error log. -
InnoDB: When MySQL/InnoDB is compiled on Mac OS X 10.2 or earlier, detect the operating system version at run time and use the
fcntl()file flush method on Mac OS X versions 10.3 and later. In Mac OS X,fsync()does not flush the write cache in the disk drive, but the specialfcntl()does; however, the flush request is ignored by some external devices. Failure to flush the buffers may cause severe database corruption at power outages. -
InnoDB: Implemented fast
TRUNCATE TABLE. The old approach (deleting rows one by one) may be used if the table is being referenced by foreign keys. (Bug #7150) -
Added
cp932(SJIS for Windows Japanese) andeucjpms(UJIS for Windows Japanese) character sets. -
Added several
InnoDBstatus variables. See Section 5.2.4, “Server Status Variables”. -
Added the
FEDERATEDstorage engine. See Section 14.7, “TheFEDERATEDStorage Engine”. -
SHOW CREATE TABLEnow usesUSINGindex_typerather thanTYPEindex_typeto specify an index type. (Bug #7233) -
InnoDB now supports a fast
TRUNCATE TABLE. One visible change from this is that auto-increment values for this table are reset onTRUNCATE. -
Added an
errormember to theMYSQL_BINDdata structure that is used in the C API for prepared statements. This member is used for reporting data truncation errors. Truncation reporting is enabled via the newMYSQL_REPORT_DATA_TRUNCATIONoption for themysql_options()C API function. -
API change: the
reconnectflag in theMYSQLstructure is now set to 0 bymysql_real_connect(). Only those client programs which didn't explicitly set this flag to 0 or 1 aftermysql_real_connect()experience a change. Having automatic reconnection enabled by default was considered too dangerous (after reconnection, table locks, temporary tables, user and session variables are lost). -
FLUSH TABLES WITH READ LOCKis now killable while it's waiting for runningCOMMITstatements to finish. -
MEMORY(HEAP) can haveVARCHAR()fields. -
VARCHARcolumns now remember end space. AVARCHAR()column can now contain up to 65535 bytes. For more details, see Section D.1, “Changes in release 5.0.x (Production)”. If the table handler doesn't support the newVARCHARtype, then it's converted to aCHARcolumn. Currently this happens forNDBtables. -
InnoDB: Introduced a compact record format that does not store the number of columns or the lengths of fixed-size columns. The old format can be requested by specifyingROW_FORMAT=REDUNDANT. The new format (ROW_FORMAT=COMPACT) is the default. The new format typically saves 20 % of disk space and memory. -
InnoDB: Setting the initialAUTO_INCREMENTvalue for anInnoDBtable usingCREATE TABLE ... AUTO_INCREMENT =nnow works, andALTER TABLE ... AUTO_INCREMENT =nresets the current value. -
Seconds_Behind_MasterisNULL(which means “unknown”) if the slave SQL thread is not running, or if the slave I/O thread is not running or not connected to master. It is zero if the SQL thread has caught up to the I/O thread. It no longer grows indefinitely if the master is idle. -
The MySQL server aborts immediately instead of simply issuing a warning if it is started with the
--log-binoption but cannot initialize the binary log at startup (that is, an error occurs when writing to the binary log file or binary log index file). -
The binary log file and binary log index file now are handled the same way as
MyISAMtables when there is a “disk full” or “quota exceeded” error. See Section A.4.3, “How MySQL Handles a Full Disk”. -
The MySQL server now aborts when started with the option
--log-bin-indexand without--log-bin, and when started with--log-slave-updatesand without--log-bin. -
If the MySQL server is started without an argument to
--log-binand without--log-bin-index, thus not providing a name for the binary log index file, a warning is issued because MySQL falls back to using the hostname for that name, and this is prone to replication issues if the server's hostname's gets changed later. See Section A.8.1, “Open Issues in MySQL”. -
Added account-specific
MAX_USER_CONNECTIONSlimit, which allows you to specify the maximum number of concurrent connections for the account. Also, all limited resources now are counted per account (instead of being counted per user + host pair as it was before). Use the--old-style-user-limitsoption to get the old behavior. -
InnoDB: A shared record lock (
LOCK_REC_NOT_GAP) is now taken for a matching record in the foreign key check because inserts can be allowed into gaps. -
InnoDB: Relaxed locking in
INSERT…SELECT, single tableUPDATE…SELECTand single tableDELETE…SELECTclauses wheninnodb_locks_unsafe_for_binlogis used and isolation level of the transaction is not serializable.InnoDBuses consistent read in these cases for a selected table. -
Added a new global system variable
slave_transaction_retries: if the replication slave SQL thread fails to execute a transaction because of anInnoDBdeadlock or exceeded InnoDB'sinnodb_lock_wait_timeoutor NDBCluster'sTransactionDeadlockDetectionTimeoutorTransactionInactiveTimeout, it automatically retriesslave_transaction_retriestimes before stopping with an error. The default is 10. (Bug #8325) -
When a client releases a user-level lock,
DO RELEASE_LOCK()will not be written to the binary log anymore (this makes the binary log smaller); as a counterpart, the slave does not actually take the lock when it executesGET_LOCK(). This is mainly an optimization and should not affect existing setups. (Bug #7998) -
The way the character set information is stored into the binary log was changed, so that it's now possible to have a replication master and slave running with different global character sets. A drawback is that replication from 5.0.3 masters to pre-5.0.3 slaves is impossible.
-
The
LOAD DATAstatement was extended to support user variables in the target column list, and an optionalSETclause. Now one can perform some transformations on data after they have been read and before they are inserted into the table. For example:LOAD DATA INFILE 'file.txt' INTO TABLE t1 (column1, @var1) SET column2 = @var1/100;
Also, replication of
LOAD DATAwas changed, so you can't replicate such statements from a 5.0.3 master to pre-5.0.3 slaves. -
NDB Cluster: When using this storage engine, the output ofSHOW TABLE STATUSnow displays properly-calculated values in theAvg_row_lengthandData_lengthcolumns. (Note thatBLOBcolumns are not yet taken into account.) In addition, the number of replicas is now shown in theCommentcolumn (asnumber_of_replicas).
Bugs fixed:
-
If a
MyISAMtable on Windows hadINDEX DIRECTORYorDATA DIRECTORYtable options, mysqldump dumped the directory pathnames with single-backslash pathname separators. This would cause syntax errors when importing the dump file. mysqldump now changes ‘\’ to ‘/’ in the pathnames on Windows. (Bug #6660) -
mysql_fix_privilege_tablesnow fixes that themysqlprivilege tables can be used in MySQL 4.1. This allows one to easily downgrade to 4.1 or run MySQL 5.0 and 4.1 with the same privilege files for testing purposes. -
Fixed bug creating user with GRANT fails with password but works without, (Bug #7905)
-
mysqldump misinterpreted ‘
_’ and ‘%’ characters in the names of tables to be dumped as wildcard characters. (Bug #9123) -
The definition of the enumeration-valued
sql_modecolumn of themysql.proctable was missing some of the current allowable SQL modes, so stored routines would not necessarily execute with the SQL mode in effect at the time of routine definition. (Bug #8902) -
REPAIR TABLEdid not invalidate query results in the query cache that were generated from the table. (Bug #8480) -
In strict or traditional SQL mode, too-long string values assigned to string columns (
CHAR,VARCHAR,BINARY,VARBINARY,TEXT, orBLOB) were correctly truncated, but the server returned an SQLSTATE value of01000(should be22001). (Bug #6999, Bug #9029) -
Stored functions that used cursors could return incorrect results. (Bug #8386)
-
AES_DECRYPT(col_name,key) could fail to returnNULLfor invalid values incol_name, ifcol_namewas declared asNOT NULL. (Bug #8669) -
Ordering by unsigned expression (more complex than a column reference) was treating the value as signed, producing incorrectly sorted results. (Bug #7425)
-
HAVINGwas treating unsigned columns as signed. (Bug #7425) -
Fixed a problem with boolean full-text searches on
utf8columns where a double quote in the search string caused a server crash. (Bug #8351) -
For a query with both
GROUP BYandCOUNT(DISTINCT)clauses and aFROMclause with a subquery,NULLwas returned for anyVARCHARcolumn selected by the subquery. (Bug #8218) -
Fixed a bug in
TRUNCATE, which did not work within stored procedures. A workaround has been made so that within stored procedures,TRUNCATEis executed likeDELETE. This was necessary becauseTRUNCATEis implicitly locking tables. (Bug #8850) -
Fixed an optimizer bug that caused incorrectly ordered result from a query that used a
FULLTEXTindex to retrieve rows and there was another index that was usable forORDER BY. For such a query,EXPLAINshowedfulltextjoin type, but regular (notFULLTEXT) index in theKeycolumn. (Bug #6635) -
If
SELECT DISTINCTnamed an index column multiple times in the select list, the server tried to access different key fields for each instance of the column, which could result in a crash. (Bug #8532) -
For a stored function that refers to a given table, invoking the function while selecting from the same table resulted in a server crash. (Bug #8405)
-
Comparison of a
DECIMALcolumn containingNULLto a subquery that producedDECIMALvalues resulted in a server crash. (Bug #8397) -
The
--set-character-setoption for myisamchk was changed to--set-collation. The value needed for specifying how to sort indexes is a collation name, not a character set name. (Bug #8349) -
Hostname matching didn't work if a netmask was specified for table-specific privileges. (Bug #3309)
-
Corruption of
MyISAMtable indexes could occur withTRUNCATE TABLEif the table had already been opened. For example, this was possible if the table had been opened implicitly by selecting from aMERGEtable that mapped to theMyISAMtable. The server now issues an error message forTRUNCATE TABLEunder these conditions. (Bug #8306) -
Setting the connection collation to a value different from the server collation followed by a
CREATE TABLEstatement that included a quoted default value resulted in a server crash. (Bug #8235) -
Fixed handling of table-name matching in mysqlhotcopy to accommodate
DBD::mysql2.9003 and up (which implement identifier quoting). (Bug #8136) -
Selecting from a view defined as a join caused a server crash if the query cache was enabled. (Bug #8054)
-
Results in the query cache generated from a view were not properly invalidated after
ALTER VIEWorDROP VIEWon that view. (Bug #8050) -
FOUND_ROWS()returned an incorrect value after aSELECT SQL_CALC_FOUND_ROWS DISTINCTstatement that selected constants and includedGROUP BYandLIMITclauses. (Bug #7945) -
Selecting from an
INFORMATION_SCHEMAtable combined with a subquery on anINFORMATION_SCHEMAtable caused an error with the messageTabletbl_nameis corrupted. (Bug #8164) -
Fixed a problem with equality propagation optimization for prepared statements and stored procedures that caused a server crash upon re-execution of the prepared statement or stored procedure. (Bug #8115, Bug #8849)
-
LEFT OUTER JOINbetween an empty base table and a view on an empty base table caused a server crash. (Bug #7433) -
Use of
GROUP_CONCAT()in the select list when selecting from a view caused a server crash. (Bug #7116) -
Use of a view in a correlated subquery that contains
HAVINGbut noGROUP BYcaused a server crash. (Bug #6894) -
Handling by
mysql_list_fields()of references to stored functions within views was incorrect and could result in a server crash. (Bug #6814) -
mysqldump now avoids writing
SET NAMESto the dump output if the server is older than version 4.1 and would not understand that statement. (Bug #7997) -
Fixed problems when selecting from a view that had an
EXISTSorNOT EXISTSsubquery. Selecting columns by name caused a server crash. WithSELECT *, a crash did not occur, but columns in outer query were not resolved properly. (Bug #6394) -
DDL statements for views were not being written to the binary log (and thus not subject to replication). (Bug #4838)
-
The
CHAR()function was not ignoringNULLarguments, contrary to the documentation. (Bug #6317) -
Creating a table using a name containing a character that is illegal in
character_set_clientresulted in the character being stripped from the name and no error. The character now is considered an error. (Bug #8041) -
Fixed a problem with the Cyrillic letters I and SHORT I being treated the same by the
utf8_general_cicollation. (Bug #8385) -
Some
INFORMATION_SCHEMAcolumns that contained catalog identifiers were of typeLONGTEXT. These were changed toVARCHAR(N, whereNis the appropriate maximum identifier length. (Bug #7215) -
Some
INFORMATION_SCHEMAcolumns that contained timestamp values were of typeVARBINARY. These were changed toTIMESTAMP. (Bug #7217) -
An expression that tested a case-insensitive character column against string constants that differed in lettercase could fail because the constants were treated as having a binary collation. (For example,
WHERE city='London' AND city='london'could fail.) (Bug #7098, Bug #8690) -
The output of the
STATUS(\s) command in mysql had the values for the server and client character sets reversed. (Bug #7571) -
If the slave was running with
--replicate-*-tableoptions which excluded one temporary table and included another, and the two tables were used in a singleDROP TEMPORARY TABLE IF EXISTSstatement, as the ones the master automatically writes to its binary log upon client's disconnection when client has not explicitly dropped these, the slave could forget to delete the included replicated temporary table. Only the slave needs to be upgraded. (Bug #8055) -
When setting integer system variables to a negative value with
SET VARIABLES, the value was treated as a positive value modulo 232. (Bug #6958) -
Corrected a problem with references to
DUALwhere statements such asSELECT 1 AS a FROM DUALwould succeed but statements such asSELECT 1 AS a FROM DUAL LIMIT 1would fail. (Bug #8023) -
Fixed a server crash caused by
DELETE FROMtbl_name... WHERE ... ORDER BYtbl_name.col_namewhen theORDER BYcolumn was qualified with the table name. (Bug #8392) -
Fixed a bug in
MATCH ... AGAINSTin natural language mode that could cause a server crash if theFULLTEXTindex was not used in a join (EXPLAINdid not showfulltextjoin mode) and the search query matched no rows in the table (Bug #8522). -
InnoDB: Honor the--tmpdirstartup option when creating temporary files. Previously,InnoDBtemporary files were always created in the temporary directory of the operating system. On Netware,InnoDBwill continue to ignore--tmpdir. (Bug #5822) -
Platform and architecture information in version information produced for
--versionoption on Windows was alwaysWin95/Win98 (i32). More accurately determine platform asWin32orWin64for 32-bit or 64-bit Windows, and architecture asia32for x86,ia64for Itanium, andaxpfor Alpha. (Bug #4445) -
If multiple semicolon-separated statements were received in a single packet, they were written to the binary log as a single event rather than as separate per-statement events. For a server serving as a replication master, this caused replication to fail when the event was sent to slave servers. (Bug #8436)
-
Fixed
LOAD INDEXstatement to actually load index in memory. (Bug #8452) -
Fixed a failure of multiple-table updates to replicate properly on slave servers when
--replicate-*-tableoptions had been specified. (Bug #7011) -
Fixed failure of
CREATE TABLE ... LIKEWindows when the source or destination table was located in a symlinked database directory. (Bug #6607) -
With
lower_case_table_namesset to 1, mysqldump on Windows could write the same table name in different lettercase for different SQL statements. Fixed so that consistent lettercase is used. (Bug #5185) -
mysqld_safe now understands the
--helpoption. Previously, it ignored the option and attempted to start the server anyway. (Bug #7931) -
Fixed problem in
NO_BACKSLASH_ESCAPESSQL mode for strings that contained both the string quoting character and backslash. (Bug #6368) -
Fixed some portability issues with overflow in floating point values.
-
Prepared statements now gives warnings on prepare.
-
Fixed bug in prepared statements with
SUM(DISTINCT...). -
Fixed bug in prepared statements with
OUTER JOIN. -
Fixed a bug in
CONV()function returning unsignedBIGINTnumber (third argument is positive, and return value does not fit in 32 bits). (Bug #7751) -
Fixed a failure of the
IN()operator to return correct result if all values in the list were constants and some of them were using substring functions, for example,LEFT(),RIGHT(), orMID(). (Bug #7716) -
Fixed a crash in
CONVERT_TZ()function when its second or third argument was from aconsttable (see Section 7.2.1, “Optimizing Queries withEXPLAIN”). (Bug #7705) -
Fixed a problem with calculation of number of columns in row comparison against subquery. (Bug #8020)
-
Fixed erroneous output resulting from
SELECT DISTINCTcombined with a subquery andGROUP BY. (Bug #7946) -
Fixed server crash in comparing a nested row expression (for example
row(1,(2,3))) with a subquery. (Bug #8022) -
Fixed server crash resulting from certain correlated subqueries with forward references (references to an alias defined later in the outer query). (Bug #8025)
-
Fixed server crash resulting from re-execution of prepared statements containing subqueries. (Bug #8125)
-
Fixed a bug where
ALTER TABLEimproperly would accept an index on aTIMESTAMPcolumn thatCREATE TABLEwould reject. (Bug #7884) -
SHOW CREATE TABLEnow reportsENGINE=MEMORYrather thanENGINE=HEAPfor aMEMORYtable (unless theMYSQL323SQL mode is enabled). (Bug #6659) -
Fixed a bug where the use of
GROUP_CONCAT()withHAVINGcaused a server crash. (Bug #7769) -
Fixed a bug where comparing the result of a subquery to a non-existent column caused a server crash on Windows. (Bug #7885)
-
Fixed a bug in a combination of
-notandtrunc*operators of full-text search. Using more than one truncated negative search term, was causing empty result set. -
InnoDB: Corrected the handling of trailing spaces in the
ucs2character set. (Bug #7350, Bug #8771) -
InnoDB: Use native
tmpfile()function on Netware. All InnoDB temporary files are created undersys:\tmp. Previously, InnoDB temporary files were never deleted on Netware. -
Fixed a bug in
max_heap_table_sizehandling, that resulted inTable is fullerror when the table was still smaller than the limit. (Bug #7791). -
Fixed a symlink vulnerability in the mysqlaccess script. Reported by Javier Fernandez-Sanguino Pena and Debian Security Audit Team. (CVE-2005-0004)
-
Fixed a bug that caused server crash if some error occurred during filling of temporary table created for derived table or view handling. (Bug #7413)
-
Fixed a bug which caused server crash if query containing
CONVERT_TZ()function with constant arguments was prepared. (Bug #6849) -
Prevent adding
CREATE TABLE .. SELECTquery to the binary log when the insertion of new records partially failed. (Bug #6682) -
Fixed a bug which caused a crash when only the slave I/O thread was stopped and started. (Bug #6148)
-
Giving mysqld a
SIGHUPcaused it to crash. -
Changed semantics of
CREATE/ALTER/DROP DATABASEstatements so that replication ofCREATE DATABASEis possible when using--binlog-do-dband--binlog-ignore-db. (Bug #6391) -
A sequence of
BEGIN(orSET AUTOCOMMIT=0),FLUSH TABLES WITH READ LOCK, transactional update,COMMIT,FLUSH TABLES WITH READ LOCKcould hang the connection forever and possibly the MySQL server itself. This happened for example when running theinnobackupscript several times. (Bug #6732) -
mysqlbinlog did not print
SET PSEUDO_THREAD_IDstatements in front ofLOAD DATA INFILEstatements inserting into temporary tables, thus causing potential problems when rolling forward these statements after restoring a backup. (Bug #6671) -
InnoDB: Fixed a bug no error message for ALTER with InnoDB and AUTO_INCREMENT (Bug #7061).
InnoDBnow supportsALTER TABLE...AUTO_INCREMENT = xquery to set auto increment value for a table. -
Made the MySQL server accept executing
SHOW CREATE DATABASEeven if the connection has an open transaction or locked tables; refusing it made mysqldump --single-transaction sometimes fail to print a completeCREATE DATABASEstatement for some dumped databases. (Bug #7358) -
Fixed that, when encountering a “disk full” or “quota exceeded” write error,
MyISAMsometimes didn't sleep and retry the write, thus resulting in a corrupted table. (Bug #7714) -
Fixed that
--expire-log-dayswas not honored if using only transactions. (Bug #7236) -
Fixed that a slave could crash after replicating many
ANALYZE TABLE,OPTIMIZE TABLE, orREPAIR TABLEstatements from the master. (Bug #6461, Bug #7658) -
mysqlbinlog forgot to add backquotes around the collation of user variables (causing later parsing problems as
BINARYis a reserved word). (Bug #7793) -
Ensured that mysqldump --single-transaction sets its transaction isolation level to
REPEATABLE READbefore proceeding (otherwise if the MySQL server was configured to run with a default isolation level lower thanREPEATABLE READit could give an inconsistent dump). (Bug #7850) -
Fixed that when using the
RPAD()function (or any function adding spaces to the right) in a query that had to be resolved by using a temporary table, all resulting strings had rightmost spaces removed (that is,RPAD()did not work) (Bug #4048) -
Fixed that a 5.0.3 slave can connect to a master < 3.23.50 without hanging (the reason for the hang is a bug in these quite old masters --
SELECT @@unknown_varhangs them -- which was fixed in MySQL 3.23.50). (Bug #7965) -
InnoDB: Fixed a deadlock without any locking, simple select and update (Bug #7975).
InnoDBnow takes an exclusive lock whenINSERT ON DUPLICATE KEY UPDATEis checking duplicate keys. -
Fixed a bug where MySQL was allowing concurrent updates (inserts, deletes) to a table if binary logging is enabled. Changed to ensure that all updates are executed in a serialized fashion, because they are executed serialized when binlog is replayed. (Bug #7879)
-
Fixed a rare race condition which could lead to
FLUSH TABLES WITH READ LOCKhanging. (Bug #8682) -
Fixed a bug in replication that caused the master to stamp generated statements (such as
SETcommands) with anerror_codeintended only for another statement. This could happen, for example, when a statements generates a duplicate key error on the master but must be replicated. (Bug #8412)
Functionality added or changed:
-
Warning: Incompatible change! The precedence of
NOToperator has changed so that expressions such asNOT a BETWEEN b AND care parsed correctly asNOT (a BETWEEN b AND c)rather than as(NOT a) BETWEEN b AND c. The pre-5.0 higher-precedence behavior can be obtained by enabling the newHIGH_NOT_PRECEDENCESQL mode. -
Warning: Incompatible change!
SHOW STATUSnow shows the session (thread-specific) status variables andSHOW GLOBAL STATUSshows the status variables for the whole server.Before MySQL 5.0.2,
SHOW STATUSreturned global status values. Because the default as of 5.0.2 is to return session values, this is incompatible with previous versions. To issue aSHOW STATUSstatement that will retrieve global status values for all versions of MySQL, write it like this:SHOW /*!50002 GLOBAL */ STATUS;
-
Added support for the
INFORMATION_SCHEMA“information database” that provides database metadata. See Chapter 20, TheINFORMATION_SCHEMADatabase. -
A
HAVINGclause in aSELECTstatement now can refer to columns in theGROUP BYclause, as required by standard SQL. -
Added the
CREATE USERandRENAME USERstatements. -
Modify
DROP USERso that it drops the account, including all its privileges. Formerly, it removed the account record only for an account that had had all privileges revoked. -
Added
IS [NOT]boolean_valuesyntax, whereboolean_valueisTRUE,FALSE, orUNKNOWN. -
Added several
InnoDBstatus variables. See Section 5.2.4, “Server Status Variables”. -
Implemented the
WITH CHECK OPTIONclause forCREATE VIEW. -
CHECK TABLEnow works for views. -
The
SCHEMAandSCHEMASkeywords are now accepted as synonyms forDATABASEandDATABASES. -
Added initial support for rudimentary triggers (the
CREATE TRIGGERandDROP TRIGGERstatements). -
Added basic support for read-only server side cursors.
-
mysqldump --single-transaction --master-data is now able to take an online (non-blocking) dump of InnoDB and report the corresponding binary log coordinates, which makes a backup suitable for point-in-time recovery, roll-forward or replication slave creation. See Section 8.12, “mysqldump — A Database Backup Program”.
-
Added
--start-datetime,--stop-datetime,--start-position,--stop-positionoptions to mysqlbinlog (makes point-in-time recovery easier). -
Made the MySQL server not react to signals
SIGHUPandSIGQUITon Mac OS X 10.3. This is needed because under this OS, the MySQL server receives lots of these signals (reported as Bug #2030). -
New
--auto-increment-incrementand--auto-increment-offsetstartup options. These allow you to set up a server to generate auto-increment values that don't conflict with another server. -
MySQL now by default checks dates and in strict mode allows only fully correct dates. If you want MySQL to behave as before, you should enable the new
ALLOW_INVALID_DATESSQL mode. -
Added
STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO, andTRADITIONALSQL modes. TheTRADITIONALmode is shorthand for all the preceding modes. When using modeTRADITIONAL, MySQL generates an error if you try to insert a wrong value in a column. It does not adjust the value to the closest possible legal value. -
MySQL now remembers which columns were declared to have default values. In
STRICT_TRANS_TABLES/STRICT_ALL_TABLESmode, you now get an error if you do anINSERTwithout specifying all columns that don't have a default value. A side effect of this is that when you doSHOW CREATEfor a new table, you no longer see aDEFAULTvalue for a column for which you didn't specify a default value. -
The compilation flag
DONT_USE_DEFAULT_FIELDSwas removed because you can get the same behavior by setting thesql_modesystem variable toSTRICT_TRANS_TABLES. -
Added
NO_AUTO_CREATE_USERSQL mode to preventGRANTfrom automatically creating new users if it would otherwise do so, unless a password also is specified. -
We now detect too-large floating point numbers during statement parsing and generate an error messages for them.
-
Renamed the
sql_updatable_view_keysystem variable toupdatable_views_with_limit. This variable now can have only two values:-
1orYES: Don't issue an error message (warning only) if a VIEW without presence of a key in the underlying table is used in queries with aLIMITclause for updating. (This is the default value.) -
0orNO: Prohibit update of a VIEW, which does not contain a key in the underlying table and the query uses aLIMITclause (usually get from GUI tools).
-
-
Reverted output format of
SHOW TABLESto old pre-5.0.1 format that did not include a table type column. To get the additional column that lists the table type, useSHOW FULL TABLESnow. -
The mysql_fix_privilege_tables script now initializes the global
CREATE VIEWandSHOW VIEWprivileges in theusertable to the value of theCREATEprivilege in that table. -
If the server finds that the
usertable has not been upgraded to include the view-related privilege columns, it treats each account as having view privileges that are the same as itsCREATEprivilege. -
InnoDB: If you specify the option
innodb_locks_unsafe_for_binloginmy.cnf, InnoDB in anUPDATEor aDELETEonly locks the rows that it updates or deletes. This greatly reduces the probability of deadlocks. -
A connection doing a rollback now displays "Rolling back" in the
Statecolumn ofSHOW PROCESSLIST. -
mysqlbinlog now prints an informative commented line (thread id, timestamp, server id, and so forth) before each
LOAD DATA INFILE, like it does for other queries; unless--short-formis used. -
Two new server system variables were introduced.
auto_increment_incrementandauto_increment_offsetcan be set locally or globally, and are intended for use in controlling the behavior ofAUTO_INCREMENTcolumns in master-to-master replication. Note that these variables are not intended to take the place of sequences. See Section 5.2.2, “Server System Variables”.
Bugs fixed:
-
Fixed that mysqlbinlog --read-from-remote-server sometimes couldn't accept two binary log files on the command line. (Bug #4507)
-
Fixed that mysqlbinlog --position --read-from-remote-server had incorrect
# atlines. (Bug #4506) -
Fixed that
CREATE TABLE ... TYPE=HEAP ... AS SELECT...caused replication slave to stop. (Bug #4971) -
Fixed that
mysql_options(...,MYSQL_OPT_LOCAL_INFILE,...)failed to disableLOAD DATA LOCAL INFILE. (Bug #5038) -
Fixed that
disable-local-infileoption had no effect if client read it from a configuration file usingmysql_options(...,MYSQL_READ_DEFAULT,...). (Bug #5073) -
Fixed that
SET GLOBAL SYNC_BINLOGdid not work on some platforms (Mac OS X). (Bug #5064) -
Fixed that mysql-test-run failed on the
rpl_trunc_binlogtest if running test from the installed (the target of 'make install') directory. (Bug #5050) -
Fixed that mysql-test-run failed on the
grant_cachetest when run as Unix user 'root'. (Bug #4678) -
Fixed an unlikely deadlock which could happen when using
KILL. (Bug #4810) -
Fixed a crash when one connection got
KILLed while it was doingSTART SLAVE. (Bug #4827) -
Made
FLUSH TABLES WITH READ LOCKblockCOMMITif server is running with binary logging; this ensures that the binary log position can be trusted when doing a full backup of tables and the binary log. (Bug #4953) -
Fixed that the counter of an
auto_incrementcolumn was not reset byTRUNCATE TABLEis the table was a temporary one. (Bug #5033) -
Fixed slave SQL thread so that the
SET COLLATION_SERVER...statements it replicates don't advance its position (so that if it gets interrupted before the actual update query, it later redoes theSET). (Bug #5705) -
Fixed that if the slave SQL thread found a syntax error in a query (which should be rare, as the master parsed it successfully), it stops. (Bug #5711)
-
Fixed that if a write to a
MyISAMtable fails because of a full disk or an exceeded disk quota, it prints a message to the error log every 10 minutes, and waits until disk becomes free. (Bug #3248) -
Fixed problem introduced in 4.0.21 where a connection starting a transaction, doing updates, then
FLUSH TABLES WITH READ LOCK, thenCOMMIT, would cause replication slaves to stop (complaining about error 1223). Bug surfaced when using the InnoDBinnobackupscript. (Bug #5949) -
OPTIMIZE TABLE,REPAIR TABLE, andANALYZE TABLEare now replicated without any error code in the binary log. (Bug #5551) -
If a connection had an open transaction but had done no updates to transactional tables (for example if had just done a
SELECT FOR UPDATEthen executed a non-transactional update, that update automatically committed the transaction (thus releasing InnoDB's row-level locks etc). (Bug #5714) -
If a connection was interrupted by a network error and did a rollback, the network error code got stored into the
BEGINandROLLBACKbinary log events; that caused superfluous slave stops. (Bug #6522) -
Fixed a bug which prevented mysqlbinlog from being able to read from
stdin, for example, when piping the output from zcat to mysqlbinlog. (Bug #7853)
Note: This build passes our test suite and fixes a lot of reported bugs found in the previous 5.0.0 release. However, please be aware that this is not a “standard MySQL build” in the sense that there are still some open critical bugs in our bugs database at http://bugs.mysql.com/ that affect this release as well. We are actively fixing these and will make a new release where these are fixed as soon as possible. However, this binary should be a good candidate for testing new MySQL 5.0 features for future products.
Functionality added or changed:
-
Warning: Incompatible change! C API change:
mysql_shutdown()now requires a second argument. This is a source-level incompatibility that affects how you compile client programs; it does not affect the ability of compiled clients to communicate with older servers. See Section 22.2.3.64, “mysql_shutdown()”. -
When installing a MySQL server as a Windows service, the installation command can include a
--local-serviceoption following the service name to cause the server to run using theLocalServiceWindows account that has limited privileges. This is in addition to the--defaults-fileoption that also can be given following the service name. -
Added support for read-only and updatable views based on a single table or other updatable views. View use requires that you upgrade your grant tables to add the view-related privileges. See Section 5.6.1, “mysql_fix_privilege_tables — Upgrade MySQL System Tables”.
-
Implemented a new “greedy search” optimizer that can significantly reduce the time spent on query optimization for some many-table joins. (You are affected if not only some particular
SELECTis slow, but even usingEXPLAINfor it takes a noticeable amount of time.) Two new system variables,optimizer_search_depthandoptimizer_prune_level, can be used to fine-tune optimizer behavior. -
A stored procedure is no longer “global.” That is, it now belongs to a specific database:
-
When a database is dropped, all routines belonging to that database are also dropped.
-
Procedure names may be qualified, for example,
db.p() -
When executed from another database, an implicit
USEdb_nameis in effect. -
Explicit
USEdb_namestatements no longer are allowed in a stored procedure.
-
-
Fixed
SHOW TABLESoutput field name and values according to standard. Field name changed fromTypetotable_type, values areBASE TABLE,VIEWandERROR. (Bug #4603) -
Added the
sql_updatable_view_keysystem variable. -
Added the
--replicate-same-server-idserver option. -
Added
Last_query_coststatus variable that reports optimizer cost for last compiled query. -
Added the
--to-last-logoption to mysqlbinlog, for use in conjunction with--read-from-remote-server. -
Added the
--innodb-safe-binlogserver option, which adds consistency guarantees between the content ofInnoDBtables and the binary log. See Section 5.12.3, “The Binary Log”. -
OPTIMIZE TABLEforInnoDBtables is now mapped toALTER TABLEinstead ofANALYZE TABLE. This rebuilds the table, which updates index statistics and frees space in the clustered index. -
sync_frmis now a settable global variable (not only a startup option). -
For replication of
MEMORY(HEAP) tables: Made the master automatically write aDELETE FROMstatement to its binary log when aMEMORYtable is opened for the first time since master's startup. This is for the case where the slave has replicated a non-emptyMEMORYtable, then the master is shut down and restarted: the table is now empty on master; theDELETE FROMempties it on slave too. Note that even with this fix, between the master's restart and the first use of the table on master, the slave still has out-of-date data in the table. But if you use the--init-fileoption to populate theMEMORYtable on the master at startup, it ensures that the failing time interval is zero. (Bug #2477) -
When a session having open temporary tables terminates, the statement automatically written to the binary log is now
DROP TEMPORARY TABLE IF EXISTSinstead ofDROP TEMPORARY TABLE, for more robustness. -
The MySQL server now returns an error if
SET SQL_LOG_BINis issued by a user without theSUPERprivilege (in previous versions it just silently ignored the statement in this case). -
Changed that when the MySQL server has binary logging disabled (that is, no
--log-binoption was used), then no transaction binary log cache is allocated for connections. This should savebinlog_cache_sizebytes of memory (32KB by default) for every connection. -
Added the
sync_binlog=Nglobal variable and startup option, which makes the MySQL server synchronize its binary log to disk (fdatasync()) after every Nth write to the binary log. -
Changed the slave SQL thread to print less useless error messages (no more message duplication; no more messages when an error is skipped because of
slave-skip-errors). -
DROP DATABASE IF EXISTS,DROP TABLE IF EXISTS, single-tableDELETE, and single-tableUPDATEnow are written to the binary log even if they changed nothing on the master (for example, even if aDELETEmatched no rows). The old behavior sometimes caused bad surprises in replication setups. -
Replication and mysqlbinlog now have better support for the case that the session character set and collation variables are changed within a given session. See Section 6.7, “Replication Features and Known Problems”.
-
Killing a
CHECK TABLEstatement does not result in the table being marked as “corrupted” any more; the table remains as ifCHECK TABLEhad not even started. See Section 13.5.5.3, “KILLSyntax”.
Bugs fixed:
-
Strange results with index (x, y) ...
WHERE x=val_1AND y>=val_2ORDER BYpk; (Bug #3155) -
Adding
ORDER BYto a query that uses a subquery can cause incorrect results. (Bug #3118) -
ALTER DATABASEcaused the client to hang if the database did not exist. (Bug #2333) -
SLAVE START(which is a deprecated syntax,START SLAVEshould be used instead) could crash the slave. (Bug #2516) -
Multiple-table
DELETEstatements were never replicated by the slave if there were any--replicate-*-tableoptions. (Bug #2527) -
The MySQL server did not report any error if a statement (submitted through
mysql_real_query()ormysql_stmt_prepare()) was terminated by garbage characters. This can happen if you pass a wronglengthparameter to these functions. The result was that the garbage characters were written into the binary log. (Bug #2703) -
Replication: If a client connects to a slave server and issues an administrative statement for a table (for example,
OPTIMIZE TABLEorREPAIR TABLE), this could sometimes stop the slave SQL thread. This does not lead to any corruption, but you must useSTART SLAVEto get replication going again. (Bug #1858) -
Made clearer the error message that one gets when an update is refused because of the
--read-onlyoption. (Bug #2757) -
Fixed that
--replicate-wild-*-tablerules apply toALTER DATABASEwhen the table pattern is%, as is the case forCREATE DATABASEandDROP DATABASE. (Bug #3000) -
Fixed that when a
Rotateevent is found by the slave SQL thread in the middle of a transaction, the value ofRelay_Log_PosinSHOW SLAVE STATUSremains correct. (Bug #3017) -
Corrected the master's binary log position that
InnoDBreports when it is doing a crash recovery on a slave server. (Bug #3015) -
Changed the column
Seconds_Behind_MasterinSHOW SLAVE STATUSto never show a value of -1. (Bug #2826) -
Changed that when a
DROP TEMPORARY TABLEstatement is automatically written to the binary log when a session ends, the statement is recorded with an error code of value zero (this ensures that killing aSELECTon the master does not result in a superfluous error on the slave). (Bug #3063) -
Changed that when a thread handling
INSERT DELAYED(also known as adelayed_insertthread) is killed, its statements are recorded with an error code of value zero (killing such a thread does not endanger replication, so we thus avoid a superfluous error on the slave). (Bug #3081) -
Fixed deadlock when two
START SLAVEcommands were run at the same time. (Bug #2921) -
Fixed that a statement never triggers a superfluous error on the slave, if it must be excluded given the
--replicate-*options. The bug was that if the statement had been killed on the master, the slave would stop. (Bug #2983) -
The
--local-loadoption of mysqlbinlog now requires an argument. -
Fixed a segmentation fault when running
LOAD DATA FROM MASTERafterRESET SLAVE. (Bug #2922) -
mysqlbinlog --read-from-remote-server read all binary logs following the one that was requested. It now stops at the end of the requested file, the same as it does when reading a local binary log. There is an option
--to-last-logto get the old behavior. (Bug #3204) -
Fixed mysqlbinlog --read-from-remote-server to print the exact positions of events in the "at #" lines. (Bug #3214)
-
Fixed a rare error condition that caused the slave SQL thread spuriously to print the message
Binlog has bad magic numberand stop when it was not necessary to do so. (Bug #3401) -
Fixed mysqlbinlog not to forget to print a
USEstatement under rare circumstances where the binary log contained aLOAD DATA INFILEstatement. (Bug #3415) -
Fixed a memory corruption when replicating a
LOAD DATA INFILEwhen the master had version 3.23. (Bug #3422) -
Multiple-table
DELETEstatements were always replicated by the slave if there were some--replicate-*-ignore-tableoptions and no--replicate-*-do-tableoptions. (Bug #3461) -
Fixed a crash of the MySQL slave server when it was built with
--with-debugand replicating itself. (Bug #3568) -
Fixed that in some replication error messages, a very long query caused the rest of the message to be invisible (truncated), by putting the query last in the message. (Bug #3357)
-
If
server-idwas not set using startup options but withSET GLOBAL, the replication slave still complained that it was not set. (Bug #3829) -
mysql_fix_privilege_tables didn't correctly handle the argument of its
--password=password_valoption. (Bug #4240) -
Fixed potential memory overrun in
mysql_real_connect()(which required a compromised DNS server and certain operating systems). (Bug #4017, CVE-2004-0836) -
During the installation process of the server RPM on Linux, mysqld was run as the
rootsystem user, and if you had--log-bin=somewhere_out_of_var_lib_mysqlit created binary log files owned byrootin this directory, which remained owned byrootafter the installation. This is now fixed by starting mysqld as themysqlsystem user instead. (Bug #4038) -
Made
DROP DATABASEhonor the value oflower_case_table_names. (Bug #4066) -
The slave SQL thread refused to replicate
INSERT ... SELECTif it examined more than 4 billion rows. (Bug #3871) -
mysqlbinlog didn't escape the string content of user variables, and did not deal well when these variables were in non-ASCII character sets; this is now fixed by always printing the string content of user variables in hexadecimal. The character set and collation of the string is now also printed. (Bug #3875)
-
Fixed incorrect destruction of expression that led to a server crash on complex
AND/ORexpressions if query was ignored (either by a replication server because of--replicate-*-tablerules, or by any MySQL server because of a syntax error). (Bug #3969, Bug #4494) -
If
CREATE TEMPORARY TABLE t SELECTfailed while loading the data, the temporary table was not dropped. (Bug #4551) -
Fixed that when a multiple-table
DROP TABLEfailed to drop a table on the master server, the error code was not written to the binary log. (Bug #4553) -
When the slave SQL thread was replicating a
LOAD DATA INFILEstatement, it didn't show the statement in the output ofSHOW PROCESSLIST. (Bug #4326)
Functionality added or changed:
-
The output of the
SHOW BINLOG EVENTSstatement has been modified. TheOrig_log_poscolumn has been renamed toEnd_log_posand now represents the offset of the last byte of the event, plus one. -
Important note: If you upgrade to MySQL 4.1.1 or higher, it is difficult to downgrade back to 4.0 or 4.1.0! That is because, for earlier versions,
InnoDBis not aware of multiple tablespaces. -
Added support for
SUM(DISTINCT),MIN(DISTINCT), andMAX(DISTINCT). -
The
KILLstatement now takesCONNECTIONandQUERYmodifiers. The first is the same asKILLwith no modifier (it kills a given connection thread). The second kills only the statement currently being executed by the connection. -
Added
TIMESTAMPADD()andTIMESTAMPDIFF()functions. -
Added
WEEKandQUARTERvalues asINTERVALarguments for theDATE_ADD()andDATE_SUB()functions. -
New binary log format that enables replication of these session variables:
sql_mode,SQL_AUTO_IS_NULL,FOREIGN_KEY_CHECKS(which was replicated since 4.0.14, but here it's done more efficiently and takes less space in the binary logs),UNIQUE_CHECKS. Other variables (like character sets,SQL_SELECT_LIMIT, ...) will be replicated in upcoming 5.0.x releases. -
Implemented Index Merge optimization for
ORclauses. See Section 7.2.6, “Index Merge Optimization”. -
Basic support for stored procedures (SQL:2003 style). See Chapter 17, Stored Procedures and Functions.
-
Added
SELECT INTOlist_of_vars, which can be of mixed (that is, global and local) types. See Section 17.2.7.3, “SELECT ... INTOStatement”. -
Easier replication upgrade (5.0.0 masters can read older binary logs and 5.0.0 slaves can read older relay logs). See Section 6.5, “Replication Compatibility Between MySQL Versions”, for more details). The format of the binary log and relay log is changed compared to that of MySQL 4.1 and older.
Bugs fixed: