Table of Contents
This appendix lists the changes from version to version in the MySQL source code through the latest version of MySQL 5.1, which is currently MySQL 5.1.23-rc. 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.1 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.
An overview of which features were added in MySQL 5.1 can be found here: Section 1.5.1, “What's New in MySQL 5.1”.
For a full list of changes, please refer to the changelog sections for each individual 5.1.x release.
Functionality added or changed:
Important Change: Partitioning: Security Fix:
It was possible, by creating a partitioned table using the
DATA DIRECTORY and INDEX
DIRECTORY options to gain privileges on other tables
having the same name as the partitioned table. As a result of
this fix, any table-level DATA DIRECTORY or
INDEX DIRECTORY options are now ignored for
partitioned tables.
(Bug#32091, CVE-2007-5970)
Incompatible Change:
In MySQL 5.1.6, when log tables were implemented, the default
log destination for the general query and slow query log was
TABLE. This default has been changed to
FILE, which is compatible with MySQL 5.0, but
incompatible with earlier releases of MySQL 5.1 from 5.1.6 to
5.1.20. If you are upgrading from MySQL 5.0 to this release, no
logging option changes should be necessary. However, if you are
upgrading from 5.1.6 through 5.1.20 to this release and were
using TABLE logging, use the
--log-output=TABLE option explicitly to
preserve your server's table-logging behavior.
In MySQL 5.1.x, this bug was addressed twice because it turned out that the default was set in two places, only one of which was fixed the first time. (Bug#29993)
Incompatible Change
The parser accepted statements that contained /* ...
*/ that were not properly closed with
*/, such as SELECT 1 /* +
2. Statements that contain unclosed
/*-comments now are rejected with a syntax
error.
This fix has the potential to cause incompatibilities. Because
of Bug#26302, which caused the trailing */
to be truncated from comments in views, stored routines,
triggers, and events, it is possible that objects of those types
may have been stored with definitions that now will be rejected
as syntactically invalid. Such objects should be dropped and
re-created so that their definitions do not contain truncated
comments.
(Bug#28779)
MySQL Cluster: The following improvements have been made in the ndb_size.pl utility:
The script can now be used with multiple databases; lists of databases and tables can also be excluded from analysis.
Schema name information has been added to index table calculations.
The database name is now an optional parameter, the exclusion of which causes all databases to be examined.
If selecting from INFORMATION_SCHEMA
fails, the script now attempts to fall back to
SHOW TABLES.
A --real_table_name option has been
added; this designates a table to handle unique index size
calculations.
The report title has been amended to cover cases where more than one database is being analyzed.
Support for a --socket option was also added.
For more information, see Section 15.9.15, “ndb_size.pl — NDBCluster Size Requirement Estimator”. (Bug#28683, Bug#28253)
MySQL Cluster:
Mapping of NDB error codes to MySQL storage
engine error codes has been improved.
(Bug#28423)
MySQL Cluster: The output from the cluster management client showing the progress of data node starts has been improved. (Bug#23354)
Partitioning: Error messages for partitioning syntax errors have been made more descriptive. (Bug#29368)
Replication:
Replication of the following now switches to row-based logging
in MIXED mode, and generates a warning in
STATEMENT mode:
CURRENT_USER
See Section 5.2.4.3, “Mixed Binary Logging (MBL) Format”, for more information. (Bug#12092, Bug#28086, Bug#30244)
mysqltest now has a
change_user command to change the user for
the current connection. (It invokes the
mysql_change_user() C API
function.)
(Bug#31608)
mysql-test-run.pl now allows a suite name
prefix to be specified in command-line arguments that name test
cases. The test name syntax now is
[.
For example, mysql-test-run.pl binlog.mytest
runs the suite_name.]test_name[.suffix]mytest.test test in the
binlog test suite.
(Bug#31400)
The --event-scheduler option without a value
disabled the event scheduler. Now it enables the event
scheduler.
(Bug#31332)
mysqldump produces a -- Dump
completed on comment
at the end of the dump if DATE--comments is given.
The date causes dump files for identical data take at different
times to appear to be different. The new options
--dump-date and
--skip-dump-date control whether the date is
added to the comment. --skip-dump-date
suppresses date printing. The default is
--dump-date (include the date in the comment).
(Bug#31077)
Server parser performance was improved for expression parsing by lowering the number of state transitions and reductions needed. (Bug#30625)
Server parser performance was improved for identifier lists, expression lists, and UDF expression lists. (Bug#30333)
Server parser performance was improved for boolean expressions. (Bug#30237)
The LAST_EXECUTED column of the
INFORMATION_SCHEMA.EVENTS table now indicates
when the event started executing rather than when it finished
executing. As a result, the ENDS column is
never less than LAST_EXECUTED.
(Bug#29830)
The mysql_odbc_escape_string() C API
function has been removed. It has multi-byte character escaping
issues, doesn't honor the
NO_BACKSLASH_ESCAPES SQL mode and is not
needed anymore by Connector/ODBC as of 3.51.17.
(Bug#29592)
If a MyISAM table is created with no
DATA DIRECTORY option, the
.MYD file is created in the database
directory. By default, if MyISAM finds an
existing .MYD file in this case, it
overwrites it. The same applies to .MYI
files for tables created with no INDEX
DIRECTORY option. To suppress this behavior, start the
server with the new --keep_files_on_create
option, in which case MyISAM will not
overwrite existing files and returns an error instead.
(Bug#29325)
The default value of the connect_timeout
system variable was increased from 5 to 10 seconds. This might
help in cases where clients frequently encounter errors of the
form Lost connection to MySQL server at
'.
(Bug#28359)XXX', system error:
errno
MySQL now can be compiled with gcc 4.2.x.
There was a problem involving a conflict with the
min() and max() macros
in my_global.h.
(Bug#28184)
The script is now able to be used with multiple databases; lists of databases and tables can be excluded from analysis.
If selecting from INFORMATION_SCHEMA fails,
the script now attempts to fall back to SHOW
TABLES.
The report title has been amended to cover cases where more than one database is being analyzed.
A --real_table_name option has been added; this
designates a table to handle unique index size calculations.
The database name is now an optional parameter, the exclusion of which causes all databases to be examined.
Schema name information has been added to index table calculations.
Bugs fixed:
Security Fix:
Using RENAME TABLE against a table with
explicit DATA DIRECTORY and INDEX
DIRECTORY options can be used to overwrite system
table information by replacing the symbolic link points. the
file to which the symlink points.
MySQL will now return an error when the file to which the symlink points already exists. (Bug#32111, CVE-2007-5969)
Security Fix:
ALTER VIEW retained the original
DEFINER value, even when altered by another
user, which could allow that user to gain the access rights of
the view. Now ALTER VIEW is allowed only to
the original definer or users with the SUPER
privilege.
(Bug#29908)
Security Fix:
When using a FEDERATED table, the local
server can be forced to crash if the remote server returns a
result with fewer columns than expected.
(Bug#29801)
Important Change: Incompatible Change:
A number of problems existed in the implementation of
MERGE tables that could cause problems. The
problems are summarized below:
Bug#26379 - Combination of FLUSH TABLE
and REPAIR TABLE corrupts a
MERGE table. This was caused in a number
of situations:
A thread trying to lock a MERGE table
performs busy waiting while REPAIR
TABLE or a similar table administration task
is ongoing on one or more of its MyISAM tables.
A thread trying to lock a MERGE table
performs busy waiting until all threads that did
REPAIR TABLE or similar table
administration tasks on one or more of its MyISAM tables
in LOCK TABLES segments do UNLOCK TABLES. The difference
against problem #1 is that the busy waiting takes place
after the administration task. It is terminated by
UNLOCK TABLES only.
Two FLUSH TABLES within a
LOCK TABLES segment can invalidate
the lock. This does not require a
MERGE table. The first FLUSH
TABLES can be replaced by any statement that
requires other threads to reopen the table. In 5.0 and
5.1 a single FLUSH TABLES can provoke
the problem.
Bug#26867 - Simultaneously executing LOCK
TABLES and REPAIR TABLE on a
MERGE table would result in memory/cpu
hogging.
Trying DML on a MERGE table, which has a
child locked and repaired by another thread, made an
infinite loop in the server.
Bug#26377 - Deadlock with MERGE and
FLUSH TABLE
Locking a MERGE table and its children in parent-child order and flushing the child deadlocked the server.
Bug#25038 - Waiting TRUNCATE
Truncating a MERGE child, while the MERGE table was in use, let the truncate fail instead of waiting for the table to become free.
Bug#25700 - MERGE base tables get
corrupted by OPTIMIZE/ANALYZE/REPAIR
TABLE
Repairing a child of an open MERGE table
corrupted the child. It was necessary to
FLUSH the child first.
Bug#30275 - MERGE tables: FLUSH
TABLES or UNLOCK TABLES causes
server to crash.
Flushing and optimizing locked MERGE
children crashed the server.
Bug#19627 - temporary merge table locking
Use of a temporary MERGE table with
non-temporary children could corrupt the children.
Temporary tables are never locked. Creation of tables with
non-temporary children of a temporary
MERGE table is now prohibited.
Bug#27660 - Falcon: MERGE table possible
It was possible to create a MERGE table
with non-MyISAM children.
Bug#30273 - MERGE tables: Can't lock
file (errno: 155)
This was a Windows-only bug. Table administration statements sometimes failed with "Can't lock file (errno: 155)".
The fix introduces the following changes in behavior:
This patch changes the behavior of temporary
MERGE tables. Temporary
MERGE must have temporary children. The
old behavior was wrong. A temporary table is not locked.
Hence even non-temporary children were not locked. See Bug#19627.
You cannot change the union list of a non-temporary
MERGE table when LOCK TABLES is in
effect. The following does not work:
CREATE TABLE m1 ... ENGINE=MRG_MYISAM ...;
LOCK TABLES t1 WRITE, t2 WRITE, m1 WRITE;
ALTER TABLE m1 ... UNION=(t1,t2) ...;
However, you can do this with a temporary
MERGE table.
You cannot create a MERGE table with
CREATE ... SELECT, neither as a temporary
MERGE table, nor as a non-temporary
MERGE table. For example:
CREATE TABLE m1 ... ENGINE=MRG_MYISAM ... SELECT ...;
Gives error message: table is not BASE
TABLE.
(Bug#26377, Bug#26379, Bug#26867, Bug#25038, Bug#25700, Bug#30275, Bug#19627, Bug#27660, Bug#30273)
Incompatible Change:
Inserting a row with a NULL value for a
DATETIME column results in a
CSV file that the storage engine cannot read.
All CSV tables now need to be defined with
each column marked as NOT NULL. An error is
raised if you try to create a CSV table with
columns that are not defined with NOT NULL.
(Bug#31473, Bug#32817)
Incompatible Change:
SET PASSWORD statements now cause an implicit
commit, and thus are prohibited within stored functions and
triggers.
(Bug#30904)
Incompatible Change:
The mysql_install_db script could fail to
locate some components (including resolveip)
during execution if the --basedir option was
specified on the command-line or within the
my.cnf file. This was due to a conflict
when comparing the compiled-in values and the supplied values.
The --source-install command-line option to
the script has been removed and replaced with the
--srcdir option.
mysql_install_db now locates components
either using the compiled-in options, the
--basedir option or --srcdir
option.
(Bug#30759)
Incompatible Change:
Within a stored routine, it is no longer allowable to declare a
cursor for a SHOW statement. This happened to
work in some instances, but is no longer supported.
(Bug#29223)
Incompatible Change:
GRANT and REVOKE
statements now cause an implicit commit, and thus are prohibited
within stored functions and triggers.
(Bug#21975, Bug#21422, Bug#17244)
Incompatible Change: It was possible for option files to be read twice at program startup, if some of the standard option file locations turned out to be the same directory. Now duplicates are removed from the list of files to be read.
Also, users could not override system-wide settings using
~/.my.cnf because
was read last. The latter file now is read earlier so that
SYSCONFDIR/my.cnf~/.my.cnf can override system-wide
settings.
(Bug#20748)
Important Change: MySQL Cluster:
AUTO_INCREMENT columns had the following
problems when used in NDB tables:
The AUTO_INCREMENT counter was not
updated correctly when such a column was updated.
AUTO_INCREMENT values were not
prefetched beyond statement boundaries.
AUTO_INCREMENT values were not handled
correctly with INSERT IGNORE
statements.
After being set,
ndb_autoincrement_prefetch_sz showed a
value of 1, regardless of the value it had actually been
set to.
As part of this fix, the behavior of
ndb_autoincrement_prefetch_sz has changed.
Setting this to less than 32 no longer has any effect on
prefetching within statements (where IDs are now always obtained
in batches of 32 or more), but only between statements. The
default value for this variable has also changed, and is now
1.
(Bug#25176, Bug#31956, Bug#32055)
Partitioning: Important Note:
An apostrophe or single quote character
(') used in the DATA
DIRECTORY, INDEX DIRECTORY, or
COMMENT for a PARTITION
clause caused the server to crash. When used as part of a
CREATE TABLE statement, the crash was
immediate. When used in an ALTER TABLE
statement, the crash did not occur until trying to perform a
SELECT or DML statement on the table. In
either case, the server could not be completely restarted until
the .FRM file corresponding to the newly
created or altered table was deleted.
Upgrading to the current (or later) release solves this
problem only for tables that are newly created or altered.
Tables created or altered in previous versions of the server
to include ' characters in
PARTITION options must still be removed by
deleting the corresponding .FRM files and
re-creating them afterwards.
Important Note:
The RENAME DATABASE statement was removed and
replaced with ALTER DATABASE
. The db_name UPGRADE DATA DIRECTORY
NAMERENAME DATABASE statement
was intended for upgrading database directory names to the
encoding format used in 5.1 for representing identifiers in the
filesystem (see Section 7.2.3, “Mapping of Identifiers to Filenames”). However,
the statement was found to be dangerous because it could result
in loss of database contents. See
Section 11.1.18, “RENAME DATABASE Syntax” and
Section 11.1.1, “ALTER DATABASE Syntax”.
(Bug#17565, Bug#21741, Bug#28360)
Replication: MySQL Cluster:
Row-based replication from or to a big-endian machine where the
table used the NDB storage engine failed, if
the same table on the other machine was either
non-NDB or the other machine was
little-endian.
(Bug#29549, Bug#30790)
MySQL Cluster:
An improperly reset internal signal was observed as a hang when
using events in the NDB API but could result
in various errors.
(Bug#33206)
MySQL Cluster: Incorrectly handled parameters could lead to a crash in the Transaction Coordinator during a node failure, causing other data nodes to fail. (Bug#33168)
MySQL Cluster: A memory leak occurred if a subscription start request was received by the subscription manager before the node making the request was fully connected to the cluster. (Bug#32652)
MySQL Cluster: A local checkpoint could sometimes be started before the previous LCP was restorable from a global checkpoint. (Bug#32519)
MySQL Cluster: High numbers of API nodes on a slow or congested network could cause connection negotiation to time out prematurely, leading to the following issues:
Excessive retries
Excessive CPU usage
Partially connected API nodes
MySQL Cluster: The failure of a master node could lead to subsequent failures in local checkpointing. (Bug#32160)
MySQL Cluster:
An error with an if statement in
sql/ha_ndbcluster.cc could potentially lead
to an infinite loop in case of failure when working with
AUTO_INCREMENT columns in
NDB tables.
(Bug#31810)
MySQL Cluster:
The NDB storage engine code was not safe for
strict-alias optimization in gcc 4.2.1.
(Bug#31761)
MySQL Cluster: It was possible in some cases for a node group to be “lost” due to missed local checkpoints following a system restart. (Bug#31525)
MySQL Cluster:
A query against a table with TEXT or
BLOB columns that would return more than a
certain amount of data failed with Got error 4350
'Transaction already aborted' from NDBCLUSTER.
(Bug#31482)
This regression was introduced by Bug#29102
MySQL Cluster:
NDB tables having names containing
non-alphanumeric characters (such as “
$ ”) were not discovered correctly.
(Bug#31470)
MySQL Cluster: A node failure during a local checkpoint could lead to a subsequent failure of the cluster during a system restart. (Bug#31257)
MySQL Cluster:
When handling BLOB columns, the addition of
read locks to the lock queue was not handled correctly.
(Bug#30764)
MySQL Cluster:
Discovery of NDB tables did not work
correctly with INFORMATION_SCHEMA.
(Bug#30667)
MySQL Cluster: A filesystem close operation could fail during a node or system restart. (Bug#30646)
MySQL Cluster: Transaction timeouts were not handled well in some circumstances, leading to excessive number of transactions being aborted unnecessarily. (Bug#30379)
MySQL Cluster: Attempting to restore a backup made on a cluster host using one endian to a machine using the other endian could cause the cluster to fail. (Bug#29674)
MySQL Cluster: Log event requests to ndb_mgmd could time out, causing it to fail. (Bug#29621)
MySQL Cluster: In some cases, the cluster managment server logged entries multiple times following a restart of mgmd. (Bug#29565)
MySQL Cluster:
ndb_mgm --help did not
display any information about the -a option.
(Bug#29509)
MySQL Cluster: An interpreted program of sufficient size and complexity could cause all cluster data nodes to shut down due to buffer overruns. (Bug#29390)
MySQL Cluster:
ndb_size.pl failed on tables with
FLOAT columns whose definitions included
commas (for example, FLOAT(6,2)).
(Bug#29228)
MySQL Cluster:
The error message for NDB error code 275
(Out of transaction records for complete
phase) was missing.
(Bug#29139)
MySQL Cluster:
Reads on BLOB columns were not locked when
they needed to be to guarantee consistency.
(Bug#29102)
See also Bug#31482
MySQL Cluster:
A query using joins between several large tables and requiring
unique index lookups failed to complete, eventually returning
Uknown Error after a very long period of
time. This occurred due to inadequate handling of instances
where the Transaction Coordinator ran out of
TransactionBufferMemory, when the cluster
should have returned NDB error code 4012 (Request
ndbd time-out).
(Bug#28804)
MySQL Cluster: There was a short interval during the startup process prior to the beginning of heartbeat detection such that, were an API or management node to reboot or a network failure to occur, data nodes could not detect this, with the result that there could be a lingering connection. (Bug#28445)
MySQL Cluster:
The description of the --print option provided
in the output from ndb_restore --help
was incorrect.
(Bug#27683)
MySQL Cluster:
Restoring a backup made on a cluster host using one endian to a
machine using the other endian failed for
BLOB and DATETIME columns.
(Bug#27543, Bug#30024)
MySQL Cluster:
An invalid subselect on an NDB table could
cause mysqld to crash.
(Bug#27494)
MySQL Cluster:
An attempt to perform a SELECT ... FROM
INFORMATION_SCHEMA.TABLES whose result included
information about NDB tables for which the
user had no privileges crashed the MySQL Server on which the
query was performed.
(Bug#26793)
MySQL Cluster:
Performing DELETE operations after a data
node had been shut down could lead to inconsistent data
following a restart of the node.
(Bug#26450)
MySQL Cluster:
UPDATE IGNORE could sometimes fail on
NDB tables due to the use of unitialized data
when checking for duplicate keys to be ignored.
(Bug#25817)
MySQL Cluster: The cluster log was formatted inconsistently and contained extraneous newline characters. (Bug#25064)
MySQL Cluster: A restart of the cluster failed when more than 1 REDO phase was in use. (Bug#22696)
MySQL Cluster:
When inserting a row into an NDB table with a
duplicate value for a non-primary unique key, the error issued
would reference the wrong key.
This improves on an initial fix for this issue made in MySQL 5.1.13. (Bug#21072)
MySQL Cluster: An insufficiently descriptive and potentially misleading Error 4006 (Connect failure - out of connection objects...) was produced when either of the following two conditions occurred:
There were no more transaction records in the transaction coordinator
an Ndb object in the NDB API was
initialized with insufficient parallellism
Separate error messages are now generated for each of these two cases. (Bug#11313)
Partitioning: Replication:
Replication of partitioned tables using the
InnoDB storage engine failed with
binlog-format=ROW or
binlog-format=MIXED.
(Bug#28430)
Partitioning: It was possible to partition a table to which a foreign key referred. (Bug#32948)
Partitioning:
A query of the form SELECT
against a
partitioned col1 FROM
table GROUP BY (SELECT
col2 FROM
table LIMIT 1);table having a
SET column crashed the server.
(Bug#32772)
Partitioning:
SHOW CREATE TABLE misreported the value of
AUTO_INCREMENT for partitioned tables using
either of the InnoDB or
ARCHIVE storage engines.
(Bug#32247)
Partitioning:
Selecting from INFORMATION_SCHEMA.PARTITIONS
while partition management statements (for example,
ALTER TABLE ... ADD PARTITION) were executing
caused the server to crash.
(Bug#32178)
Partitioning:
Repeated updates of a table that was partitioned by
KEY on a TIMESTAMP column
eventually crashed the server.
(Bug#32067)
Partitioning: Changing the storage engine used by a table having subpartitions led to a server crash. (Bug#31893)
Partitioning:
ORDER BY ... DESC did not always work
correctly when selecting from partitioned tables.
(Bug#31890)
See also Bug#31001
Partitioning:
Selecting from a table partitioned by KEY on
a VARCHAR column whose size was greater than
65530 caused the server to crash.
(Bug#31705)
Partitioning:
INSERT DELAYED into a partitioned table
crashed the server.
(Bug#31201)
Partitioning:
Using ALTER TABLE to partition an existing
table having an AUTO_INCREMENT column could
crash the server.
(Bug#30878)
This regression was introduced by Bug#27405
Partitioning:
ALTER TABLE ... COALESCE PARTITION on a table
partitioned by [LINEAR] HASH or
[LINEAR] KEY caused the server to crash.
(Bug#30822)
Partitioning:
LIKE queries on tables partitioned by
KEY and using third-party storage engines
could return incomplete results.
(Bug#30480)
Partitioning: It was not possible to insert the greatest possible value for a given data type into a partitioned table. For example, consider a table defined as shown here:
CREATE TABLE t (c BIGINT UNSIGNED)
PARTITION BY RANGE(c) (
PARTITION p0 VALUES LESS THAN MAXVALUE
);
The largest possible value for a BIGINT
UNSIGNED column is 18446744073709551615, but the
statement INSERT INTO t VALUES
(18446744073709551615); would fail, even though the
same statement succeeded were t not a
partitioned table.
In other words, MAXVALUE was treated as being
equal to the greatest possible value, rather than as a least
upper bound.
(Bug#29258)
Replication:
When dropping a database containing a stored procedure while
using row-cased replication, the delete of the stored procedure
from the mysql.proc table was recorded in the
binary log following the DROP DATABASE
statement. To correct this issue, DROP
DATABASE now uses statement-based replication.
(Bug#32435)
Replication: It was possible for the name of the relay log file to exceed the amount of memory reserved for it, possibly leading to a crash of the server. (Bug#31836)
See also Bug#28597
Replication: Corruption of log events caused the server to crash on 64-bit Linux systems having 4 GB of memory or more. (Bug#31793)
Replication: Trying to replicate an update of a row that was missing on the slave led to a failure on the slave. (Bug#31702)
Replication: Table names were displayed as binary “garbage” characters in slave error messages. The issue was observed on 64-bit Windows but may have effected other platforms. (Bug#30854)
Replication: One thread could read uninitialized memory from the stack of another thread. This issue was only known to occur in a mysqld process acting as both a master and a slave. (Bug#30752)
Replication:
It was possible to set SQL_SLAVE_SKIP_COUNTER
such that the slave would jump into the middle of a transaction.
This fix improves on one made for this bug in MySQL 5.1.20; the
previous fix insured that the slave could not be made to jump
into the middle of an event group, but the slave failed to
recognize that BEGIN,
COMMIT, and ROLLBACK
statements could begin or end an event group.
(Bug#28618)
See also Bug#12691
Replication: Due a previous change in how the default name and location of the binlog file were determined, replication failed following some upgrades. (Bug#28597)
See also Bug#31836
This regression was introduced by Bug#20166
Replication:
Stored procedures having BIT parameters were
not replicated correctly.
(Bug#26199)
Replication:
Issuing SHOW SLAVE STATUS as
mysqld was shutting down could cause a crash.
(Bug#26000)
Replication: If a temporary error occured inside an event group on an event that was not the first event of the group, the slave could get caught in an endless loop because the retry counter was reset whenever an event was executed successfully. (Bug#24860)
Replication:
An UPDATE statement using a stored function
that modified a non-transactional table was not logged if it
failed. This caused the copy of the non-transactional table on
the master have a row that the copy on the slave did not.
(Bug#23333)
See also Bug#12713
Replication:
A replication slave sometimes failed to reconnect because it was
unable to run SHOW SLAVE HOSTS. It was not
necessary to run this statement on slaves (since the master
should track connection IDs), and the execution of this
statement by slaves was removed.
(Bug#21132)
Replication: A replication slave sometimes stopped for changes that were idempotent (that is, such changes should have been considered “safe”), even though it should have simply noted that the change was already done, and continued operation. (Bug#19958)
Cluster Replication:
Memory was mistakenly freed for NdbBlob
objects when adding an index while replicating the cluster,
which could cause mysqld to crash.
(Bug#33142)
See also Bug#18106
Cluster Replication: Under certain conditions, the slave stopped processing relay logs. This resulted in the logs never being cleared and the slave eventually running out of disk space. (Bug#31958)
Cluster Replication: A node failure during replication could lead to buckets out of order; now active subscribers are checked for, rather than empty buckets. (Bug#31701)
Cluster Replication:
When the master mysqld crashed or was
restarted, no LOST_EVENTS entry was made in
the binlog.
(Bug#31484)
See also Bug#21494
Cluster Replication:
Incorrect handling of INSERT plus
DELETE operations with regard to local
checkpoints caused data node failures in multi-master
replication setups.
(Bug#30914)
Cluster Replication:
An issue with the mysql.ndb_apply_status
table could cause NDB schema autodiscovery to
fail in certain rare circumstances.
(Bug#20872)
Cluster API:
A call to CHECK_TIMEDOUT_RET() in
mgmapi.cpp should have been a call to
DBUG_CHECK_TIMEDOUT_RET().
(Bug#30681)
Cluster API:
An Ndb object in the NDB API was initialized
with insufficient parallellism
The fix for Bug#11230 and Bug#26215 introduced a significant input-parsing slowdown for the mysql client. This has been corrected. (Bug#33057)
SHOW EVENTS and selecting from the
INFORMATION_SCHEMA.EVENTS table failed if the
current database was INFORMATION_SCHEMA.
(Bug#32775)
Use of the cp932 character set with
CAST() in an ORDER
BY clause could cause a server crash.
(Bug#32726)
Specifying a non-existent column for an INSERT
DELAYED statement caused a server crash rather than
producing an error.
(Bug#32676)
Use of CLIENT_MULTI_QUERIES caused
libmysqld to crash.
(Bug#32624)
The INTERVAL() function
incorrectly handled NULL values in the value
list.
(Bug#32560)
Use of a NULL-returning GROUP
BY expression in conjunction with WITH
ROLLUP could cause a server crash.
(Bug#32558)
ORDER BY UpdateXML(...) caused the server to
crash in queries where
UpdateXML() returned
NULL.
(Bug#32557)
For FLUSH TABLES WITH READ LOCK, the server
failed to properly detect write-locked tables when running with
low-priority updates, resulting in a crash or deadlock.
(Bug#32528)
The rules for valid column names were being applied differently for base tables and views. (Bug#32496)
Sending several KILL QUERY statements to
target a connection running SELECT SLEEP()
could freeze the server.
(Bug#32436)
ssl-cipher values in option files were not
being read by libmysqlclient.
(Bug#32429)
If a global read lock acquired with FLUSH TABLES WITH
READ LOCK was in effect, executing ALTER
TABLE could cause a server crash.
(Bug#32395)
Assigning a 65,536-byte string to a TEXT
column (which can hold a maximum of 65,535 bytes) resulted in
truncation without a warning. Now a truncation warning is
generated.
(Bug#32282)
Some uses of user variables in a query could result in a server crash. (Bug#32260)
Various test program cleanups were made: 1)
mytest and libmysqltest
were removed. 2) bug25714 displays an error
message when invoked with incorrect arguments or the
--help option. 3)
mysql_client_test exits cleanly with a proper
error status.
(Bug#32221)
The default grant tables on Windows contained information for
host production.mysql.com, which should not
be there.
(Bug#32219)
Under certain conditions, the presence of a GROUP
BY clause could cause an ORDER BY
clause to be ignored.
(Bug#32202)
For comparisons of the form date_col OP
datetime_const (where
OP is
=,
<,
>,
<=,
or
>=),
the comparison is done using DATETIME values,
per the fix for Bug#27590. However that fix caused any index on
date_col not to be used and
compromised performance. Now the index is used again.
(Bug#32198)
DATETIME arguments specified in numeric form
were treated by DATE_ADD() as
DATE values.
(Bug#32180)
Killing a statement could lead to a race condition in the server. (Bug#32148)
InnoDB does not support
SPATIAL indexes, but could crash when asked
to handle one. Now an error is returned.
(Bug#32125)
The server crashed on optimizations involving a join of
INT and MEDIUMINT columns
and a system variable in the WHERE clause.
(Bug#32103)
mysql-test-run.pl used the
--user option when starting
mysqld, which produces warnings if the
current user is not root. Now
--user is added only for
root.
(Bug#32078)
mysqlslap was missing from the MySQL 5.1.22 Linux RPM packages. (Bug#32077)
With lower_case_table_names set,
CREATE TABLE LIKE was treated differently by
libmysqld than by the non-embedded server.
(Bug#32063)
Within a subquery, UNION was handled
differently than at the top level, which could result in
incorrect results or a server crash.
(Bug#32036, Bug#32051)
On 64-bit platforms, assignments of values to enumeration-valued storage engine-specific system variables were not validated and could result in unexpected values. (Bug#32034)
A DELETE statement with a subquery in the
WHERE clause would sometimes ignore an error
during subquery evaluation and proceed with the delete
operation.
(Bug#32030)
Using dates in the range '0000-00-01' to
'0000-00-99' range in the
WHERE clause could result in an incorrect
result set. (These dates are not in the supported range for
DATE, but different results for a given query
could occur depending on position of records containing the
dates within a table.)
(Bug#32021)
User-defined functions are not loaded if the server is started
with the --skip-grant-tables option, but the
server did not properly handle this case and issued an
Out of memory error message instead.
(Bug#32020)
If a user-defined function was used in a
SELECT statement, and an error occurred
during UDF initialization, the error did not terminate execution
of the SELECT, but rather was converted to a
warning.
(Bug#32007)
HOUR(),
MINUTE(), and
SECOND() could return non-zero
values for DATE arguments.
(Bug#31990)
Changing the SQL mode to cause dates with “zero”
parts to be considered invalid (such as
'1000-00-00') could result in indexed and
non-indexed searches returning different results for a column
that contained such dates.
(Bug#31928)
The server used unnecessarily large amounts of memory when user
variables were used as an argument to
CONCAT() or
CONCAT_WS().
(Bug#31898)
In debug builds, testing the result of an IN
subquery against NULL caused an assertion
failure.
(Bug#31884)
SHOW CREATE TRIGGER caused a server crash.
(Bug#31866)
The server crashed after insertion of a negative value into an
AUTO_INCREMENT column of an
InnoDB table.
(Bug#31860)
For libmysqld applications, handling of
mysql_change_user() calls left
some pointers improperly updated, leading to server crashes.
(Bug#31850)
Using ORDER BY leads to the wrong result when
using the ARCHIVE on a table with a
BLOB when the table cache is full. The table
may also be reported as crashed after the query has completed,
even though the table data was intact.
(Bug#31833)
Comparison results for BETWEEN
were different from those for operators like
< and
>
for DATETIME-like values with trailing extra
characters such as '2007-10-01 00:00:00
GMT-6'. BETWEEN
treated the values as DATETIME, whereas the
other operators performed a binary-string comparison. Now they
all uniformly use a DATETIME comparison, but
generate warnings for values with trailing garbage.
(Bug#31800)
With ONLY_FULL_GROUP_BY SQL mode enabled,
queries such as SELECT a FROM t1 HAVING
COUNT(*)>2 were not being rejected as they should
have been.
(Bug#31794)
The server could crash during filesort for
ORDER BY based on expressions with
INET_NTOA() or
OCT() if those functions
returned NULL.
(Bug#31758)
For a fatal error during filesort in
find_all_keys(), the error was returned
without the necessary handler uninitialization, causing an
assertion failure. Fixed by uninitializing the handler before
returning the error.
(Bug#31742)
The examined-rows count was not incremented for
const queries.
(Bug#31700)
The server crashed if a thread was killed while locking the
general_log table at the beginning of
statement processing.
(Bug#31692)
The mysql_change_user() C API
function was subject to buffer overflow.
(Bug#31669)
For SELECT ... INTO OUTFILE, if the
ENCLOSED BY string is empty and the
FIELDS TERMINATED BY string started with a
special character (one of n,
t, r,
b, 0,
Z, or N), every occurrence
of the character within field values would be duplicated.
(Bug#31663)
SHOW COLUMNS and DESCRIBE
displayed null as the column type for a view
with no valid definer. This caused mysqldump
to produce a non-reloadable dump file for the view.
(Bug#31662)
The mysqlbug script did not include the
correct values of CFLAGS and
CXXFLAGS that were used to configure the
distribution.
(Bug#31644)
Queries that include a comparison of an
INFORMATION_SCHEMA table column to
NULL caused a server crash.
(Bug#31633)
EXPLAIN EXTENDED for
SELECT from
INFORMATION_SCHEMA tables caused an assertion
failure.
(Bug#31630)
ucs2 does not work as a client character set,
but attempts to use it as such were not rejected. Now
character_set_client cannot be set to
ucs2. This also affects statements such as
SET NAMES and SET CHARACTER
SET.
(Bug#31615)
A buffer used when setting variables was not dimensioned to
accommodate the trailing '\0' byte, so a
single-byte buffer overrun was possible.
(Bug#31588)
HAVING could treat lettercase of table
aliases incorrectly if lower_case_table_names
was enabled.
(Bug#31562)
Spurious duplicate-key errors could occur for multiple-row
inserts into an InnoDB table that activate a
trigger.
(Bug#31540)
Using ALTER EVENT to rename a disabled event
caused it to become enabled.
(Bug#31539)
The fix for Bug#24989 introduced a problem such that a
NULL thread handler could be used during a
rollback operation. This problem is unlikely to be seen in
practice.
(Bug#31517)
The length of the result from
IFNULL() could be calculated
incorrectly because the sign of the result was not taken into
account.
(Bug#31471)
Queries that used the ref access method or
index-based subquery execution over indexes that have
DECIMAL columns could fail with an error
Column .
(Bug#31450)col_name cannot be
null
InnoDB now tracks locking and use of tables
by MySQL only after a table has been successfully locked on
behalf of a transaction. Previously, the locked flag was set and
the table in-use counter was updated before checking whether the
lock on the table succeeded. A subsequent failure in obtaining a
lock on the table led to an inconsistent state as the table was
neither locked nor in use.
(Bug#31444)
SELECT 1 REGEX NULL caused an assertion
failure for debug servers.
(Bug#31440)
The UpdateXML() function did not
check for the validity of all its arguments; in some cases, this
could lead to a crash of the server.
(Bug#31438)
The mysql_change_user() C API
function caused advisory locks (obtained with
GET_LOCK()) to malfunction.
(Bug#31418)
NDB libraries and include files were missing from some binary tar file distributions. (Bug#31414)
Executing RENAME while tables were open for
use with HANDLER statements could cause a
server crash.
(Bug#31409)
mysql-test-run.pl tried to create files in a
directory where it could not be expected to have write
permission. mysqltest created
.reject files in a directory other than the
one where test results go.
(Bug#31398)
For a table that had been opened with HANDLER
and marked for reopening after being closed with FLUSH
TABLES, DROP TABLE did not properly
discard the handler.
(Bug#31397)
Automatically allocated memory for string options associated with a plugin was not freed if the plugin did not get installed. (Bug#31382)
INFORMATION_SCHEMA.TABLES was returning
incorrect information.
(Bug#31381)
DROP USER caused an increase in memory usage.
(Bug#31347)
For InnoDB tables with READ
COMMITTED isolation level, UPDATE
statements skipped rows locked by another transaction, rather
than waiting for the locks to be released.
(Bug#31310)
For an almost-full MyISAM table, an insert
that failed could leave the table in a corrupt state.
(Bug#31305)
myisamchk --unpack could corrupt a table that when unpacked has static (fixed-length) row format. (Bug#31277)
CONVERT( would fail on invalid input, but processing
was not aborted for the val,
DATETIME)WHERE clause, leading
to a server crash.
(Bug#31253)
Allocation of an insufficiently large group-by buffer following creation of a temporary table could lead to a server crash. (Bug#31249)
Use of DECIMAL( in
n,
n) ZEROFILLGROUP_CONCAT() could cause a
server crash.
(Bug#31227)
When a TIMESTAMP with a non-zero time part
was converted to a DATE value, no warning was
generated. This caused index lookups to assume that this is a
valid conversion and was returning rows that match a comparison
between a TIMESTAMP value and a
DATE keypart. Now a warning is generated so
that TIMESTAMP with a non-zero time part will
not match DATE values.
(Bug#31221)
WIth small values of myisam_sort_buffer_size,
REPAIR TABLE for MyISAM
tables could cause a server crash.
(Bug#31174)
Use of the @@hostname system variable in
inserts in mysql_system_tables_data.sql did
not replicate. The workaround is to select its value into a user
variable (which does replicate) and insert that.
(Bug#31167)
If MAKETIME() returned
NULL when used in an ORDER
BY that was evaluated using
filesort, a server crash could result.
(Bug#31160)
LAST_INSERT_ID() execution could
be handled improperly in subqueries.
(Bug#31157)
An assertion designed to detect a bug in the
ROLLUP implementation would incorrectly be
triggered when used in a subquery context with non-cacheable
statements.
(Bug#31156)
Selecting spatial types in a UNION could
cause a server crash.
(Bug#31155)
Use of GROUP_CONCAT(DISTINCT
caused an
assertion failure.
(Bug#31154)bit_column)
The server crashed in the parser when running out of memory. Memory handling in the parser has been improved to gracefully return an error when out-of-memory conditions occur in the parser. (Bug#31153)
mysqldump failed to handle databases
containing a ‘-’ character in the
name.
(Bug#31113)
Starting the server using --read-only and with
the Event Scheduler enabled caused it to crash.
This issue occurred only when the server had been built with certain nonstandard combinations of configure options.
GROUP BY NULL WITH ROLLUP could cause a
server crash.
(Bug#31095)
A rule to prefer filesort over an indexed
ORDER BY when accessing all rows of a table
was being used even if a LIMIT clause was
present.
(Bug#31094)
REGEXP operations could cause
a server crash for character sets such as
ucs2. Now the arguments are converted to
utf8 if possible, to allow correct results to
be produced if the resulting strings contain only 8-bit
characters.
(Bug#31081)
Expressions of the form WHERE
, where the same
column was named both times, could cause a server crash in the
optimizer.
(Bug#31075)col NOT IN
(col, ...)
Internal conversion routines could fail for several multi-byte
character sets (big5,
cp932, euckr,
gb2312, sjis) for empty
strings or during evaluation of SOUNDS
LIKE.
(Bug#31069, Bug#31070)
Using ORDER BY with
ARCHIVE tables caused a server crash.
(Bug#31036)
A server crash could occur when a
non-DETERMINISTIC stored function was used in
a GROUP BY clause.
(Bug#31035)
The MOD() function and the
% operator crashed the server for a divisor
less than 1 with a very long fractional part.
(Bug#31019)
Transactions were committed prematurely when LOCK
TABLE and SET AUTOCOMMIT=OFF were
used together.
(Bug#30996)
On Windows, the pthread_mutex_trylock()
implementation was incorrect.
(Bug#30992)
A character set introducer followed by a hexadecimal or bit-value literal did not check its argument and could return an ill-formed result for invalid input. (Bug#30986)
CHAR( did not check its
argument and could return an ill-formed result for invalid
input.
(Bug#30982)str USING
charset)
The result from
CHAR() did not add a leading 0x00 byte for input
strings with an odd number of bytes.
(Bug#30981)str USING
ucs2
A cluster restart could sometimes fail due to an issue with table IDs. (Bug#30975)
The GeomFromText() function
could cause a server crash if the first argument was
NULL or the empty string.
(Bug#30955)
MAKEDATE() incorrectly moved
year values in the 100-200 range into the 1970-2069 range. (This
is legitimate for 00-99, but three-digit years should be used
unchanged.)
(Bug#30951)
When invoked with constant arguments,
STR_TO_DATE() could use a cached
value for the format string and return incorrect results.
(Bug#30942)
GROUP_CONCAT() returned
',' rather than an empty string when the
argument column contained only empty strings.
(Bug#30897)
For MEMORY tables, lookups for
NULL values in BTREE
indexes could return incorrect results.
(Bug#30885)
A server crash could occur if a stored function that contained a
DROP TEMPORARY TABLE statement was invoked by
a CREATE TEMPORARY TABLE statement that
created a table of the same name.
(Bug#30882)
Calling NAME_CONST() with
non-constant arguments triggered an assertion failure.
Non-constant arguments are now disallowed.
(Bug#30832)
For a spatial column with a regular
(non-SPATIAL) index, queries failed if the
optimizer tried to use the index.
(Bug#30825)
Values for the --tc-heuristic-recover option
incorrectly were treated as values for the
--myisam-stats-method option.
(Bug#30821)
INFORMATION_SCHEMA.SCHEMATA was returning
incorrect information.
(Bug#30795)
Improper calculation of CASE
expression results could lead to value truncation.
(Bug#30782)
On Windows, the pthread_mutex_trylock()
implementation was incorrect. One symptom was that invalidating
the query cache could cause a server crash.
(Bug#30768)
User-supplied names foreign key names might not be set to the right key, leading to foreign keys with no name. (Bug#30747)
Under some circumstances, CREATE TABLE ...
SELECT could crash the server or incorrectly report
that the table row size was too large.
(Bug#30736)
Using the MIN() or
MAX() function to select one
part of a multi-part key could cause a crash when the function
result was NULL.
(Bug#30715)
The embedded server did not properly check column-level privileges. (Bug#30710)
INFORMATION_SCHEMA.VIEWS.VIEW_DEFINITION was
incorrect for views that were defined to select from other
INFORMATION_SCHEMA tables.
(Bug#30689)
Issuing an ALTER SERVER statement to update
the settings for a FEDERATED server would
cause the mysqld to crash.
(Bug#30671)
The optimizer could ignore ORDER BY in cases
when the result set is ordered by filesort,
resulting in rows being returned in incorrect order.
(Bug#30666)
A different execution plan was displayed for
EXPLAIN than would actually have been used
for the SELECT because the test of sort keys
for ORDER BY did not consider keys mentioned
in IGNORE KEYS FOR ORDER BY.
(Bug#30665)
On Windows, LIMIT arguments greater than 2^32
did not work correctly.
(Bug#30639)
MyISAM tables could not exceed 4294967295
(2^32 - 1) rows on Windows.
(Bug#30638)
A failed HANDLER ... READ operation could
leave the table in a locked state.
(Bug#30632)
mysql-test-run.pl could not run
mysqld with root
privileges.
(Bug#30630)
The mysqld_safe script contained a syntax error. (Bug#30624)
The optimization that uses a unique index to remove
GROUP BY did not ensure that the index was
actually used, thus violating the ORDER BY
that is implied by GROUP BY.
(Bug#30596)
SHOW STATUS LIKE 'Ssl_cipher_list' from a
MySQL client connected via SSL returned an empty string rather
than a list of available ciphers.
(Bug#30593)
For MEMORY tables, DELETE
statements that remove rows based on an index read could fail to
remove all matching rows.
(Bug#30590)
Using GROUP BY on an expression of the form
caused a server
crash due to incorrect calculation of number of decimals.
(Bug#30587)timestamp_col DIV
number
Executing a SELECT COUNT(*) query on an
InnoDB table partitioned by
KEY that used a DOUBLE
column as the partitioning key caused the server to crash.
(Bug#30583)
The options available to the CHECK TABLE
statement were also allowed in OPTIMIZE TABLE
and ANALYZE TABLE statements, but caused
corruption during their execution. These options were never
supported for the these statements, and an error is now raised
if you try to apply these options to these statements.
(Bug#30495)
A self-referencing trigger on a partitioned table caused the server to crash instead of failing with an error. (Bug#30484)
The mysql_change_user() C API
function did not correctly reset the character set variables to
the values they had just after initially connecting.
(Bug#30472)
When expanding a * in a
USING or NATURAL join, the
check for table access for both tables in the join was done
using only the grant information of the first table.
(Bug#30468)
When casting a string value to an integer, cases where the input
string contained a decimal point and was long enough to overrun
the unsigned long long type were not handled
correctly. The position of the decimal point was not taken into
account which resulted in miscalculated numbers and incorrect
truncation to appropriate SQL data type limits.
(Bug#30453)
Versions of mysqldump from MySQL 4.1 or
higher tried to use START TRANSACTION WITH CONSISTENT
SNAPSHOT if the --single-transaction
and --master-data options were given, even with
servers older than 4.1 that do not support consistent snapshots.
(Bug#30444)
Issuing a DELETE statement having both an
ORDER BY clause and a
LIMIT clause could cause
mysqld to crash.
(Bug#30385)
The Last_query_cost status variable value can
be computed accurately only for simple “flat”
queries, not complex queries such as those with subqueries or
UNION. However, the value was not
consistently being set to 0 for complex queries.
(Bug#30377)
Queries that had a GROUP BY clause and
selected COUNT(DISTINCT
returned
incorrect results.
(Bug#30324)bit_column)
Some valid euc-kr characters having the
second byte in the ranges [0x41..0x5A] and
[0x61..0x7A] were rejected.
(Bug#30315)
When loading a dynamic plugin on FreeBSD, the plugin would fail to load. This was due to a build error where the required symbols would be not exported correctly. (Bug#30296)
Setting certain values on a table using a spatial index could cause the server to crash. (Bug#30286)
The query cache does not support retrieval of statements for which column level access control applies, but the server was still caching such statements, thus wasting memory. (Bug#30269)
Using DISTINCT or GROUP BY
on a BIT column in a
SELECT statement caused the column to be cast
internally as an integer, with incorrect results being returned
from the query.
(Bug#30245)
Multiple-table DELETE statements could delete
rows from the wrong table.
(Bug#30234)
GROUP BY on BIT columns
produced incorrect results.
(Bug#30219)
Short-format mysql commands embedded within
/*! ... */ comments were parsed incorrectly
by mysql, which discarded the rest of the
comment including the terminating */
characters. The result was a malformed (unclosed) comment. Now
mysql does not discard the
*/ characters.
(Bug#30164)
When mysqldump wrote DROP
DATABASE statements within version-specific comments,
it included the terminating semicolon in the wrong place,
causing following statements to fail when the dump file was
reloaded.
(Bug#30126)
Some INFORMATION_SCHEMA tables are intended
for internal use, but could be accessed by using
SHOW statements.
(Bug#30079)
On some 64-bit systems, inserting the largest negative value
into a BIGINT column resulted in incorrect
data.
(Bug#30069)
mysqlslap did not properly handle multiple result sets from stored procedures. (Bug#29985)
Specifying the --without-geometry option for
configure caused server compilation to fail.
(Bug#29972)
Statements within stored procedures ignored the value of the
low_priority_updates system variable.
(Bug#29963)
See also Bug#26162
With auto-reconnect enabled, row fetching for a prepared statement could crash after reconnect occurred because loss of the statement handler was not accounted for. (Bug#29948)
mysqldump --skip-events
--all-databases dumped data from the
mysqld.event table, and when restoring from
this dump, events were created in spite of the
--skip-events option.
(Bug#29938)
When mysqlslap was given a query to execute
from a file via a
--query=
option, it executed the query one too many times.
(Bug#29803)file_name
configure did not find nss
on some Linux platforms.
(Bug#29658)
It was possible when creating a partitioned table using
CREATE TABLE ... SELECT to refer in the
PARTITION BY clause to columns in the table
being selected from, which could cause the server to crash. An
example of such a statement is:
CREATE TABLE t1 (b INT)
PARTITION BY RANGE(t2.b) (
PARTITION p1 VALUES LESS THAN (10),
PARTITION p2 VALUES LESS THAN (20)
) SELECT * FROM t2;
The fix is to disallow references in PARTITION
BY clauses to columns not in the table being created.
(Bug#29444)
If a view used a function in its SELECT
statement, the columns from the view were not inserted into the
INFORMATION_SCHEMA.COLUMNS table.
(Bug#29408)
The mysql client program now ignores Unicode byte order mark (BOM) characters at the beginning of input files. Previously, it read them and sent them to the server, resulting in a syntax error.
Presence of a BOM does not cause mysql to
change its default character set. To do that, invoke
mysql with an option such as
--default-character-set=utf8.
(Bug#29323)
For transactional tables, an error during a multiple-table
DELETE statement did not roll back the
statement.
(Bug#29136)
The log and
log_slow_queries system variables were
displayed by SHOW VARIABLES but could not be
accessed in expressions as @@log and
@@log_slow_queries. Also, attempting to set
them with SET produced an incorrect
Unknown system variable message. Now these
variables are treated as synonyms for
general_log and
slow_query_log, which means that they can be
accessed in expressions and their values can be changed with
SET.
(Bug#29131)
SHOW VARIABLES did not display the
relay_log,
relay_log_index, or
relay_log_info_file system variables.
(Bug#28893)
Killing an SSL connection on platforms where MySQL is compiled
with -DSIGNAL_WITH_VIO_CLOSE (Windows, Mac OS
X, and some others) could crash the server.
(Bug#28812)
SHOW VARIABLES did not correctly display the
value of the thread_handling system variable.
(Bug#28785)
On Windows, mysql_upgrade created temporary
files in C:\ and did not clean them up.
(Bug#28774)
Index hints specified in view definitions were ignored when using the view to select from the base table. (Bug#28702)
Views do not have indexes, so index hints do not apply. Use of index hints when selecting from a view is now disallowed. (Bug#28701)
After changing the SQL mode to a restrictive value that would make already-inserted dates in a column be considered invalid, searches returned different results depending on whether the column was indexed. (Bug#28687)
A SELECT in one connection could be blocked
by INSERT ... ON DUPLICATE KEY UPDATE in
another connection even when
low_priority_updates is set.
(Bug#28587)
mysql_upgrade could run binaries dynamically linked against incorrect versions of shared libraries. (Bug#28560)
The result from CHAR() was
incorrectly assumed in some contexts to return a single-byte
result.
(Bug#28550)
mysqldump reversed the event name and program name in one of its error messages. (Bug#28535)
If a LIMIT clause was present, the server
could fail to consider indexes that could be used for
ORDER BY or GROUP BY.
(Bug#28404)
The parser confused user-defined function (UDF) and stored
function creation for CREATE FUNCTION and
required that there be a default database when creating UDFs,
although there is no such requirement.
(Bug#28318, Bug#29816)
Fast-mutex locking was not thread-safe and optimization-safe on some platforms, which could cause program failures such as out-of-memory errors. (Bug#28284)
The result of a comparison between VARBINARY
and BINARY columns differed depending on
whether the VARBINARY column was indexed.
(Bug#28076)
The metadata in some MYSQL_FIELD members
could be incorrect when a temporary table was used to evaluate a
query.
(Bug#27990)
Partition pruning was not used for queries having
<= or >= conditions
in the WHERE clause on a table using
TO_DAYS() in the partitioning
expression.
(Bug#27927)
mysqlbinlog produced incorrectly formatted
DATETIME and TIMESTAMP
values.
(Bug#27894)
Failure to log to the general_log or
slow_log log tables were not logged to the
error log at all or were logged incorrectly.
(Bug#27858)
comp_err created files with permissions such that they might be inaccessible during make install operations. (Bug#27789)
SHOW COLUMNS returned NULL
instead of the empty string for the Default
value of columns that had no default specified.
(Bug#27747)
It was possible to create a view having a column whose name consisted of an empty string or space characters only. (Bug#27695)
See also Bug#31202
With recent versions of DBD::mysql, mysqlhotcopy generated table names that were doubly qualified with the database name. (Bug#27694)
The anonymous accounts were not being created during MySQL installation. (Bug#27692)
Some SHOW statements and
INFORMATION_SCHEMA queries could expose
information not allowed by the user's access privileges.
(Bug#27629)
ALTER TABLE did
not cause the table to be rebuilt.
(Bug#27610)tbl_name
ROW_FORMAT=format_type
Some character mappings in the ascii.xml
file were incorrect.
(Bug#27562)
Some queries using the
NAME_CONST() function failed to
return either a result or an error to the client, causing it to
hang. This was due to the fact that there was no check to insure
that both arguments to this function were constant expressions.
(Bug#27545, Bug#32559)
With the read_only system variable enabled,
CREATE DATABASE and DROP
DATABASE were allowed to users who did not have the
SUPER privilege.
(Bug#27440)
For an event with an ON COMPLETION value of
PRESERVE, an ALTER EVENT
statement that specified no ON COMPLETION
option caused the value to become NOT
PRESERVE.
(Bug#27407)
MySQL failed to generate or retrieve an
AUTO_INCREMENT primary key for
InnoDB tables with user-defined partitioning.
(Bug#27405)
Changes to the sql_mode system variable were
not tracked by INSERT DELAYED.
(Bug#27358)
A SELECT with more than 31 nested dependent
subqueries returned an incorrect result.
(Bug#27352)
The ExtractValue() and
UpdateXML() functions performed
extremely slowly for large amounts of XML data (greater than 64
KB). These functions now execute approximately 2000 times faster
than previously.
(Bug#27287)
Several functions and operators returned an incorrect result
type (string) when given DATE parameters:
COALESCE(),
IF(),
IFNULL(),
LEAST(),
GREATEST(),
CASE. These now aggregate
DATE (or DATETIME)
parameters to produce a DATE (or
DATETIME result. In addition, the result type
of the STR_TO_DATE() function is
now DATETIME by default.
(Bug#27216)
On WIndows, writes to the debug log were using
freopen() instead of
fflush(), resulting in slower performance.
(Bug#27099)
For a table that used different full-text parsers for different
FULLTEXT indexes, SHOW CREATE
TABLE displayed the first parser name for all of them.
(Bug#27040)
STR_TO_DATE() displayed an error
message that referred to STR_TO_TIME().
(Bug#27014)
Symbolic links on Windows could fail to work. (Bug#26811)
mysqld sometimes miscalculated the number of
digits required when storing a floating-point number in a
CHAR column. This caused the value to be
truncated, or (when using a debug build) caused the server to
crash.
(Bug#26788)
See also Bug#12860
LOAD DATA INFILE ran very slowly when reading
large files into partitioned tables.
(Bug#26527)
Using HANDLER to open a table having a
storage engine not supported by HANDLER
properly returned an error, but also improperly prevented the
table from being dropped by other connections.
(Bug#25856)
For a prepared statement stmt,
changing the default database following PREPARE
but before
stmt EXECUTE
caused stmt stmt to be recorded
incorrectly in the binary log.
(Bug#25843)
CREATE TABLE LIKE did not work when the
source table was an INFORMATION_SCHEMA table.
(Bug#25629)
Threads that were calculating the estimated number of records
for a range scan did not respond to the KILL
statement. That is, if a range join type is
possible (even if not selected by the optimizer as a join type
of choice and thus not shown by EXPLAIN), the
query in the statistics state (shown by the
SHOW PROCESSLIST) did not respond to the
KILL statement.
(Bug#25421)
For InnoDB tables, CREATE TABLE a AS
SELECT * FROM A would fail.
(Bug#25164)
For mysql --show-warnings, warnings were in some cases not displayed. (Bug#25146)
The returns column of the
mysql.proc table was
CHAR(64), which is not long enough to store
long data types such as ENUM types. The
column has been changed to LONGBLOB and a
warning is generated if truncation occurs when storing a row
into the proc table.
(Bug#24923)
If the expected precision of an arithmetic expression exceeded the maximum precision supported by MySQL, the precision of the result was reduced by an unpredictable or arbitrary amount, rather than to the maximum precision. In some cases, exceeding the maximum supported precision could also lead to a crash of the server. (Bug#24907)
A CREATE TRIGGER statement could cause a
deadlock or server crash if it referred to a table for which a
table lock had been acquired with LOCK
TABLES.
(Bug#23713)
For storage engines that do not redefine
handler::index_next_same() and are capable
of indexes, statements that include a WHERE
clause might select incorrect data.
(Bug#22351)
The parser treated the
INTERVAL() function incorrectly,
leading to situations where syntax errors could result depending
on which side of an arithmetic operator the function appeared.
(Bug#22312)
Entries in the general query log were truncated at 1000 characters. (Bug#21557)
A memory leak occurred when CREATE TEMPORARY TABLE ..
SELECT was invoked from a stored function that in turn
was called from CREATE TABLE ... SELECT.
(Bug#21136)
It was possible to execute CREATE TABLE t1 ... SELECT
... FROM t2 with the CREATE
privilege for t1 and
SELECT privilege for t2,
even in the absence of the INSERT privilege
for t1.
(Bug#20901)
Worked around an icc problem with an incorrect machine instruction being generated in the context of software pre-fetching after a subroutine got in-lined. (Upgrading to icc 10.0.026 makes the workaround unnecessary.) (Bug#20803)
If a column selected by a view referred to a stored function,
the data type reported for the column in
INFORMATION_SCHEMA.COLUMNS could be
incorrect.
(Bug#20550)
The mysql_change_user() C API
function changed the value of the
SQL_BIG_SELECTS session variable.
(Bug#20023)
Hostnames sometimes were treated as case sensitive in
account-management statements (CREATE USER,
GRANT, REVOKE, and so
forth).
(Bug#19828)
Issuing an SQL KILL of the active connection
caused an error on Mac OS X.
(Bug#19723)
The readline library has been updated to
version 5.2. This addresses issues in the
mysql client where history and editing within
the client would fail to work as expected.
(Bug#18431)
The -lmtmalloc library was removed from the
output of mysql_config on Solaris, as it
caused problems when building DBD::mysql (and
possibly other applications) on that platform that tried to use
dlopen() to access the client library.
(Bug#18322)
The Aborted_clients status variable was
incremented twice if a client exited without calling
mysql_close().
(Bug#16918)
Clients were ignoring the TCP/IP port number specified as the default port via the --with-tcp-port configuration option. (Bug#15327)
Parameters of type DATETIME or
DATE in stored procedures were silently
converted to VARBINARY.
(Bug#13675)
Values of types REAL ZEROFILL,
DOUBLE ZEROFILL, FLOAT
ZEROFILL, were not zero-filled when converted to a
character representation in the C prepared statement API.
(Bug#11589)
Performing a full text search on a table could cause a crash on a 64-bit platforms with certain characteristics. Searches that were known to cause a crash with certain datasets included numerical values and strings where the match string included data enclosed in single or double quotes. (Bug#11392)
mysql stripped comments from statements sent
to the server. Now the --comments or
--skip-comments option can be used to control
whether to retain or strip comments. The default is
--skip-comments.
(Bug#11230, Bug#26215)
Several buffer-size system variables were either being handled incorrectly for large values (for settings larger than 4GB, they were truncated to values less than 4GB without a warning), or were limited unnecessarily to 4GB even on 64-bit systems. The following changes were made:
For key_buffer_size, values larger than
4GB are allowed on 64-bit platforms.
For join_buffer_size,
sort_buffer_size, and
myisam_sort_buffer_size, values larger
than 4GB are allowed on 64-bit platforms (except Windows,
for which large values are truncated to 4GB with a warning).
In addition, settings for read_buffer_size
and read_rnd_buffer_size are limited to 2GB
on all platforms. Larger values are truncated to 2GB with a
warning.
(Bug#5731, Bug#29419, Bug#29446)
Executing DISABLE KEYS and ENABLE
KEYS on a non-empty table would cause the size of the
index file for the table to grow considerable. This was because
the DISABLE KEYS operation would only mark
the existing index, without deleting the index blocks. The
ENABLE KEYS operation would re-create the
index, adding new blocks, while the previous index blocks would
remain. Existing indexes are now dropped and recreated when the
ENABLE KEYS statement is executed.
(Bug#4692)
There were no more transaction records in the transaction coordinator
Replicating from a master table to a slave table where the size
of a CHAR or VARCHAR
column was a different size would cause
mysqld to crash. For more information on
replicating with different column definitions, see
Section 14.3.1.20, “Replication with Differing Tables on Master and Slave”.
Grant table checks failed in libmysqld.
(Bug #XXX)
This section contains change history information for MySQL Cluster 5.1 Carrier Grade Edition releases based on MySQL 5.1.23.
This is a new Beta development release, fixing recently discovered bugs.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.19-ndb-6.3.0, MySQL 5.1.19-ndb-6.3.1, MySQL 5.1.22-ndb-6.3.2, MySQL 5.1.22-ndb-6.3.3, MySQL 5.1.22-ndb-6.3.4, and MySQL 5.1.22-ndb-6.3.5, MySQL 5.1.22-ndb-6.3.6, and MySQL 5.1.23-ndb-6.3.7 as well as all bugfixes and feature changes which were added in the mainline 5.1.21 and 5.1.22 releases; information about these can be found in Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)” and Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”.
Bugs fixed:
Cluster Replication:
ndb_restore -e restored excessively large
values to the ndb_apply_status table's
epoch column when restoring to a MySQL
Cluster version supporting Micro-GCPs from an older version that
did not support these.
A workaround when restoring to MySQL Cluster 5.1 Carrier Grade Edition releases
supporting micro-GCPs previous to MySQL 5.1.23-ndb-6.3.8 is to
perform a 32-bit shift on the epoch column
values to reduce them to their proper size.
(Bug#33406)
This is a new Beta development release, fixing recently discovered bugs.
Obtaining MySQL Cluster 5.1 Carrier Grade Edition 5.1.23-ndb-6.3.7. MySQL Cluster 5.1 Carrier Grade Edition 5.1.23-ndb-6.3.7 — like all releases for MySQL Cluster 5.1 Carrier Grade Edition — is a source-only release which you must compile and install using the instructions found in Section 2.9, “MySQL Installation Using a Source Distribution”, and in Section 15.4.1, “Building MySQL Cluster from Source Code”. You can download source code archives for this release in two versions. The version that should use depends on whether you have a commercial MySQL Cluster 5.1 Carrier Grade Edition license or you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL.
Commercial users.
Download the commercial source archive from the MySQL
FTP site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The
file
mysql-5.1.23-ndb-6.3.7/mysqlcom-5.1.23-ndb-6.3.7-telco.tar.gz
in this directory contains the complete commercial
source archive.
The commercial MySQL Cluster 5.1 Carrier Grade Edition sources contain non-GPL libraries and header files. You must not use the commercial version without a commercial license from MySQL AB. See http://www.mysql.com/products/database/clustercge/ for information about licensing MySQL Cluster 5.1 Carrier Grade Edition for commerical use.
GPL users.
If you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL, you
can obtain the GPL source tarball from the MySQL FTP
site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The file
mysql-5.1.23-ndb-6.3.7/mysql-5.1.23-ndb-6.3.7-telco.tar.gz
in this directory contains the complete GPL source
archive.
You can also obtain the latest GPL MySQL Cluster 5.1 Carrier Grade Edition sources from http://mysql.bkbits.net/ using the free BitKeeper client. See Section 2.9.3, “Installing from the Development Source Tree”, for more information.
The GPL MySQL Cluster 5.1 Carrier Grade Edition sources contain GPL libraries and header files. You must not use the GPL version in applications that are not released under the GPL or a GPL-compatible license. See http://www.mysql.com/company/legal/licensing/foss-exception.html, for a list of GPL-compatible licenses.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.19-ndb-6.3.0, MySQL 5.1.19-ndb-6.3.1, MySQL 5.1.22-ndb-6.3.2, MySQL 5.1.22-ndb-6.3.3, MySQL 5.1.22-ndb-6.3.4, MySQL 5.1.22-ndb-6.3.5, and MySQL 5.1.22-ndb-6.3.6, as well as all bugfixes and feature changes which were added in the mainline 5.1.21, 5.1.22, and 5.1.23 releases; information about these can be found in Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)”, Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”, and Section C.1.1, “Changes in MySQL 5.1.23 (Not yet released)”.
Functionality added or changed:
MySQL Cluster:
Compressed local checkpoints and backups are now supported,
resulting in a space savings of 50% or more over uncompressed
LCPs and backups. Cmpression of these can be enabled in the
config.ini file using the two new data node
configuration parameters CompressedLCP and
CompressedBackup, respectively.
MySQL Cluster:
OPTIMIZE TABLE is now supported for
NDB tables, subject to the following
limitations:
Only in-memory tables are supported.
OPTIMIZE still has no effect on Disk
Data tables.
Only variable-length columns are supported. However, you
can force columns defined using fixed-length data types to
be dynamic using the ROW_FORMAT or
COLUMN_FORMAT option with a
CREATE TABLE or ALTER
TABLE statement.
Memory reclaimed from an NDB table using
OPTIMIZE is generally available to the
cluster, and not confined to the table from which it was
recovered, unlike the case with memory freed using
DELETE.
The performance of OPTIMIZE on
NDB tables can be regulated by adjusting the
value of the ndb_optimization_delay system
variable.
MySQL Cluster:
It is now possible to cause statements occurring within the same
transaction to be run as a batch by setting the session variable
transaction_allow_batching to
1 or ON.
To use this feature, autocommit must be disabled.
Bugs fixed:
Important Change: MySQL Cluster:
AUTO_INCREMENT columns had the following
problems when used in NDB tables:
The AUTO_INCREMENT counter was not
updated correctly when such a column was updated.
AUTO_INCREMENT values were not
prefetched beyond statement boundaries.
AUTO_INCREMENT values were not handled
correctly with INSERT IGNORE
statements.
After being set,
ndb_autoincrement_prefetch_sz showed a
value of 1, regardless of the value it had actually been
set to.
As part of this fix, the behavior of
ndb_autoincrement_prefetch_sz has changed.
Setting this to less than 32 no longer has any effect on
prefetching within statements (where IDs are now always obtained
in batches of 32 or more), but only between statements. The
default value for this variable has also changed, and is now
1.
(Bug#25176, Bug#31956, Bug#32055)
Partitioning: MySQL Cluster:
When partition pruning on an NDB table
resulted in an ordered index scan spanning only one partition,
any descending flag for the scan was wrongly discarded, causing
ORDER BY DESC to be treated as ORDER
BY ASC, MAX() to be handled
incorrectly, and similar problems.
(Bug#33061)
MySQL Cluster:
When all data and SQL nodes in the cluster were shut down
abnormally (that is, other than by using STOP
in the cluster management client), ndb_mgm
used excessive amounts of CPU.
(Bug#33237)
MySQL Cluster: When using micro-GCPs, if a node failed while preparing for a global checkpoint, the master node would use the wrong GCI. (Bug#32922)
MySQL Cluster:
Under some conditions, performing an ALTER
TABLE on an NDBCLUSTER table failed
with a Table is full error, even when
only 25% of DataMemory was in use and the
result should have been a table using less memory (for example,
changing a VARCHAR(100) column to
VARCHAR(80)).
(Bug#32670)
Cluster Replication:
A replication slave could return “garbage” data
that was not in recognizable row format due to a problem with
the internal all_set() method.
(Bug#33375)
Cluster Replication:
Creating the mysql.ndb_replication table with
the wrong number of columns for the primary key caused
mysqld to crash. Now a CREATE TABLE
[mysql.]ndb_replication statement that is invalid for
this reason fails with the error Bad schema for
mysql.ndb_replication table. Message: Wrong number of primary
keys, expected number.
(Bug#33159)
Cluster Replication:
Where a table being replicated had a TEXT or
BLOB column, an UPDATE on
the master that did not refer explicitly to this column in the
WHERE clause stopped the SQL thread on the
slave with Error in Write_rows event: row application
failed. Got error 4288 'Blob handle for column not available'
from NDBCLUSTER.
(Bug#30674)
This is a new Beta development release, fixing recently discovered bugs.
Obtaining MySQL Cluster 5.1 Carrier Grade Edition 5.1.23-ndb-6.2.10. MySQL Cluster 5.1 Carrier Grade Edition 5.1.23-ndb-6.2.10 — like all releases for MySQL Cluster 5.1 Carrier Grade Edition — is a source-only release which you must compile and install using the instructions found in Section 2.9, “MySQL Installation Using a Source Distribution”, and in Section 15.4.1, “Building MySQL Cluster from Source Code”. You can download source code archives for this release in two versions. The version that should use depends on whether you have a commercial MySQL Cluster 5.1 Carrier Grade Edition license or you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL.
Commercial users.
Download the commercial source archive from the MySQL
FTP site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The
file
mysql-5.1.23-ndb-6.2.10/mysqlcom-5.1.23-ndb-6.2.10-telco.tar.gz
in this directory contains the complete commercial
source archive.
The commercial MySQL Cluster 5.1 Carrier Grade Edition sources contain non-GPL libraries and header files. You must not use the commercial version without a commercial license from MySQL AB. See http://www.mysql.com/products/database/clustercge/ for information about licensing MySQL Cluster 5.1 Carrier Grade Edition for commerical use.
GPL users.
If you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL, you
can obtain the GPL source tarball from the MySQL FTP
site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The file
mysql-5.1.23-ndb-6.2.10/mysql-5.1.23-ndb-6.2.10-telco.tar.gz
in this directory contains the complete GPL source
archive.
You can also obtain the latest GPL MySQL Cluster 5.1 Carrier Grade Edition sources from http://mysql.bkbits.net/ using the free BitKeeper client. See Section 2.9.3, “Installing from the Development Source Tree”, for more information.
The GPL MySQL Cluster 5.1 Carrier Grade Edition sources contain GPL libraries and header files. You must not use the GPL version in applications that are not released under the GPL or a GPL-compatible license. See http://www.mysql.com/company/legal/licensing/foss-exception.html, for a list of GPL-compatible licenses.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes
made in MySQL 5.1.18-ndb-6.2.1, MySQL 5.1.18-ndb-6.2.2 (see
Section C.1.10, “Changes in MySQL 5.1.18 Carrier Grade Edition”), MySQL 5.1.19-ndb-6.2.3,
MySQL 5.1.19-ndb-6.2.4, MySQL 5.1.22-ndb-6.2.5, MySQL
5.1.22-ndb-6.2.6, MySQL 5.1.22-ndb-6.2.7, MySQL
5.1.22-ndb-6.2.8, and MySQL 5.1.23-ndb-6.2.9, as well as all
bugfixes and feature changes which were added in the mainline
5.1.20, 5.1.21, 5.1.22, and 5.1.23 releases; information about
these can be found in Section C.1.6, “Changes in MySQL 5.1.20 (25 June 2007)”,
Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)”Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”, and
Section C.1.1, “Changes in MySQL 5.1.23 (Not yet released)”. Also included are most (but not
all) bugfixes made in the MCCGE 6.1.x
series through MySQL 5.1.15-ndb-6.1.16.
Bugs fixed:
Important Change: MySQL Cluster:
AUTO_INCREMENT columns had the following
problems when used in NDB tables:
The AUTO_INCREMENT counter was not
updated correctly when such a column was updated.
AUTO_INCREMENT values were not
prefetched beyond statement boundaries.
AUTO_INCREMENT values were not handled
correctly with INSERT IGNORE
statements.
After being set,
ndb_autoincrement_prefetch_sz showed a
value of 1, regardless of the value it had actually been
set to.
As part of this fix, the behavior of
ndb_autoincrement_prefetch_sz has changed.
Setting this to less than 32 no longer has any effect on
prefetching within statements (where IDs are now always obtained
in batches of 32 or more), but only between statements. The
default value for this variable has also changed, and is now
1.
(Bug#25176, Bug#31956, Bug#32055)
Partitioning: MySQL Cluster:
When partition pruning on an NDB table
resulted in an ordered index scan spanning only one partition,
any descending flag for the scan was wrongly discarded, causing
ORDER BY DESC to be treated as ORDER
BY ASC, MAX() to be handled
incorrectly, and similar problems.
(Bug#33061)
MySQL Cluster:
When all data and SQL nodes in the cluster were shut down
abnormally (that is, other than by using STOP
in the cluster management client), ndb_mgm
used excessive amounts of CPU.
(Bug#33237)
MySQL Cluster: When using micro-GCPs, if a node failed while preparing for a global checkpoint, the master node would use the wrong GCI. (Bug#32922)
MySQL Cluster:
Under some conditions, performing an ALTER
TABLE on an NDBCLUSTER table failed
with a Table is full error, even when
only 25% of DataMemory was in use and the
result should have been a table using less memory (for example,
changing a VARCHAR(100) column to
VARCHAR(80)).
(Bug#32670)
MySQL Cluster:
When a mysqld acting as a cluster SQL node
starts the NDBCLUSTER storage engine, there
is a delay during which some necessary data structures cannot be
initialized until after it has connected to the cluster, and all
MySQL Cluster tables should be opened as read-only. This worked
correctly when the NDB binlog thread was
running, but when it was not running, Cluster tables were not
opened as read-only even when the data structures had not yet
been set up.
(Bug#32275)
Cluster Replication:
A replication slave could return “garbage” data
that was not in recognizable row format due to a problem with
the internal all_set() method.
(Bug#33375)
Functionality added or changed:
There is a new innodb_autoinc_lock_mode
system variable to configure the locking behavior that
InnoDB uses for generating auto-increment
values. The default behavior now is slightly different from
before, which involves a minor incompatibility for multiple-row
inserts that specify an explicit value for the auto-increment
column in some but not all rows. See
Section 12.5.6.3, “How AUTO_INCREMENT Handling Works in
InnoDB”.
Bugs fixed:
MySQL Cluster:
Backups of TIMESTAMP columns made with
ndb_restore on a MySQL Cluster using data
nodes hosts of one endian could not be used to restore the
cluster's data to data node hosts of the other endian.
(Bug#30134)
MySQL Cluster:
(Replication): Multi-master replication setups did not handle
--log-slave-updates correctly.
(Bug#30017)
Row-based replication from a pre-5.1.22 MySQL Server to a MySQL 5.1.22 was unstable due to an uninitialized variable. (Bug#31076)
For an InnoDB table if a
SELECT was ordered by the primary key and
also had a WHERE field = value clause on a
different field that was indexed, a DESC
order instruction would be ignored.
(Bug#31001)
mysql_install_db could fail to find its message file. (Bug#30678)
Memory corruption occurred for some queries with a top-level
OR operation in the WHERE
condition if they contained equality predicates and other
sargable predicates in disjunctive parts of the condition.
(Bug#30396)
CONNECTION_ID() always returned
0 for the embedded server (libmysqld).
(Bug#30389)
The server created temporary tables for filesort operations in
the working directory, not in the directory specified by the
tmpdir system variable.
(Bug#30287)
Using KILL QUERY or KILL
CONNECTION to kill a SELECT
statement caused a server crash if the query cache was enabled.
(Bug#30201)
mysqldump from the MySQL 5.1.21 distribution could not be used to create a dump from a MySQL 5.1.20 or older server. (Bug#30123)
Under some circumstances, a UDF initialization function could be passed incorrect argument lengths. (Bug#29804)
Operations that used the time zone replicated the time zone only for successful operations, but did not replicate the time zone for errors that need to know it. (Bug#29536)
When using a combination of HANDLER... READ
and DELETE on a table, MySQL continued to
open new copies of the table every time, leading to an
exhaustion of file descriptors.
(Bug#29474)
This regression was introduced by Bug#21587
The mysql_list_fields() C API
function incorrectly set
MYSQL_FIELD::decimals for some view columns.
(Bug#29306)
Tables using the InnoDB storage engine
incremented AUTO_INCREMENT values incorrectly
with ON DUPLICATE KEY UPDATE.
(Bug#28781)
Non-range queries of the form SELECT ... FROM ... WHERE
sometimes were unnecessarily
blocked waiting for a lock if another transaction was using
keypart1=constant,
...,
keypartN=constant
ORDER BY ... FOR UPDATESELECT ... FOR UPDATE on the same table.
(Bug#28570)
On Windows, symbols for yaSSL and taocrypt were missing from
mysqlclient.lib, resulting in unresolved
symbol errors for clients linked against that library.
(Bug#27861)
Read lock requests that were blocked by a pending write lock request were not allowed to proceed if the statement requesting the write lock was killed. (Bug#21281)
This section contains change history information for MySQL Cluster 5.1 Carrier Grade Edition releases based on MySQL 5.1.22.
This is a new Beta development release, fixing recently discovered bugs.
Obtaining MySQL Cluster 5.1 Carrier Grade Edition 5.1.22-ndb-6.3.6. MySQL Cluster 5.1 Carrier Grade Edition 5.1.22-ndb-6.3.6 — like all releases for MySQL Cluster 5.1 Carrier Grade Edition — is a source-only release which you must compile and install using the instructions found in Section 2.9, “MySQL Installation Using a Source Distribution”, and in Section 15.4.1, “Building MySQL Cluster from Source Code”. You can download source code archives for this release in two versions. The version that should use depends on whether you have a commercial MySQL Cluster 5.1 Carrier Grade Edition license or you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL.
Commercial users.
Download the commercial source archive from the MySQL
FTP site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The
file
mysql-5.1.22-ndb-6.3.6/mysqlcom-5.1.22-ndb-6.3.6-telco.tar.gz
in this directory contains the complete commercial
source archive.
The commercial MySQL Cluster 5.1 Carrier Grade Edition sources contain non-GPL libraries and header files. You must not use the commercial version without a commercial license from MySQL AB. See http://www.mysql.com/products/database/clustercge/ for information about licensing MySQL Cluster 5.1 Carrier Grade Edition for commerical use.
GPL users.
If you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL, you
can obtain the GPL source tarball from the MySQL FTP
site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The file
mysql-5.1.22-ndb-6.3.6/mysql-5.1.22-ndb-6.3.6-telco.tar.gz
in this directory contains the complete GPL source
archive.
You can also obtain the latest GPL MySQL Cluster 5.1 Carrier Grade Edition sources from http://mysql.bkbits.net/ using the free BitKeeper client. See Section 2.9.3, “Installing from the Development Source Tree”, for more information.
The GPL MySQL Cluster 5.1 Carrier Grade Edition sources contain GPL libraries and header files. You must not use the GPL version in applications that are not released under the GPL or a GPL-compatible license. See http://www.mysql.com/company/legal/licensing/foss-exception.html, for a list of GPL-compatible licenses.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.19-ndb-6.3.0, MySQL 5.1.19-ndb-6.3.1, MySQL 5.1.22-ndb-6.3.2, MySQL 5.1.22-ndb-6.3.3, MySQL 5.1.22-ndb-6.3.4, and MySQL 5.1.22-ndb-6.3.5, as well as all bugfixes and feature changes which were added in the mainline 5.1.21 and 5.1.22 releases; information about these can be found in Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)” and Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”.
Functionality added or changed:
Important Note:
MySQL Cluster 5.1 Carrier Grade Edition 6.2.x and
6.3.x source archives are now
available in separate commercial and GPL versions. Due to
licensing concerns, previous MySQL Cluster 5.1 Carrier Grade Edition source archives were
removed from the FTP site.
MySQL Cluster: Unnecessary reads when performing a primary key or unique key update have been reduced, and in some cases, eliminated. (It is almost never necessary to read a record prior to an update, the lone exception to this being when a primary key is updated, since this requires a delete followed by an insert, which must be prepared by reading the record.) Depending on the number of primary key and unique key lookups that are performed per transaction, this can yield a considerable improvement in performance.
MySQL Cluster:
Batched operations are now better supported for
DELETE and UPDATE.
(UPDATE WHERE... and muliple
DELETE.)
MySQL Cluster:
Introduced the Ndb_execute_count status
variable, which measures the number of round trips made by
queries to the NDB kernel.
Bugs fixed:
MySQL Cluster:
An insert or update with combined range and equality constraints
failed when run against an NDB table with the
error Got unknown error from NDB. An
example of such a statement would be UPDATE t1 SET b =
5 WHERE a IN (7,8) OR a >= 10;.
(Bug#31874)
MySQL Cluster:
An error with an if statement in
sql/ha_ndbcluster.cc could potentially lead
to an infinite loop in case of failure when working with
AUTO_INCREMENT columns in
NDB tables.
(Bug#31810)
MySQL Cluster:
The NDB storage engine code was not safe for
strict-alias optimization in gcc 4.2.1.
(Bug#31761)
MySQL Cluster: ndb_restore displayed incorrect backup file version information. This meant (for example) that, when attempting to restore a backup made from a MySQL 5.1.22 cluster to a MySQL 5.1.22-ndb-6.3.3 cluster, the restore process failed with the error Restore program older than backup version. Not supported. Use new restore program. (Bug#31723)
MySQL Cluster: Following an upgrade, ndb_mgmd would fail with an ArbitrationError. (Bug#31690)
MySQL Cluster:
The NDB management client command
provided no output when
node_id REPORT
MEMORYnode_id was the node ID of a
management or API node. Now, when this occurs, the management
client responds with Node
.
(Bug#29485)node_id: is not a data
node
MySQL Cluster:
Performing DELETE operations after a data
node had been shut down could lead to inconsistent data
following a restart of the node.
(Bug#26450)
MySQL Cluster:
UPDATE IGNORE could sometimes fail on
NDB tables due to the use of unitialized data
when checking for duplicate keys to be ignored.
(Bug#25817)
Cluster Replication: Updates performed unnecessary writes to the primary keys of the rows being updated. (Bug#31841)
Cluster Replication:
Slave batching did not work correctly with
UPDATE statements.
(Bug#31787)
Cluster Replication: A node failure during replication could lead to buckets out of order; now active subscribers are checked for, rather than empty buckets. (Bug#31701)
Cluster Replication:
When the master mysqld crashed or was
restarted, no LOST_EVENTS entry was made in
the binlog.
(Bug#31484)
See also Bug#21494
This is a new Beta development release, fixing recently discovered bugs.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.19-ndb-6.3.0, MySQL 5.1.19-ndb-6.3.1, MySQL 5.1.22-ndb-6.3.2, MySQL 5.1.22-ndb-6.3.3, and MySQL 5.1.22-ndb-6.3.4, as well as all bugfixes and feature changes which were added in the mainline 5.1.21 and 5.1.22 releases; information about these can be found in Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)” and Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”.
Bugs fixed:
MySQL Cluster:
A query against a table with TEXT or
BLOB columns that would return more than a
certain amount of data failed with Got error 4350
'Transaction already aborted' from NDBCLUSTER.
(Bug#31482)
This regression was introduced by Bug#29102
Cluster Replication: In some cases, not all tables were properly initialized before the binlog thread was started. (Bug#31618)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.19-ndb-6.3.0, MySQL 5.1.19-ndb-6.3.1, MySQL 5.1.22-ndb-6.3.2, and MySQL 5.1.22-ndb-6.3.3, as well as all bugfixes and feature changes which were added in the mainline 5.1.21 and 5.1.22 releases; information about these can be found in Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)” and Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”.
Functionality added or changed:
MySQL Cluster:
The --ndb_optimized_node_selection startup
option for mysqld now allows a wider range of
values and corresponding behaviors for SQL nodes when selecting
a transaction coordinator. See
Section 5.1.3, “System Variables”, for more information.
Cluster Replication:
A new configuration parameter
TimeBetweenEpochsTimeout allows a timeout to
be set for time between epochs. For more information, see
Section 15.4.4.5, “Defining Data Nodes”.
(Bug#31276)
Cluster Replication: A replication heartbeat mechanism has been added to facilitate monitoring. This provides an alternative to checking log files, making it possible to detect in real time when a slave has failed.
Configuration of heartbeats is done via a new
MASTER_HEARTBEAT_PERIOD =
clause for the
intervalCHANGE MASTER TO statement (see
Section 11.6.2.1, “CHANGE MASTER TO Syntax”); monitoring can be done by
checking the values of the status variables
Slave_heartbeat_period and
Slave_received_heartbeats (see
Section 5.1.5, “Status Variables”).
The addition of replication heartbeats addresses a number of issues:
Relay logs were rotated every
slave_net_timeout seconds even if no
statements were being replicated.
SHOW SLAVE STATUS displayed an
incorrect value for
seconds_behind_master following a
FLUSH LOGS statement.
Replication master-slave connections used
slave_net_timeout for connection
timeouts.
Cluster Replication:
Support for a new conflict resolution function
NDB$OLD() has been added for handling
simultaneous updates in multi-master and circular replication
setups. A new status variable
Ndb_conflict_fn_old tracks the number of
times that updates are prevented from being applied due to this
type of conflict resolution. See
Section 15.10.10, “MySQL Cluster Replication Conflict Resolution”,
for more information.
On MySQL replication slaves having multiple network interfaces,
it is now possible to set which interface to use for connecting
to the master. This can be done by using either the
mysqld startup option
--master-bind or the
MASTER_BIND='
clause in a interface'CHANGE MASTER statement.
(Bug#25939)
Additional checks were implemented to catch unsupported online
ALTER TABLE operations. Currently it is not
possible to reorder columns or to change the storage engine used
for a table via online ALTER.
Some redundant checks made during online creation of indexes were removed.
A --bind-address option has been added to a
number of MySQL client programs: mysql,
mysqldump, mysqladmin,
mysqlbinlog, mysqlcheck,
mysqlimport, and
mysqlshow. This is for use on a computer
having multiple network interfaces, and allows you to choose
which interface is used to connect to the MySQL server.
Bugs fixed:
MySQL Cluster: It was possible in some cases for a node group to be “lost” due to missed local checkpoints following a system restart. (Bug#31525)
MySQL Cluster:
NDB tables having names containing
non-alphanumeric characters (such as “
$ ”) were not discovered correctly.
(Bug#31470)
MySQL Cluster: A node failure during a local checkpoint could lead to a subsequent failure of the cluster during a system restart. (Bug#31257)
MySQL Cluster: Transaction timeouts were not handled well in some circumstances, leading to excessive number of transactions being aborted unnecessarily. (Bug#30379)
MySQL Cluster: In some cases, the cluster managment server logged entries multiple times following a restart of mgmd. (Bug#29565)
MySQL Cluster:
ndb_mgm --help did not
display any information about the -a option.
(Bug#29509)
MySQL Cluster: An interpreted program of sufficient size and complexity could cause all cluster data nodes to shut down due to buffer overruns. (Bug#29390)
MySQL Cluster: The cluster log was formatted inconsistently and contained extraneous newline characters. (Bug#25064)
A transaction was not aborted following the failure of statement. (Bug#31320)
Online ALTER operations involving a column
whose data type has an implicit default value left behind
temporary .FRM files, causing subsequent
DROP DATABASE statements to fail.
(Bug#31097)
Errors could sometimes occur during an online ADD
COLUMN under load.
(Bug#31082)
Transactions were committed prematurely when LOCK
TABLE and SET AUTOCOMMIT=OFF were
used together.
(Bug#30996)
A cluster restart could sometimes fail due to an issue with table IDs. (Bug#30975)
The mysqld_safe script contained a syntax error. (Bug#30624)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.19-ndb-6.3.0, MySQL 5.1.19-ndb-6.3.1, and MySQL 5.1.22-ndb-6.3.2, as well as all bugfixes and feature changes which were added in the mainline 5.1.21 and 5.1.22 releases; information about these can be found in Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)” and Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”.
Functionality added or changed:
MySQL Cluster:
Mapping of NDB error codes to MySQL storage
engine error codes has been improved.
(Bug#28423)
Cluster Replication:
A server status variable ndb_conflict_fn_max
now provides a count of the number of times that conflict
resolution for MySQL Cluster Replication has been applied.
See Section 15.10.10, “MySQL Cluster Replication Conflict Resolution”, for more information.
Bugs fixed:
Partitioning: MySQL Cluster:
EXPLAIN PARTITIONS reported partition usage
by queries on NDB tables according to the
standard MySQL hash function than the hash function used in the
NDB storage engine.
(Bug#29550)
MySQL Cluster: Attempting to restore a backup made on a cluster host using one endian to a machine using the other endian could cause the cluster to fail. (Bug#29674)
MySQL Cluster:
The description of the --print option provided
in the output from ndb_restore --help
was incorrect.
(Bug#27683)
MySQL Cluster:
Restoring a backup made on a cluster host using one endian to a
machine using the other endian failed for
BLOB and DATETIME columns.
(Bug#27543, Bug#30024)
Errors could sometimes occur during an online ADD
COLUMN under load.
(Bug#31082)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.19-ndb-6.3.0 and MySQL 5.1.19-ndb-6.3.1, as well as all bugfixes and feature changes which were added in the mainline 5.1.21 and 5.1.22 releases; information about these can be found in Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)” and Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”.
Functionality added or changed:
MySQL Cluster:
Mapping of NDB error codes to MySQL storage
engine error codes has been improved.
(Bug#28423)
Cluster Replication:
A server status variable ndb_conflict_fn_max
now provides a count of the number of times that conflict
resolution for MySQL Cluster Replication has been applied.
See Section 15.10.10, “MySQL Cluster Replication Conflict Resolution”, for more information.
Bugs fixed:
Partitioning: MySQL Cluster:
EXPLAIN PARTITIONS reported partition usage
by queries on NDB tables according to the
standard MySQL hash function than the hash function used in the
NDB storage engine.
(Bug#29550)
MySQL Cluster: Attempting to restore a backup made on a cluster host using one endian to a machine using the other endian could cause the cluster to fail. (Bug#29674)
MySQL Cluster:
The description of the --print option provided
in the output from ndb_restore --help
was incorrect.
(Bug#27683)
MySQL Cluster:
Restoring a backup made on a cluster host using one endian to a
machine using the other endian failed for
BLOB and DATETIME columns.
(Bug#27543, Bug#30024)
Errors could sometimes occur during an online ADD
COLUMN under load.
(Bug#31082)
This is a new Beta development release, fixing recently discovered bugs.
Obtaining MySQL Cluster 5.1 Carrier Grade Edition 5.1.22-ndb-6.2.9. MySQL Cluster 5.1 Carrier Grade Edition 5.1.22-ndb-6.2.9 — like all releases for MySQL Cluster 5.1 Carrier Grade Edition — is a source-only release which you must compile and install using the instructions found in Section 2.9, “MySQL Installation Using a Source Distribution”, and in Section 15.4.1, “Building MySQL Cluster from Source Code”. You can download source code archives for this release in two versions. The version that should use depends on whether you have a commercial MySQL Cluster 5.1 Carrier Grade Edition license or you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL.
Commercial users.
Download the commercial source archive from the MySQL
FTP site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The
file
mysql-5.1.22-ndb-6.2.9/mysqlcom-5.1.22-ndb-6.2.9-telco.tar.gz
in this directory contains the complete commercial
source archive.
The commercial MySQL Cluster 5.1 Carrier Grade Edition sources contain non-GPL libraries and header files. You must not use the commercial version without a commercial license from MySQL AB. See http://www.mysql.com/products/database/clustercge/ for information about licensing MySQL Cluster 5.1 Carrier Grade Edition for commerical use.
GPL users.
If you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL, you
can obtain the GPL source tarball from the MySQL FTP
site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The file
mysql-5.1.22-ndb-6.2.9/mysql-5.1.22-ndb-6.2.9-telco.tar.gz
in this directory contains the complete GPL source
archive.
You can also obtain the latest GPL MySQL Cluster 5.1 Carrier Grade Edition sources from http://mysql.bkbits.net/ using the free BitKeeper client. See Section 2.9.3, “Installing from the Development Source Tree”, for more information.
The GPL MySQL Cluster 5.1 Carrier Grade Edition sources contain GPL libraries and header files. You must not use the GPL version in applications that are not released under the GPL or a GPL-compatible license. See http://www.mysql.com/company/legal/licensing/foss-exception.html, for a list of GPL-compatible licenses.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes
made in MySQL 5.1.18-ndb-6.2.1, MySQL 5.1.18-ndb-6.2.2 (see
Section C.1.10, “Changes in MySQL 5.1.18 Carrier Grade Edition”), MySQL 5.1.19-ndb-6.2.3,
MySQL 5.1.19-ndb-6.2.4, MySQL 5.1.22-ndb-6.2.5, MySQL
5.1.22-ndb-6.2.6, MySQL 5.1.22-ndb-6.2.7, and MySQL
5.1.22-ndb-6.2.8, as well as all bugfixes and feature changes
which were added in the mainline 5.1.20, 5.1.21 and 5.1.22
releases; information about these can be found in
Section C.1.6, “Changes in MySQL 5.1.20 (25 June 2007)”, Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)”,
and Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”. Also included are most (but
not all) bugfixes made in the MCCGE
6.1.x series through MySQL
5.1.15-ndb-6.1.16.
Functionality added or changed:
MySQL Cluster:
Added the ndb_mgm client command
DUMP 8011, which dumps all subscribers to the
cluster log. See
DUMP 8011, for more
information.
Bugs fixed:
MySQL Cluster: A local checkpoint could sometimes be started before the previous LCP was restorable from a global checkpoint. (Bug#32519)
MySQL Cluster: High numbers of API nodes on a slow or congested network could cause connection negotiation to time out prematurely, leading to the following issues:
Excessive retries
Excessive CPU usage
Partially connected API nodes
MySQL Cluster: The failure of a master node could lead to subsequent failures in local checkpointing. (Bug#32160)
MySQL Cluster:
Adding a new TINYTEXT column to an
NDB table which used COLUMN_FORMAT =
DYNAMIC, and when binary logging was enabled, caused
all cluster mysqld processes to crash.
(Bug#30213)
MySQL Cluster:
After adding a new column of one of the TEXT
or BLOB types to an NDB
table which used COLUMN_FORMAT = DYNAMIC, it
was no longer possible to access or drop the table using SQL.
(Bug#30205)
MySQL Cluster: A restart of the cluster failed when more than 1 REDO phase was in use. (Bug#22696)
Cluster Replication: Under certain conditions, the slave stopped processing relay logs. This resulted in the logs never being cleared and the slave eventually running out of disk space. (Bug#31958)
Cluster Replication:
Where a table being replicated had a TEXT or
BLOB column, an UPDATE on
the master that did not refer explicitly to this column in the
WHERE clause stopped the SQL thread on the
slave with Error in Write_rows event: row application
failed. Got error 4288 'Blob handle for column not available'
from NDBCLUSTER.
(Bug#30674)
This is a new Beta development release, fixing recently discovered bugs.
Obtaining MySQL Cluster 5.1 Carrier Grade Edition 5.1.22-ndb-6.2.8. MySQL Cluster 5.1 Carrier Grade Edition 5.1.22-ndb-6.2.8 — like all releases for MySQL Cluster 5.1 Carrier Grade Edition — is a source-only release which you must compile and install using the instructions found in Section 2.9, “MySQL Installation Using a Source Distribution”, and in Section 15.4.1, “Building MySQL Cluster from Source Code”. You can download source code archives for this release in two versions. The version that should use depends on whether you have a commercial MySQL Cluster 5.1 Carrier Grade Edition license or you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL.
Commercial users.
Download the commercial source archive from the MySQL
FTP site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The
file
mysql-5.1.22-ndb-6.2.8/mysqlcom-5.1.22-ndb-6.2.8-telco.tar.gz
in this directory contains the complete commercial
source archive.
The commercial MySQL Cluster 5.1 Carrier Grade Edition sources contain non-GPL libraries and header files. You must not use the commercial version without a commercial license from MySQL AB. See http://www.mysql.com/products/database/clustercge/ for information about licensing MySQL Cluster 5.1 Carrier Grade Edition for commerical use.
GPL users.
If you wish to use MySQL Cluster 5.1 Carrier Grade Edition under the GPL, you
can obtain the GPL source tarball from the MySQL FTP
site at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/. The file
mysql-5.1.22-ndb-6.2.8/mysql-5.1.22-ndb-6.2.8-telco.tar.gz
in this directory contains the complete GPL source
archive.
You can also obtain the latest GPL MySQL Cluster 5.1 Carrier Grade Edition sources from http://mysql.bkbits.net/ using the free BitKeeper client. See Section 2.9.3, “Installing from the Development Source Tree”, for more information.
The GPL MySQL Cluster 5.1 Carrier Grade Edition sources contain GPL libraries and header files. You must not use the GPL version in applications that are not released under the GPL or a GPL-compatible license. See http://www.mysql.com/company/legal/licensing/foss-exception.html, for a list of GPL-compatible licenses.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes
made in MySQL 5.1.18-ndb-6.2.1, MySQL 5.1.18-ndb-6.2.2 (see
Section C.1.10, “Changes in MySQL 5.1.18 Carrier Grade Edition”), MySQL 5.1.19-ndb-6.2.3,
MySQL 5.1.19-ndb-6.2.4, MySQL 5.1.22-ndb-6.2.5, MySQL
5.1.22-ndb-6.2.6, and MySQL 5.1.22-ndb-6.2.7, as well as all
bugfixes and feature changes which were added in the mainline
5.1.20, 5.1.21 and 5.1.22 releases; information about these can
be found in Section C.1.6, “Changes in MySQL 5.1.20 (25 June 2007)”,
Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)”, and
Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”. Also included are most (but not
all) bugfixes made in the MCCGE 6.1.x
series through MySQL 5.1.15-ndb-6.1.16.
Functionality added or changed:
Important Note:
MySQL Cluster 5.1 Carrier Grade Edition 6.2.x and
6.3.x source archives are now
available in separate commercial and GPL versions. Due to
licensing concerns, previous MySQL Cluster 5.1 Carrier Grade Edition source archives were
removed from the FTP site.
Bugs fixed:
MySQL Cluster: In a cluster running in diskless mode and with arbitration disabled, the failure of a data node during an insert operation caused other data node to fail. (Bug#31980)
MySQL Cluster:
An insert or update with combined range and equality constraints
failed when run against an NDB table with the
error Got unknown error from NDB. An
example of such a statement would be UPDATE t1 SET b =
5 WHERE a IN (7,8) OR a >= 10;.
(Bug#31874)
MySQL Cluster:
An error with an if statement in
sql/ha_ndbcluster.cc could potentially lead
to an infinite loop in case of failure when working with
AUTO_INCREMENT columns in
NDB tables.
(Bug#31810)
MySQL Cluster:
The NDB storage engine code was not safe for
strict-alias optimization in gcc 4.2.1.
(Bug#31761)
MySQL Cluster: Following an upgrade, ndb_mgmd would fail with an ArbitrationError. (Bug#31690)
MySQL Cluster:
The NDB management client command
provided no output when
node_id REPORT
MEMORYnode_id was the node ID of a
management or API node. Now, when this occurs, the management
client responds with Node
.
(Bug#29485)node_id: is not a data
node
MySQL Cluster:
Performing DELETE operations after a data
node had been shut down could lead to inconsistent data
following a restart of the node.
(Bug#26450)
MySQL Cluster:
UPDATE IGNORE could sometimes fail on
NDB tables due to the use of unitialized data
when checking for duplicate keys to be ignored.
(Bug#25817)
Cluster Replication: A node failure during replication could lead to buckets out of order; now active subscribers are checked for, rather than empty buckets. (Bug#31701)
Cluster Replication:
When the master mysqld crashed or was
restarted, no LOST_EVENTS entry was made in
the binlog.
(Bug#31484)
See also Bug#21494
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes
made in MySQL 5.1.18-ndb-6.2.1, MySQL 5.1.18-ndb-6.2.2 (see
Section C.1.10, “Changes in MySQL 5.1.18 Carrier Grade Edition”), MySQL 5.1.19-ndb-6.2.3,
MySQL 5.1.19-ndb-6.2.4, MySQL 5.1.22-ndb-6.2.5, and MySQL
5.1.22-ndb-6.2.6, as well as all bugfixes and feature changes
which were added in the mainline 5.1.20, 5.1.21 and 5.1.22
releases; information about these can be found in
Section C.1.6, “Changes in MySQL 5.1.20 (25 June 2007)”, Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)”,
and Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”. Also included are most (but
not all) bugfixes made in the MCCGE
6.1.x series through MySQL
5.1.15-ndb-6.1.16.
Functionality added or changed:
Cluster Replication:
A new configuration parameter
TimeBetweenEpochsTimeout allows a timeout to
be set for time between epochs. For more information, see
Section 15.4.4.5, “Defining Data Nodes”.
(Bug#31276)
Additional checks were implemented to catch unsupported online
ALTER TABLE operations. Currently it is not
possible to reorder columns or to change the storage engine used
for a table via online ALTER.
Some redundant checks made during online creation of indexes were removed.
Bugs fixed:
MySQL Cluster: It was possible in some cases for a node group to be “lost” due to missed local checkpoints following a system restart. (Bug#31525)
MySQL Cluster:
NDB tables having names containing
non-alphanumeric characters (such as “
$ ”) were not discovered correctly.
(Bug#31470)
MySQL Cluster: A node failure during a local checkpoint could lead to a subsequent failure of the cluster during a system restart. (Bug#31257)
MySQL Cluster: Transaction timeouts were not handled well in some circumstances, leading to excessive number of transactions being aborted unnecessarily. (Bug#30379)
MySQL Cluster: In some cases, the cluster managment server logged entries multiple times following a restart of mgmd. (Bug#29565)
MySQL Cluster:
ndb_mgm --help did not
display any information about the -a option.
(Bug#29509)
MySQL Cluster: The cluster log was formatted inconsistently and contained extraneous newline characters. (Bug#25064)
Online ALTER operations involving a column
whose data type has an implicit default value left behind
temporary .FRM files, causing subsequent
DROP DATABASE statements to fail.
(Bug#31097)
Transactions were committed prematurely when LOCK
TABLE and SET AUTOCOMMIT=OFF were
used together.
(Bug#30996)
A cluster restart could sometimes fail due to an issue with table IDs. (Bug#30975)
The mysqld_safe script contained a syntax error. (Bug#30624)
This is a new Beta development release, fixing recently discovered bugs.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes
made in MySQL 5.1.18-ndb-6.2.1, MySQL 5.1.18-ndb-6.2.2 (see
Section C.1.10, “Changes in MySQL 5.1.18 Carrier Grade Edition”), MySQL 5.1.19-ndb-6.2.3,
MySQL 5.1.19-ndb-6.2.4, and MySQL 5.1.22-ndb-6.2.5, as well as
all bugfixes and feature changes which were added in the
mainline 5.1.20, 5.1.21 and 5.1.22 releases; information about
these can be found in Section C.1.6, “Changes in MySQL 5.1.20 (25 June 2007)”,
Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)”, and
Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”. Also included are most (but not
all) bugfixes made in the MCCGE 6.1.x
series through MySQL 5.1.15-ndb-6.1.16.
Functionality added or changed:
MySQL Cluster:
Mapping of NDB error codes to MySQL storage
engine error codes has been improved.
(Bug#28423)
Bugs fixed:
Partitioning: MySQL Cluster:
EXPLAIN PARTITIONS reported partition usage
by queries on NDB tables according to the
standard MySQL hash function than the hash function used in the
NDB storage engine.
(Bug#29550)
MySQL Cluster: Attempting to restore a backup made on a cluster host using one endian to a machine using the other endian could cause the cluster to fail. (Bug#29674)
MySQL Cluster:
The description of the --print option provided
in the output from ndb_restore --help
was incorrect.
(Bug#27683)
MySQL Cluster:
Restoring a backup made on a cluster host using one endian to a
machine using the other endian failed for
BLOB and DATETIME columns.
(Bug#27543, Bug#30024)
MySQL Cluster: An insufficiently descriptive and potentially misleading Error 4006 (Connect failure - out of connection objects...) was produced when either of the following two conditions occurred:
There were no more transaction records in the transaction coordinator
an Ndb object in the NDB API was
initialized with insufficient parallellism
Separate error messages are now generated for each of these two cases. (Bug#11313)
Cluster API:
An Ndb object in the NDB API was initialized
with insufficient parallellism.
For micro-GCPs, fixed the assignment of “fake” CGI events so that they do not cause buckets to be sent out of order. Now, when assigning a GCI to a non-GCI event (that is, creating a pseudo-GCI or “fake” CGI), the GCI that is to arrive is always initiated, even if no known GCI exists, which could occur in the event of a node failure. (Bug#30884)
When an NDB event was left behind but the
corresponding table was later recreated and received a new table
ID, the event could not be dropped.
(Bug#30877)
There were no more transaction records in the transaction coordinator
This is a new Beta development release, fixing recently discovered bugs.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes
made in MySQL 5.1.18-ndb-6.2.1, MySQL 5.1.18-ndb-6.2.2 (see
Section C.1.10, “Changes in MySQL 5.1.18 Carrier Grade Edition”), MySQL 5.1.19-ndb-6.2.3, and
MySQL 5.1.19-ndb-6.2.4, as well as all bugfixes and feature
changes which were added in the mainline 5.1.20, 5.1.21 and
5.1.22 releases; information about these can be found in
Section C.1.6, “Changes in MySQL 5.1.20 (25 June 2007)”, Section C.1.5, “Changes in MySQL 5.1.21 (16 August 2007)”,
and Section C.1.3, “Changes in MySQL 5.1.22 (24 September 2007: Release Candidate)”. Also included are most (but
not all) bugfixes made in the MCCGE
6.1.x series through MySQL
5.1.15-ndb-6.1.16.
Functionality added or changed:
MySQL Cluster: The following improvements have been made in the ndb_size.pl utility:
The script can now be used with multiple databases; lists of databases and tables can also be excluded from analysis.
Schema name information has been added to index table calculations.
The database name is now an optional parameter, the exclusion of which causes all databases to be examined.
If selecting from INFORMATION_SCHEMA
fails, the script now attempts to fall back to
SHOW TABLES.
A --real_table_name option has been
added; this designates a table to handle unique index size
calculations.
The report title has been amended to cover cases where more than one database is being analyzed.
Support for a --socket option was also added.
For more information, see Section 15.9.15, “ndb_size.pl — NDBCluster Size Requirement Estimator”. (Bug#28683, Bug#28253)
MySQL Cluster:
ADD COLUMN, ADD INDEX, and
DROP INDEX operations can now be performed
online for NDB and MyISAM
tables — that is, without re-creation of indexes —
using ALTER ONLINE TABLE.
Indexes can also be created and dropped online using
CREATE INDEX and DROP
INDEX, respectively, using the
ONLINE keyword.
You can force operations that would otherwise be performed
online to be done offline using the OFFLINE
keyword.
See Section 11.1.4, “ALTER TABLE Syntax”,
Section 11.1.7, “CREATE INDEX Syntax”, and
Section 11.1.13, “DROP INDEX Syntax”, for more information.
MySQL Cluster:
It is now possible to control whether fixed-width or
variable-width storage is used for a given column of an
NDB table by means of the
COLUMN_FORMAT specifier as part of the
column's definition in a CREATE TABLE or
ALTER TABLE statement.
It is also possible to control whether a given column of an
NDB table is stored in memory or on disk,
using the STORAGE specifier as part of the
column's definition in a CREATE TABLE or
ALTER TABLE statement.
For permitted values and other information about
COLUMN_FORMAT and STORAGE,
see Section 11.1.10, “CREATE TABLE Syntax”.
MySQL Cluster:
A new cluster management server startup option
--bind-address makes it possible to restrict
management client connections to ndb_mgmd to
a single host and port. For more information, see
Section 15.6.5.3, “Command Options for ndb_mgmd”.
Cluster Replication: Replication:
The protocol for handling global checkpoints has been changed.
It is now possible to control how often the GCI number is
updated, and how often global checkpoints are written to disk,
using the TimeBetweenEpochs configuration
parameter. This improves the reliability and performance of
MySQL Cluster Replication.
GCPs handled using the new protocol are sometimes referred to as “micro-GCPs”.
For more information, see
TimeBetweenEpochs
.
The report title has been amended to cover cases where more than one database is being analyzed.
A --real_table_name option has been added; this
designates a table to handle unique index size calculations.
The script is now able to be used with multiple databases; lists of databases and tables can be excluded from analysis.
If selecting from INFORMATION_SCHEMA fails,
the script now attempts to fall back to SHOW
TABLES.
The database name is now an optional parameter, the exclusion of which causes all databases to be examined.
Schema name information has been added to index table calculations.
Bugs fixed:
MySQL Cluster:
When handling BLOB columns, the addition of
read locks to the lock queue was not handled correctly.
(Bug#30764)
MySQL Cluster:
Discovery of NDB tables did not work
correctly with INFORMATION_SCHEMA.
(Bug#30667)
MySQL Cluster: A filesystem close operation could fail during a node or system restart. (Bug#30646)
MySQL Cluster:
Using the --ndb-cluster-connection-pool option
for mysqld caused DDL statements to be
executed twice.
(Bug#30598)
MySQL Cluster:
ndb_size.pl failed on tables with
FLOAT columns whose definitions included
commas (for example, FLOAT(6,2)).
(Bug#29228)
MySQL Cluster:
Reads on BLOB columns were not locked when
they needed to be to guarantee consistency.
(Bug#29102)
See also Bug#31482
MySQL Cluster:
A query using joins between several large tables and requiring
unique index lookups failed to complete, eventually returning
Uknown Error after a very long period of
time. This occurred due to inadequate handling of instances
where the Transaction Coordinator ran out of
TransactionBufferMemory, when the cluster
should have returned NDB error code 4012 (Request
ndbd time-out).
(Bug#28804)
MySQL Cluster:
An attempt to perform a SELECT ... FROM
INFORMATION_SCHEMA.TABLES whose result included
information about NDB tables for which the
user had no privileges crashed the MySQL Server on which the
query was performed.
(Bug#26793)
Cluster Replication:
Cluster replication did not handle large
VARCHAR columns correctly.
(Bug#29904)
Cluster Replication:
An issue with the mysql.ndb_apply_status
table could cause NDB schema autodiscovery to
fail in certain rare circumstances.
(Bug#20872)
Cluster API:
A call to CHECK_TIMEDOUT_RET() in
mgmapi.cpp should have been a call to
DBUG_CHECK_TIMEDOUT_RET().
(Bug#30681)
This is a new Beta development release, fixing recently discovered bugs.
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 has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
Subsequent to release, it was discovered that on some platforms, mysql_install_db could fail to find its message file, resulting in error messages of the following form:
shell> mysql_install_db
Installing MySQL system tables...
070830 9:33:24 [ERROR] Can't find messagefile 'path/share/english/errmsg.sys'
070830 9:33:24 [ERROR] Aborting
To deal with this problem, specify a --language
option to specify the proper pathname to the language file
directory. For example:
shell> mysql_install_db --language=/path/to/share/english/
This problem is corrected in MySQL 5.1.22.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change:
In MySQL 5.1.6, when log tables were implemented, the default
log destination for the general query and slow query log was
TABLE. This default has been changed to
FILE, which is compatible with MySQL 5.0, but
incompatible with earlier releases of MySQL 5.1 from 5.1.6 to
5.1.20. If you are upgrading from MySQL 5.0 to this release, no
logging option changes should be necessary. However, if you are
upgrading from 5.1.6 through 5.1.20 to this release and were
using TABLE logging, use the
--log-output=TABLE option explicitly to
preserve your server's table-logging behavior.
In MySQL 5.1.x, this bug was addressed twice because it turned out that the default was set in two places, only one of which was fixed the first time. (Bug#29993)
Incompatible Change: On Windows only, the mysqld-nt has been removed from this release and all future releases. The mysqld server now includes named-pipe support as standard, and you do not have to use the mysqld-nt version to enable named-pipe support.
Several programs now accept --debug-check and
--debug-info options: mysql,
mysqladmin, mysqlbinlog,
mysqlcheck, mysqldump,
mysqlimport, mysqlshow,
mysqlslap, mysqltest,
mysql_upgrade. (Note:
mysql and mysqltest
already accepted --debug-info.)
--debug-check prints debugging information at
program exit. --debug-info is similar but also
prints memory and CPU usage statistics. This patch also corrects
a problem for mysql that
--debug-info did not display statistics at exit
time.
(Bug#30127)
The --syslog option that was introduced in
5.1.20 for mysqld_safe (to send error output
to syslog) did not work correctly: Error
output was buffered and not logged immediately. This has been
corrected. In addition, some feature changes were made:
The default mysqld_safe logging
behavior now is --skip-syslog rather than
--syslog, which is compatible with the
default behavior of writing an error log file for releases
prior to 5.1.20.
A new option,
--syslog-tag=, modifies the default tags written by
mysqld_safe and mysqld
to syslog to be
tag
mysqld_safe- and
tag
mysqld-
rather than the default tags of
tag mysqld_safe and
mysqld.
Transaction support in the FEDERATED storage
engine has been disabled due to issues with multiple active
transactions and sessions on the same
FEDERATED table.
(Bug#29875)
Previously, prepared statements processed using
PREPARE and EXECUTE were
not subject to caching in the query cache if they contained any
? parameter markers. This limitation has been
lifted.
(Bug#29318)
It is now possible to set long_query_time in
microseconds or to 0. Setting this value to 0 causes all queries
to be recorded in the slow query log.
Currently, fractional values can be used only when logging to files. We plan to provide this functionality for logging to tables when time-related data types are enhanced to support microsecond resolution. (Bug#25412)
The SQL thread on a slave now is always allowed to enter
InnoDB even if this would exceed the limit
imposed by the innodb_thread_concurrency
system variable. In cases of high load on the slave server (when
innodb_thread_concurrency is reached), this
change helps the slave stay more up to date with the master; in
the previous behavior, the SQL thread was competing for
resources with all client threads active on the slave server.
(Bug#25078)
INFORMATION_SCHEMA implementation changes
were made that optimize certain types of queries for
INFORMATION_SCHEMA tables so that they
execute more quickly.
Section 6.2.17, “INFORMATION_SCHEMA Optimization”, provides
guidelines on how to take advantage of these optimizations by
writing queries that minimize the need for the server to access
the filesystem to obtain the information contained in
INFORMATION_SCHEMA tables. By writing queries
that enable the server to avoid directory scans or opening table
files, you will obtain better performance.
(Bug#19588)
Log table locking was redesigned, eliminating several lock-related problems:
Truncating mysql.slow_log in a stored
procedure after use of a cursor caused the thread to lock.
Flushing a log table resulted in unnecessary warnings.
The server would hang when performing concurrent
ALTER TABLE or TRUNCATE
TABLE statements against the log tables.
Changing the value of the general_log
system variable while a global read lock was in place
resulted in deadlock.
The changes provide better-defined interface characteristics. See Section 5.2.1, “Selecting General Query and Slow Query Log Output Destinations”. (Bug#17876, Bug#23044, Bug#25422, Bug#29129)
Added the --commit, --detach,
--post-system, and
--pre-system options for
mysqlslap.
Replication between master and slaves now supports different column numbers within a table on both master and slave. The rules for replication where the table definitions are different has also changed. This supercedes the functionality for replication from the master table to a slave table with more columns that was added in MySQL 5.1.12. For more information, see Section 14.3.1.20, “Replication with Differing Tables on Master and Slave”.
A new option,
--syslog-tag=,
modifies the default tags written by
mysqld_safe and mysqld to
syslog to be tag mysqld_safe- and tag
mysqld- rather than the default tags of
tag
mysqld_safe and mysqld.
The default mysqld_safe logging behavior
now is --skip-syslog rather than
--syslog, which is compatible with the
default behavior of writing an error log file for releases
prior to 5.1.20.
Two options relating to slow query logging have been added for
mysqld.
--log-slow-slave-statements causes slow
statements executed by a replication slave to be written to the
slow query log; min_examined_row_limit can be
used to cause queries which examine fewer than the stated number
of rows not to be logged.
Bugs fixed:
Incompatible Change: Several issues were identified for stored programs (stored functions and procedures, triggers, and events) and views containing non-ASCII symbols. These issues involved conversion errors due to incomplete character set information when translating these objects to and from stored format, such as:
Parsing the original object definition so that it can be stored.
Compiling the stored definition into executable form when the object is invoked.
Retrieval of object definitions from
INFORMATION_SCHEMA tables.
Displaying the object definition in SHOW
statements. This issue also affected
mysqldump, which uses
SHOW.
The fix for the problems is to store character set information from the object creation context so that this information is available when the object needs to be used later. The context includes the client character set, the connection character set and collation, and the collation of the database with which the object is associated.
As a result of the patch, several tables have new columns:
In the mysql database, the
proc and event tables
now have these columns:
character_set_client,
collation_connection,
db_collation,
body_utf8.
In INFORMATION_SCHEMA, the
VIEWS table now has these columns:
CHARACTER_SET_CLIENT,
COLLATION_CONNECTION. The
ROUTINES, TRIGGERS,
and EVENT tables now have these columns:
CHARACTER_SET_CLIENT,
COLLATION_CONNECTION,
DATABASE_COLLATION.
These columns store the session values of the
character_set_client and
collation_connection system variables, and
the collation of the database with which the object is
associated. The values are those in effect at object creation
time. (The saved database collation is not the value of the
collation_database system variable, which
applies to the default database; the database that contains the
object is not necessarily the default database.)
Several SHOW statements now display
additional columns corresponding to the new table columns. These
statements are: SHOW CREATE EVENT,
SHOW CREATE FUNCTION, SHOW CREATE
PROCEDURE, SHOW CREATE VIEW,
SHOW EVENTS, SHOW FUNCTION
STATUS, SHOW PROCEDURE STATUS,
SHOW TRIGGERS.
A new statement, SHOW CREATE TRIGGER is
introduced and is used by mysqldump for
producing CREATE TRIGGER statements.
Subsequent to the patch just described, it was discovered that the patch broke mysql_upgrade; this has been corrected.
The fixes for the problems just describe affect
all existing stored programs and views.
(For example, you will see warnings about “no creation
context.”) To avoid warnings from the server about the
use of old definitions from any release prior to 5.1.21, you
should dump stored programs and views with
mysqldump after upgrading to 5.1.21, and
then reload them to recreate them with new definitions. Invoke
mysqldump with a
--default-character-set option that names the
non-ASCII character set that was used for the definitions when
the objects were originally defined.
(Bug#25221, Bug#21249, Bug#30027, Bug#16291, Bug#11986, Bug#25212, Bug#19443, Bug#30029)
MySQL Cluster:
DELETE FROM , where the
table WHERE
primary_key IN
(value_list)value_list contained more than one
value, called from an AFTER DELETE trigger on
an NDB table, caused
mysqld to crash.
(Bug#30337)
MySQL Cluster: When restarting a data node, queries could hang during that node's start phase 5, and continue only after the node had entered phase 6. (Bug#29364)
MySQL Cluster: Replica redo logs were inconsistently handled during a system restart. (Bug#29354)
MySQL Cluster:
When a node failed to respond to a COPY_GCI
signal as part of a global checkpoint, the master node was
killed instead of the node that actually failed.
(Bug#29331)
MySQL Cluster:
An invalid comparison made during REDO
validation that could lead to an Error while reading
REDO log condition.
(Bug#29118)
MySQL Cluster: The wrong data pages were sometimes invalidated following a global checkpoint. (Bug#29067)
MySQL Cluster:
If at least 2 files were involved in REDO
invalidation, then file 0 of page 0 was not updated and so
pointed to an invalid part of the redo log.
(Bug#29057)
MySQL Cluster: If a storage engine has its own logging capability, then any statement using both this engine and some other engine not having its own logging could not be correctly logged, due to the fact that entries from one engine could be logged before entries from the other engine were. This did not generate any error messages when it occurred.
Now, if multiple storage engines are used in a statement and at least one of them has its own logging capability, then an error message is generated and the statement is not executed.
Currently, the only storage engine to have its own logging
capability is NDBCLUSTER.
MySQL Cluster:
Warnings and errors generated by ndb_config
--config-file=
were sent to filestdout, rather than to
stderr.
(Bug#25941)
MySQL Cluster: (Replication): Inconsistencies could occur between the master and the slave when replicating Disk Data tables. (Bug#19259, Bug#19227)
MySQL Cluster: Large file support did not work in AIX server binaries. (Bug#10776)
Disk Data: Performing Disk Data schema operations during a node restart could cause forced shutdowns of other data nodes. (Bug#29501)
Disk Data: When dropping a page, the stack's bottom entry could sometime be left “cold” rather than “hot”, violating the rules for stack pruning. (Bug#29176)
Disk Data: Disk data meta-information that existed in ndbd might not be visible to mysqld. (Bug#28720)
Disk Data: The number of free extents was incorrectly reported for some tablespaces. (Bug#28642)
Cluster Replication:
When executing a statement where
binlog_format=statement, the result of the
statement was logged both as a statement and as rows.
(Bug#29222)
Cluster Replication:
mysqld would segfault on startup when the
NDB storage engine was enabled and the
default character set was a strictly multi-byte character set
such as UCS2.
This issue does not apply to character sets that can contain single-byte characters in addition to multi-byte characters such as UTF-8.
Additional issues remain with regard to the use of multi-byte character sets in MySQL Cluster Replication; see Section 15.10.3, “Known Issues in MySQL Cluster Replication”, for more information. (Bug#27404)
Prepared statements containing
CONNECTION_ID() could be written
improperly to the binary log.
(Bug#30200)
Use of local variables with non-ASCII names in stored procedures crashed the server. (Bug#30120)
On Windows, client libraries lacked symbols required for linking. (Bug#30118)
--myisam-recover='' (empty option value) did
not disable MyISAM recovery.
(Bug#30088)
For the SHOW TABLE TYPES statement, the
server sent incorrect output to clients, possibly causing them
to crash.
(Bug#30036)
The IS_UPDATABLE column in the
INFORMATION_SCHEMA.VIEWS table was not always
set correctly.
(Bug#30020)
SHOW statements were being written to the
slow query log that should not have been.
(Bug#30000)
REPAIR TABLE ... USE_FRM could corrupt
tables.
(Bug#29980)
For MyISAM tables on Windows,
INSERT, DELETE, or
UPDATE followed by ALTER
TABLE within LOCK TABLES could
cause table corruption.
(Bug#29957)
LOCK TABLES did not pre-lock tables used in triggers of the
locked tables. Unexpected locking behavior and statement
failures similar to failed: 1100: Table
'xx' was not locked with LOCK
TABLES could result.
(Bug#29929)
INSERT ... VALUES(CONNECTION_ID(), ...)
statements were written to the binary log in such a way that
they could not be properly restored.
(Bug#29928)
Adding DISTINCT could cause incorrect rows to
appear in a query result.
(Bug#29911)
On Windows, the CMake build process did not produce the embedded server library or related binaries. (Bug#29903)
Using the DATE() function in a
WHERE clause did not return any records after
encountering NULL. However, using
TRIM or CAST produced the
correct results.
(Bug#29898)
SESSION_USER() returned garbage
data (rather than the correct value of the empty string) when
executed by a slave SQL thread.
(Bug#29878)
Very long prepared statements in stored procedures could cause a server crash. (Bug#29856)
If query execution involved a temporary table,
GROUP_CONCAT() could return a
result with an incorrect character set.
(Bug#29850)
If one thread was performing concurrent inserts, other threads reading from the same table using equality key searches could see the index values for new rows before the data values had been written, leading to reports of table corruption. (Bug#29838)
Repeatedly accessing a view in a stored procedure (for example, in a loop) caused a small amount of memory to be allocated per access. Although this memory is deallocated on disconnect, it could be a problem for a long running stored procedures that make repeated access of views. (Bug#29834)
mysqldump produced output that incorrectly
discarded the NO_AUTO_VALUE_ON_ZERO value of
the SQL_MODE variable after dumping triggers.
(Bug#29788)
An assertion failure occurred within yaSSL for very long keys. (Bug#29784)
For MEMORY tables, the
index_merge union access method could return
incorrect results.
(Bug#29740)
Comparison of TIME values using the
BETWEEN operator led to string
comparison, producing incorrect results in some cases. Now the
values are compared as integers.
(Bug#29739)
The thread ID was not reset properly after execution of
mysql_change_user(), which
could cause replication failure when replicating temporary
tables.
(Bug#29734)
For a table with a DATE column
date_col such that selecting rows
with WHERE yielded
a non-empty result, adding date_col =
'date_val 00:00:00'GROUP BY
caused the result
to be empty.
(Bug#29729)date_col
In some cases, INSERT INTO ... SELECT ... GROUP
BY could insert rows even if the
SELECT by itself produced an empty result.
(Bug#29717)
Single-row inserts could report a row count greater than one. (Bug#29692)
For the embedded server, the
mysql_stmt_store_result() C API
function caused a memory leak for empty result sets.
(Bug#29687)
EXPLAIN produced Impossible
where for statements of the form SELECT ...
FROM t WHERE c=0, where c was an
ENUM column defined as a primary key.
(Bug#29661)
On Windows, ALTER TABLE hung if records were
locked in share mode by a long-running transaction.
(Bug#29644)
mysqld_safe produced error messages and did not create the error log file under some circumstances. (Bug#29634)
On 64-bit platforms, the filesort code (for queries with
GROUP BY or ORDER BY)
could crash due to an incorrect pointer size.
(Bug#29610)
A left join between two views could produce incorrect results. (Bug#29604)
Certain statements with unions, subqueries, and joins could result in huge memory consumption. (Bug#29582)
Clients using SSL could hang the server. (Bug#29579)
A slave running with --log-slave-updates would
fail to write INSERT DELAY IGNORE statements
to its binary log, resulting in different binary log contents on
the master and slave.
(Bug#29571)
Storage engine error conditions in row-based replication were not correctly reported to the user. (Bug#29570)
An incorrect result was returned when comparing string values
that were converted to TIME values with
CAST().
(Bug#29555)
gcov coverage-testing information was not written if the server crashed. (Bug#29543)
Conversion of ASCII DEL (0x7F) to Unicode
incorrectly resulted in QUESTION MARK (0x3F)
rather than DEL.
(Bug#29499)
A field packet with NULL fields caused a
libmysqlclient crash.
(Bug#29494)
On Windows, the mysql client died if the user entered a statement and Return after entering Control-C. (Bug#29469)
The full-text parser could enter an infinite loop if it encountered an illegal multi-byte sequence or a sequence that has no mapping to Unicode. (Bug#29464)
Failure to consider collation when comparing space characters could lead to incorrect index entry order, making it impossible to find some index values. (Bug#29461)
Searching a FULLTEXT index for a word with
the boolean mode truncation operator could cause an infinite
loop.
(Bug#29445)
Corrupt data resulted from use of SELECT ... INTO
OUTFILE ', where
file_name' FIELDS ENCLOSED
BY 'c'c is a digit or minus sign, followed
by LOAD DATA INFILE
'.
(Bug#29442)file_name' FIELDS ENCLOSED BY
'c'
Killing an INSERT DELAYED thread caused a
server crash.
(Bug#29431)
Use of SHOW BINLOG EVENTS for a non-existent
log file followed by PURGE MASTER LOGS caused
a server crash.
(Bug#29420)
Assertion failure could occur for grouping queries that employed
DECIMAL user variables with assignments to
them.
(Bug#29417)
For CAST(,
the limits of 65 and 30 on the precision
(expr AS
DECIMAL(M,D))M) and scale
(D) were not enforced.
(Bug#29415)
Deleting from a CSV table could corrupt it.
(Bug#29411)
Results for a select query that aliases the column names against
a view could duplicate one column while omitting another. This
bug could occur for a query over a multiple-table view that
includes an ORDER BY clause in its
definition.
(Bug#29392)
mysqldump created a stray file when a given a too-long filename argument. (Bug#29361)
The special “zero” ENUM value
was coerced to the normal empty string ENUM
value during a column-to-column copy. This affected
CREATE ... SELECT statements and
SELECT statements with aggregate functions on
ENUM columns in the GROUP
BY clause.
(Bug#29360)
Inserting a negative number into a CSV table
could corrupt it.
(Bug#29353)
Optimization of queries with DETERMINISTIC
stored functions in the WHERE clause was
ineffective: A sequential scan was always used.
(Bug#29338)
MyISAM corruption could occur with the
cp932_japanese_ci collation for the
cp932 character set due to incorrect
comparison for trailing space.
(Bug#29333)
For updates to InnoDB tables, a
TIMESTAMP column with the ON UPDATE
CURRENT_TIMESTAMP attribute could be updated even when
no values actually changed.
(Bug#29310)
FULLTEXT indexes could be corrupted by
certain gbk characters.
(Bug#29299)
SELECT ... INTO OUTFILE followed by
LOAD DATA could result in garbled characters
when the FIELDS ENCLOSED BY clause named a
delimiter of '0', 'b',
'n', 'r',
't', 'N', or
'Z' due to an interaction of character
encoding and doubling for data values containing the enclosed-by
character.
(Bug#29294)
Sort order of the collation wasn't used when comparing trailing
spaces. This could lead to incorrect comparison results,
incorrectly created indexes, or incorrect result set order for
queries that include an ORDER BY clause.
(Bug#29261)
CHECK TABLE could erroneously report table
corruption for a CSV table if multiple
threads were modifying the table at the same time.
(Bug#29253)
Many threads accessing a CSV table
simultaneously could cause an assertion failure.
(Bug#29252)
If an ENUM column contained
'' as one of its members (represented with
numeric value greater than 0), and the column contained error
values (represented as 0 and displayed as
''), using ALTER TABLE to
modify the column definition caused the 0 values to be given the
numeric value of the non-zero '' member.
(Bug#29251)
Calling mysql_options() after
mysql_real_connect() could
cause clients to crash.
(Bug#29247)
CHECK TABLE for ARCHIVE
tables could falsely report table corruption or cause a server
crash.
(Bug#29207)
Mixing binary and utf8 columns in a union
caused field lengths to be calculated incorrectly, resulting in
truncation.
(Bug#29205)
AsText() could fail with a buffer overrun.
(Bug#29166)
Under some circumstances, a SELECT ... FROM
mysql.event could cause the server to crash.
(Bug#29156)
InnoDB refused to start on some versions of
FreeBSD with LinuxThreads. This is fixed by enabling file
locking on FreeBSD.
(Bug#29155)
LOCK TABLES was not atomic when more than one
InnoDB tables were locked.
(Bug#29154)
INSERT DELAYED statements on a master server
are replicated as non-DELAYED inserts on
slaves (which is normal, to preserve serialization), but the
inserts on the slave did not use concurrent inserts. Now
INSERT DELAYED on a slave is converted to a
concurrent insert when possible, and to a normal insert
otherwise.
(Bug#29152)
mysqld failed to exit during shutdown. (Bug#29133)
A network structure was initialized incorrectly, leading to embedded server crashes. (Bug#29117)
An assertion failure occurred if a query contained a conjunctive
predicate of the form
in
the view_column = constantWHERE clause and the GROUP
BY clause contained a reference to a different view
column. The fix also enables application of an optimization that
was being skipped if a query contained a conjunctive predicate
of the form in the view_column =
constantWHERE clause and
the GROUP BY clause contained a reference to
the same view column.
(Bug#29104)
A maximum of 4TB InnoDB free space was
reported by SHOW TABLE STATUS, which is
incorrect on systems with more than 4TB space.
(Bug#29097)
If an INSERT INTO ... SELECT statement
inserted into the same table that the SELECT
retrieved from, and the SELECT included
ORDER BY and LIMIT
clauses, different data was inserted than the data produced by
the SELECT executed by itself.
(Bug#29095)
Queries that performed a lookup into a BINARY
index containing key values ending with spaces caused an
assertion failure for debug builds and incorrect results for
non-debug builds.
(Bug#29087)
The semantics of BIGINT depended on
platform-specific characteristics.
(Bug#29079)
A byte-order issue in writing a spatial index to disk caused bad index files on some systems. (Bug#29070)
Creation of a legal stored procedure could fail if no default database had been selected. (Bug#29050)
REPLACE, INSERT IGNORE,
and UPDATE IGNORE did not work for
FEDERATED tables.
(Bug#29019)
Inserting into InnoDB tables and executing
RESET MASTER in multiple threads cause
assertion failure in debug server binaries.
(Bug#28983)
Updates to a CSV table could cause a server
crash or update the table with incorrect values.
(Bug#28971)
For a ucs2 column,
GROUP_CONCAT() did not convert
separators to the result character set before inserting them,
producing a result containing a mixture of two different
character sets.
(Bug#28925)
Dropping the definer of an active event caused the server to crash. (Bug#28924)
For a join with GROUP BY and/or
ORDER BY and a view reference in the
FROM list, the query metadata erroneously
showed empty table aliases and database names for the view
columns.
(Bug#28898)
Creating an event using ON SCHEDULE AT
CURRENT_TIMESTAMP + INTERVAL ... could in some cases
cause mysqld to crash.
(Bug#28881)
Coercion of ASCII values to character sets that are a superset of ASCII sometimes was not done, resulting in illegal mix of collations errors. These cases now are resolved using repertoire, a new string expression attribute (see Section 8.1.6, “String Repertoire”). (Bug#28875)
Executing ALTER EVENT on an event whose definer's event creation privileges had been revoked cause the server to crash. (Bug#28873)
ALTER VIEW is not supported as a prepared
statement but was not being rejected. ALTER
VIEW is now prohibited as a prepared statement or when
called within stored routines.
(Bug#28846)
In strict SQL mode, errors silently stopped the SQL thread even
for errors named using the --slave-skip-errors
option.
(Bug#28839)
Fast ALTER TABLE (that works without
rebuilding the table) acquired duplicate locks in the storage
engine. In MyISAM, if ALTER
TABLE was issued under LOCK TABLE,
it caused all data inserted after LOCK TABLE
to disappear.
(Bug#28838)
Runtime changes to the
log_queries_not_using_indexes system variable
were ignored.
(Bug#28808)
Selecting a column not present in the selected-from table caused
an extra error to be produced by SHOW ERRORS.
(Bug#28677)
Creating an event to be executed at a time close to the end of the allowed range (2038-01-19 03:14:07 UTC) would cause the server to crash. (Bug#28641)
For a statement of the form CREATE t1 SELECT
, the
server created the column using the integer_constant DECIMAL
data type for large negative values that are within the range of
BIGINT.
(Bug#28625)
For InnoDB tables, MySQL unnecessarily sorted
records in certain cases when the records were retrieved by
InnoDB in the proper order already.
(Bug#28591)
mysql_install_db could fail to find script files that it needs. (Bug#28585)
If a stored procedure was created and invoked prior to selecting
a default database with USE, a No
database selected error occurred.
(Bug#28551)
On Mac OS X, shared-library installation pathnames were incorrect. (Bug#28544)
Using the --skip-add-drop-table option with
mysqldump generated incorrect SQL if the
database included any views. The recreation of views requires
the creation and removal of temporary tables. This option
suppressed the removal of those temporary tables. The same
applied to --compact since this option also
invokes --skip-add-drop-table.
(Bug#28524)
mysqlbinlog --hexdump generated incorrect
output due to omission of the “ #
” comment character for some comment lines.
(Bug#28293)
InnoDB could crash if the server was shut
down while innodb_table_monitor was running.
(Bug#28254)
A race condition in the interaction between
MyISAM and the query cache code caused the
query cache not to invalidate itself for concurrently inserted
data.
(Bug#28249)
A duplicate-key error message could display an incorrect key value when not all columns of the key were used to select rows for update. (Bug#28158)
Indexing column prefixes in InnoDB tables
could cause table corruption.
(Bug#28138)
Index creation could fail due to truncation of key values to the maximum key length rather than to a mulitiple of the maximum character length. (Bug#28125)
Instance Manager had a race condition when it received a shutdown request while a guarded mysqld instance was starting such that it could fail to stop the mysqld instance. (Bug#28030)
SELECT ... FOR UPDATE with partitioned tables
could cause a server crash.
(Bug#28026)
On Windows, Instance Manager would crash if an instance object failed to initialize during startup. This could happen if an incorrect mysqld path was supplied in the configuration file. (Bug#28012)
The LOCATE() function returned
NULL if any of its arguments evaluated to
NULL. Likewise, the predicate,
LOCATE(, erroneously evaluated to
str,NULL)
IS NULLFALSE.
(Bug#27932)
Dropping a user-defined function could cause a server crash if the function was still in use by another thread. (Bug#27564)
An error that happened inside INSERT,
UPDATE, or DELETE
statements performed from within a stored function or trigger
could cause inconsistency between master and slave servers.
(Bug#27417)
For some event-creation problems, the server displayed messages that implied the problems were errors when they were only warnings. (Bug#27406)
Fixed a case of unsafe aliasing in the source that caused a client library crash when compiled with gcc 4 at high optimization levels. (Bug#27383)
Index-based range reads could fail for comparisons that involved
contraction characters (such as ch in Czech
or ll in Spanish).
(Bug#27345)
Aggregations in subqueries that refer to outer query columns were not always correctly referenced to the proper outer query. (Bug#27333)
Error returns from the time() system call
were ignored.
(Bug#27198)
Phantom reads could occur under InnoDB
serializable isolation level.
(Bug#27197)
The SUBSTRING() function
returned the entire string instead of an empty string when it
was called from a stored procedure and when the length parameter
was specified by a variable with the value “
0 ”.
(Bug#27130)
Some functions when used in partitioning expressions could cause mysqld to crash. (Bug#27084)
The server acquired a global mutex for temporary tables, although such tables are thread-specific. This affected performance by blocking other threads. (Bug#27062)
FEDERATED tables had an artificially low
maximum of key length.
(Bug#26909)
Updates to rows in a partitioned table could update the wrong column. (Bug#26827)
Index creation could corrupt the table definition in the
.frm file: 1) A table with the maximum
number of key segments and maximum length key name would have a
corrupted .frm file, due to incorrect
calculation of the total key length. 2)
MyISAM would reject a table with the maximum
number of keys and the maximum number of key segments in all
keys. (It would allow one less than this total maximum.) Now
MyISAM accepts a table defined with the
maximum.
(Bug#26642)
The Windows implementation of pthread_join()
was incorrect and could cause crashes.
(Bug#26564)
After the first read of a TEMPORARY table,
CHECK TABLE could report the table as being
corrupt.
(Bug#26325)
If an operation had an InnoDB table, and two
triggers, AFTER UPDATE and AFTER
INSERT, competing for different resources (such as two
distinct MyISAM tables), the triggers were
unable to execute concurrently. In addition,
INSERT and UPDATE
statements for the InnoDB table were unable
to run concurrently.
(Bug#26141)
A number of unsupported constructs — including prohibited
constructs, the UCASE()
function, and nested function calls — were permitted in
partitioning expressions.
(Bug#26082, Bug#18198, Bug#29308)
ALTER DATABASE did not require at least one
option.
(Bug#25859)
The index merge union access algorithm could produce incorrect
results with InnoDB tables. The problem could
also occur for queries that used DISTINCT.
(Bug#25798)
When using a FEDERATED table, the value of
last_insert_id() would not correctly update
the C API interface, which would affect the autogenerated ID
returned both through the C API and the MySQL protocol,
affecting Connectors that used the protocol and/or C API.
(Bug#25714)
The server was blocked from opening other tables while the
FEDERATED engine was attempting to open a
remote table. Now the server does not check the correctness of a
FEDERATED table at CREATE
TABLE time, but waits until the table actually is
accessed.
(Bug#25679)
Under ActiveState Perl, mysql-test-run.pl
could kill itself when attempting to kill other processes.
(Bug#25657)
Several InnoDB assertion failures were
corrected.
(Bug#25645)
A query with DISTINCT in the select list to
which the loose-scan optimization for grouping queries was
applied returned an incorrect result set when the query was used
with the SQL_BIG_RESULT option.
(Bug#25602)
For a multiple-row insert into a FEDERATED
table that refers to a remote transactional table, if the insert
failed for a row due to constraint failure, the remote table
would contain a partial commit (the rows preceding the failed
one) instead of rolling back the statement completely. This
occurred because the rows were treated as individual inserts.
Now FEDERATED performs bulk-insert handling
such that multiple rows are sent to the remote table in a batch.
This provides a performance improvement and enables the remote
table to perform statement rollback properly should an error
occur. This capability has the following limitations:
The size of the insert cannot exceed the maximum packet size between servers. If the insert exceeds this size, it is broken into multiple packets and the rollback problem can occur.
Bulk-insert handling does not occur for INSERT ...
ON DUPLICATE KEY UPDATE.
The FEDERATED storage engine failed silently
for INSERT ... ON DUPLICATE KEY UPDATE if a
duplicate key violation occurred. FEDERATED
does not support ON DUPLICATE KEY UPDATE, so
now it correctly returns an ER_DUP_KEY error
if a duplicate key violation occurs.
(Bug#25511)
In a stored function or trigger, when InnoDB
detected deadlock, it attempted rollback and displayed an
incorrect error message (Explicit or implicit commit
is not allowed in stored function or trigger). Now
InnoDB returns an error under these
conditions and does not attempt rollback. Rollback is handled
outside of InnoDB above the function/trigger
level.
(Bug#24989)
Dropping a temporary InnoDB table that had
been locked with LOCK TABLES caused a server
crash.
(Bug#24918)
On Windows, executables did not include Vista manifests. (Bug#24732)
Slave servers could incorrectly interpret an out-of-memory error from the master and reconnect using the wrong binary log position. (Bug#24192)
If MySQL/InnoDB crashed very quickly after
starting up, it would not force a checkpoint. In this case,
InnoDB would skip crash recovery at next
startup, and the database would become corrupt. Fix: If the redo
log scan at InnoDB startup goes past the last
checkpoint, force crash recovery.
(Bug#23710)
Using the READ COMMITTED transaction
isolation level caused mixed and statement-based replication to
fail.
(Bug#23051)
SHOW INNODB STATUS caused an assertion
failure under high load.
(Bug#22819)
SHOW BINLOG EVENTS displayed incorrect values
of End_log_pos for events associated with
transactional storage engines.
(Bug#22540)
When determining which transaction to kill after deadlock has
been detected, InnoDB now adds the number of
locks to a transaction's weight, and avoids killing transactions
that mave modified non-transactional tables. This should reduce
the likelihood of killing long-running transactions containing
SELECT ... FOR UPDATE or
INSERT/REPLACE INTO ... SELECT statements,
and of causing partial updates if the target is a
MyISAM table.
(Bug#21293)
InnoDB displayed an incorrect error message
when a CREATE TABLE statement exceeded the
InnoDB maximum allowable row size.
(Bug#21101)
Under heavy load with a large query cache, invalidating part of the cache could cause the server to freeze (that is, to be unable to service other operations until the invalidation was complete). (Bug#21074)
mysql-stress-test.pl and mysqld_multi.server.sh were missing from some binary distributions. (Bug#21023, Bug#25486)
On Windows, the server used 10MB of memory for each connection thread, resulting in memory exhaustion. Now each thread uses 1MB. (Bug#20815)
InnoDB produced an unnecessary (and harmless)
warning: InnoDB: Error: trying to declare trx to enter
InnoDB, but InnoDB: it already is declared.
(Bug#20090)
If a slave timed out while registering with the master to which it was connecting, auto-reconnect failed thereafter. (Bug#19328)
If InnoDB reached its limit on the number of
concurrent transactions (1023), it wrote a descriptive message
to the error log but returned a misleading error message to the
client, or an assertion failure occurred.
(Bug#18828)
Under ActiveState Perl, mysql-test-run.pl
would not run.
(Bug#18415)
The server crashed when the size of an
ARCHIVE table grew larger than 2GB.
(Bug#15787)
SQL_BIG_RESULT had no effect for
CREATE TABLE ... SELECT SQL_BIG_RESULT ...
statements.
(Bug#15130)
On 64-bit Windows systems, the Config Wizard failed to complete
the setup because 64-bit Windows does not resolve dynamic
linking of the 64-bit libmysql.dll to a
32-bit application like the Config Wizard.
(Bug#14649)
mysql_setpermission tried to grant global-only privileges at the database level. (Bug#14618)
For the general query log, logging of prepared statements
executed via the C API differed from logging of prepared
statements performed with PREPARE and
EXECUTE. Logging for the latter was missing
the Prepare and Execute
lines.
(Bug#13326)
The TABLE_COMMENT column for
INFORMATION_SCHEMA.TABLES displayed
extraneous information for InnoDB tables.
(Bug#11379)
The server returned data from SHOW CREATE
TABLE statement or a SELECT
statement on an INFORMATION_SCHEMA table using the
binary character set.
(Bug#10491)
Backup software can cause
ERROR_SHARING_VIOLATION or
ERROR_LOCK_VIOLATION conditions during file
operations. InnoDB now retries forever until
the condition goes away.
(Bug#9709)
Retrieval of object definitions from
INFORMATION_SCHEMA tables.
In INFORMATION_SCHEMA, the
VIEWS table now has these columns:
CHARACTER_SET_CLIENT,
COLLATION_CONNECTION. The
ROUTINES, TRIGGERS, and
EVENT tables now have these columns:
CHARACTER_SET_CLIENT,
COLLATION_CONNECTION,
DATABASE_COLLATION.
In the mysql database, the
proc and event tables now
have these columns: character_set_client,
collation_connection,
db_collation, body_utf8.
Displaying the object definition in SHOW
statements. This issue also affected
mysqldump, which uses
SHOW.
Compiling the stored definition into executable form when the object is invoked.
Bulk-insert handling does not occur for INSERT ... ON
DUPLICATE KEY UPDATE.
The size of the insert cannot exceed the maximum packet size between servers. If the insert exceeds this size, it is broken into multiple packets and the rollback problem can occur.
Parsing the original object definition so that it can be stored.
This is a new Beta development release, fixing recently discovered bugs.
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 has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: It is no longer possible to partition the log tables. (Bug#27816)
Incompatible Change:
mysqld_safe now supports error logging to
syslog on systems that support the
logger command. The new
--syslog and --skip-syslog
options can be used instead of the --log-error
option to control logging behavior, as described in
Section 4.3.2, “mysqld_safe — MySQL Server Startup Script”. The default is to use
syslog, which differs from the previous
default behavior of writing an error log file.
Currently, logging to
syslog may fail to operate correctly in some
cases, so we recommend that you use
--skip-syslog or
--log-error. To maintain the older
behavior if you were using no error-logging option, use
--skip-syslog. If you were using
--log-error, continue to use it.
Note: In 5.1.21, the default is changed to
--skip-syslog, which is compatible with
releases prior to 5.1.20.
(Bug#4858)
Important Change: MySQL Cluster:
The TimeBetweenWatchdogCheckInitial
configuration parameter was added to allow setting of a separate
watchdog timeout for memory allocation during startup of the
data nodes. See Section 15.4.4.5, “Defining Data Nodes”,
for more information.
(Bug#28899)
MySQL Cluster: The cluster management client now stores command history between sessions. (Bug#29073)
MySQL Cluster:
auto_increment_increment and
auto_increment_offset are now supported for
NDB tables.
(Bug#26342)
MySQL Cluster: The server source tree now includes scripts to simplify building MySQL with SCI support. For more information about SCI interconnects and these build scripts, see Section 15.12.1, “Configuring MySQL Cluster to use SCI Sockets”. (Bug#25470)
MySQL Cluster:
A new configuration parameter ODirect causes
NDB to attempt using
O_DIRECT writes for LCP, backups, and redo
logs, often lowering CPU usage.
If a MERGE table cannot be opened or used
because of a problem with an underlying table, CHECK
TABLE now displays information about which table
caused the problem.
(Bug#26976)
User variables and stored procedure variables are now supported
for use in XPath expressions employed as arguments to the
ExtractValue() and
UpdateXML() functions.
This means that:
XPath can now be used to load data from XML files using virtually any format, and so able to import data from most third party software which either has XML export functionality, or uses XML natively as a storage format.
Various complex conditions can be put on rows and columns, so one can filter for desired rows (or skip unwanted rows) when loading XML.
Various types of preprocessing using SQL functions are now
possible when loading XML. For example, you can
concatenate two XML tag or attribute values into a single
column value using
CONCAT(), or remove some
parts of the data using
REPLACE().
See Section 10.10, “XML Functions”, for more information. (Bug#26518)
Binary distributions for some platforms did not include shared
libraries; now shared libraries are shipped for all platforms
except AIX 5.2 64-bit. Exception: The
library for the libmysqld embedded server is
not shared except on Windows.
(Bug#16520, Bug#26767, Bug#13450)
XPath can now be used to load data from XML files using virtually any format, and so able to import data from most third party software which either has XML export functionality, or uses XML natively as a storage format.
Various complex conditions can be put on rows and columns, so one can filter for desired rows (or skip unwanted rows) when loading XML.
The SQL_MODE,
FOREIGN_KEY_CHECKS,
UNIQUE_CHECKS, character set/collations, and
SQL_AUTO_IS_NULL sesstion variables are
written to the binary log and honoured during replication. See
Section 5.2.4, “The Binary Log”.
Various types of preprocessing using SQL functions are now
possible when loading XML. For example, you can concatenate two
XML tag or attribute values into a single column value using
CONCAT(), or remove some parts
of the data using REPLACE().
Bugs fixed:
Security Fix: A malformed password packet in the connection protocol could cause the server to crash. Thanks for Dormando for reporting this bug, and for providing details and a proof of concept. (Bug#28984, CVE-2007-3780)
Security Fix:
CREATE TABLE LIKE did not require any
privileges on the source table. Now it requires the
SELECT privilege.
In addition, CREATE TABLE LIKE was not
isolated from alteration by other connections, which resulted in
various errors and incorrect binary log order when trying to
execute concurrently a CREATE TABLE LIKE
statement and either DDL statements on the source table or DML
or DDL statements on the target table.
(Bug#23667, Bug#25578, CVE-2007-3781)
Incompatible Change:
Some error codes had error numbers in MySQL 5.1 different from
the numbers in MySQL 5.0. In MySQL 5.1, error numbers have been
changed to match the MySQL 5.0 values: Error codes with value of
1458 or higher have changed in MySQL 5.1 now. Client
applications designed to work with MySQL 5.1 with hard-coded
error code values (for example, in statements such as
if (mysql_errno(mysql) == 1463) { ... }) need
to be updated in the source code. All clients designed to work
with MySQL 5.1 that test error codes (for example, in statements
such as if (mysql_errno(mysql) == ER_VIEW_RECURSIVE) {
... }) should be recompiled. Existing 5.0 clients
should now work, without changes or recompilation, against
servers for MySQL 5.1.20 or higher.
(Bug#29245)
Incompatible Change:
When mysqldump was run with the
--delete-master-logs option, binary log files
were deleted before it was known that the dump had succeeded,
not after. (The method for removing log files used
RESET MASTER prior to the dump. This also
reset the binary log sequence numbering to
.000001.) Now mysqldump
flushes the logs (which creates a new binary log number with the
next sequence number), performs the dump, and then uses
PURGE MASTER LOGS to remove the log files
older than the new one. This also preserves log numbering
because the new log with the next number is generated and only
the preceding logs are removed. However, this may affect
applications if they rely on the log numbering sequence being
reset.
(Bug#24733)
Incompatible Change:
The use of an ORDER BY or
DISTINCT clause with a query containing a
call to the GROUP_CONCAT()
function caused results from previous queries to be redisplayed
in the current result. The fix for this includes replacing a
BLOB value used internally for sorting with a
VARCHAR. This means that for long results
(more than 65,535 bytes), it is possible for truncation to
occur; if so, an appropriate warning is issued.
(Bug#23856, Bug#28273)
MySQL Cluster:
Memory corruption could occur due to a problem in the
DBTUP kernel block.
(Bug#29229)
MySQL Cluster:
A query having a large IN(...)
or NOT IN(...) list in the
WHERE condition on an NDB
table could cause mysqld to crash.
(Bug#29185)
MySQL Cluster:
In the event that two data nodes in the same node group and
participating in a GCP crashed before they had written their
respective P0.sysfile files,
QMGR could refuse to start, issuing an
invalid Insufficient nodes for restart
error instead.
(Bug#29167)
MySQL Cluster:
Attempting to restore a NULL row to a
VARBINARY column caused
ndb_restore to fail.
(Bug#29103)
MySQL Cluster: ndb_error_reporter now preserves timestamps on files. (Bug#29074)
MySQL Cluster:
It is now possible to set the maximum size of the allocation
unit for table memory using the MaxAllocate
configuration parameter.
(Bug#29044)
MySQL Cluster:
When shutting down mysqld, the
NDB binlog process was not shut down before
log cleanup began.
(Bug#28949)
MySQL Cluster: ndb_mgm could hang when connecting to a nonexistent host. (Bug#28847)
MySQL Cluster: A regression in the heartbeat monitoring code could lead to node failure under high load. This issue affected MySQL 5.1.19 and MySQL 5.1.15-ndb-6.1.10 only. (Bug#28783)
MySQL Cluster: A corrupt schema file could cause a File already open error. (Bug#28770)
MySQL Cluster: Having large amounts of memory locked caused swapping to disk. (Bug#28751)
MySQL Cluster:
Setting InitialNoOpenFiles equal to
MaxNoOfOpenFiles caused an error. This was
due to the fact that the actual value of
MaxNoOfOpenFiles as used by the cluster was
offset by 1 from the value set in
config.ini.
(Bug#28749)
MySQL Cluster: LCP files were not removed following an initial system restart. (Bug#28726)
MySQL Cluster:
UPDATE IGNORE statements involving the
primary keys of multiple tables could result in data corruption.
(Bug#28719)
MySQL Cluster:
A race condition could result when non-master nodes (in addition
to the master node) tried to update active status due to a local
checkpoint (that is, between NODE_FAILREP and
COPY_GCIREQ events). Now only the master
updates the active status.
(Bug#28717)
MySQL Cluster: A fast global checkpoint under high load with high usage of the redo buffer caused data nodes to fail. (Bug#28653)
MySQL Cluster:
The management client's response to START BACKUP
WAIT COMPLETED did not include the backup ID.
(Bug#27640)
MySQL Cluster: (Replication): A replicated unique key allowed duplicate key inserts on the slave. (Bug#27044)
Replication:
It was possible to set SQL_SLAVE_SKIP_COUNTER
such that the slave would jump into the middle of an event
group.
(Bug#28618)
See also Bug#12691
Disk Data:
When loading data into a cluster following a version upgrade,
the data nodes could forcibly shut down due to page and buffer
management failures (that is, ndbrequire
failures in PGMAN).
(Bug#28525)
Disk Data:
Repeated INSERT and DELETE
operations on a Disk Data table having one or more large
VARCHAR columns could cause data nodes to
fail.
(Bug#20612)
Cluster Replication:
When replicating MyISAM or
InnoDB tables to a MySQL Cluster, it was not
possible to determine exactly what had been applied following a
shutdown of the slave cluster or mysqld
process.
(Bug#26783)
Cluster API:
The timeout set using the MGM API
ndb_mgm_set_timeout() function was
incorrectly interpreted as seconds rather than as milliseconds.
(Bug#29063)
Cluster API:
An invalid error code could be set on transaction objects by
BLOB handling code.
(Bug#28724)
The TRUNCATE statement was handled
differently by the server when row-based logging was in effect,
even though the binlogging format in effect does not effect the
fact that TRUNCATE is always logged as a
statement.
(Bug#29130)
If one of the queries in a UNION used the
SQL_CACHE option and another query in the
UNION contained a nondeterministic function,
the result was still cached. For example, this query was
incorrectly cached:
SELECT NOW() FROM t1 UNION SELECT SQL_CACHE 1 FROM t1;
DROP USER statements that named multiple
users, only some of which could be dropped, were replicated
incorrectly.
(Bug#29030)
Long pathnames for internal temporary tables could cause stack overflows. (Bug#29015)
Using an INTEGER column from a table to
ROUND() a number produced
different results than using a constant with the same value as
the INTEGER column.
(Bug#28980)
Using events in replication could cause the slave to crash. (Bug#28953)
If a program binds a given number of parameters to a prepared
statement handle and then somehow changes
stmt->param_count to a different number,
mysql_stmt_execute() could
crash the client or server.
(Bug#28934)
Queries using UDFs or stored functions were cached. (Bug#28921)
INSERT .. ON DUPLICATE KEY UPDATE could under
some circumstances silently update rows when it should not have.
(Bug#28904)
Queries that used UUID() were
incorrectly allowed into the query cache. (This should not
happen because UUID() is
non-deterministic.)
(Bug#28897)
Using a VIEW created with a non-existing
DEFINER could lead to incorrect results under
some circumstances.
(Bug#28895)
For InnoDB tables that use the
utf8 character set, incorrect results could
occur for DML statements such as DELETE or
UPDATE that use an index on character-based
columns.
(Bug#28878)
See also Bug#29449, Bug#30485, Bug#31395
This regression was introduced by Bug#13195
Non-utf8 characters could get mangled when
stored in CSV tables.
(Bug#28862)
On Windows, USE_TLS was not defined for
mysqlclient.lib.
(Bug#28860)
In MySQL 5.1.15, a new error code
ER_DUP_ENTRY_WITH_KEY_NAME (1582) was
introduced to replace ER_DUP_ENTRY (1062) so
that the key name could be provided instead of the key number.
This was unnecessary, so ER_DUP_ENTRY is used
again and the key name is printed. The incompatibility
introduced in 5.1.15 no longer applies.
(Bug#28842)
A subquery with ORDER BY and LIMIT
1 could cause a server crash.
(Bug#28811)
Running SHOW TABLE STATUS while performing a
high number of inserts on partitioned tables with a great many
partitions could cause the server to crash.
(Bug#28806)
Using BETWEEN with non-indexed
date columns and short formats of the date string could return
incorrect results.
(Bug#28778)
Selecting GEOMETRY columns in a
UNION caused a server crash.
(Bug#28763)
When constructing the path to the original
.frm file, ALTER ..
RENAME was unnecessarily (and incorrectly) lowercasing
the entire path when not on a case-insensitive filesystem,
causing the statement to fail.
(Bug#28754)
The binlog_format system variable value was
empty if the server was started with binary logging disabled.
Now it is set to MIXED.
(Bug#28752)
Searches on indexed and non-indexed ENUM
columns could return different results for empty strings.
(Bug#28729)
Executing EXPLAIN EXTENDED on a query using a
derived table over a grouping subselect could lead to a server
crash. This occurred only when materialization of the derived
tables required creation of an auxiliary temporary table, an
example being when a grouping operation was carried out with
usage of a temporary table.
(Bug#28728)
The result of evaluation for a view's CHECK
OPTION option over an updated record and records of
merged tables was arbitrary and dependant on the order of
records in the merged tables during the execution of the
SELECT statement.
(Bug#28716)
The “manager thread” of the LinuxThreads implementation was unintentionally started before mysqld had dropped privileges (to run as an unprivileged user). This caused signaling between threads in mysqld to fail when the privileges were finally dropped. (Bug#28690)
Setting an interval of EVERY 0 SECOND for a
scheduled event caused the server to crash.
(Bug#28666)
For debug builds, ALTER TABLE could trigger
an assertion failure due to occurrence of a deadlock when
committing changes.
(Bug#28652)
Attempting to create an index on a BIT column
failed after modifying the column.
(Bug#28631)
After an upgrade, the names of stored routines referenced by
views were no longer displayed by SHOW CREATE
VIEW.
(Bug#28605)
This regression was introduced by Bug#23491
Conversion of U+00A5 YEN SIGN and U+203E OVERLINE from
ucs2 to ujis produced
incorrect results.
(Bug#28600)
Killing from one connection a long-running EXPLAIN
QUERY started from another connection caused
mysqld to crash.
(Bug#28598)
SHOW GLOBAL VARIABLES repeated some variable
names.
(Bug#28580)
When one thread attempts to lock two (or more) tables and
another thread executes a statement that aborts these locks
(such as REPAIR TABLE, OPTIMIZE
TABLE, or CHECK TABLE), the thread
might get a table object with an incorrect lock type in the
table cache. The result is table corruption or a server crash.
(Bug#28574)
Outer join queries with ON conditions over
constant outer tables did not return
NULL-complemented rows when conditions were
evaluated to FALSE.
(Bug#28571)
An update on a multiple-table view with the CHECK OPTION clause and a subquery in the WHERE condition could cause an assertion failure. (Bug#28561)
Calling the UpdateXML() function
using invalid XPath syntax caused memory corruption possibly
leading to a crash of the server.
(Bug#28558)
PURGE MASTER LOGS BEFORE
( caused a server
crash. Subqueries are forbidden in the subquery)BEFORE
clause now.
(Bug#28553)
mysqldump calculated the required memory for a hex-blob string incorrectly causing a buffer overrun. This in turn caused mysqldump to crash silently and produce incomplete output. (Bug#28522)
When upgrading from MySQL 5.1.17 to 5.1.18, mysql_upgrade and mysql_fix_privilege_tables did not upgrade the system tables relating to the Event Scheduler correctly. (Bug#28521)
Passing a DECIMAL value as a parameter of a
statement prepared with PREPARE resulted in
an error.
(Bug#28509)
mysql_affected_rows() could
return an incorrect result for INSERT ... ON DUPLICATE
KEY UPDATE if the CLIENT_FOUND_ROWS
flag was set.
(Bug#28505)
A query that grouped by the result of an expression returned a different result when the expression was assigned to a user variable. (Bug#28494)
Subselects returning LONG values in MySQL
versions later than 5.0.24a returned LONGLONG
prior to this. The previous behavior was restored.
(Bug#28492)
This regression was introduced by Bug#19714
Performing ALTER TABLE ... ADD PARTITION or
ALTER TABLE DROP PARTITION could result in
inconsistent data, or cause the server to crash, if done
concurrently with other accesses to the table.
(Bug#28477, Bug#28488)
Forcing the use of an index on a SELECT query
when the index had been disabled would raise an error without
running the query. The query now executes, with a warning
generated noting that the use of a disabled index has been
ignored.
(Bug#28476)
The result of executing of a prepared statement created with
PREPARE s FROM "SELECT 1 LIMIT ?"
was not replicated correctly.
(Bug#28464)
The query SELECT '2007-01-01' + INTERVAL
caused
mysqld to fail.
(Bug#28450)column_name DAY FROM
table_name
A server crash could happen under rare conditions such that a
temporary table outgrew heap memory reserved for it and the
remaining disk space was not big enough to store the table as a
MyISAM table.
(Bug#28449)
Using ALTER TABLE to move columns resulted
only in the columns being renamed. The table contents were not
changed.
(Bug#28427)
The test case for mysqldump failed with
bin-log disabled.
(Bug#28372)
Attempting to LOAD_FILE from an empty floppy
drive under Windows, caused the server to hang. For example, if
you opened a connection to the server and then issued the
command SELECT LOAD_FILE('a:test');, with no
floppy in the drive, the server was inaccessible until the modal
pop-up dialog box was dismissed.
(Bug#28366)
mysqltest used a too-large stack size on PPC/Debian Linux, causing thread-creation failure for tests that use many threads. (Bug#28333)
When using a MEMORY table on Mac OS X,
dropping a table and than creating a table with the same name
could cause the information of the deleted table to remain
accessible, leading to index errors.
(Bug#28309)
The IS_UPDATABLE column in the
INFORMATION_SCHEMA.VIEWS table was not always
set correctly.
(Bug#28266)
For CAST() of a
NULL value with type
DECIMAL, the return value was incorrectly
initialized, producing a runtime error for binaries built using
Visual C++ 2005.
(Bug#28250)
Recreating a view that already exists on the master would cause a replicating slave to terminate replication with a 'different error message on slave and master' error. (Bug#28244)
When the query cache was fully used, issuing RENAME
DATABASE or RENAME SCHEMA could
cause the server to hang, with 100% CPU usage.
(Bug#28211)
The Bytes_received and
Bytes_sent status variables could hold only
32-bit values (not 64-bit values) on some platforms.
(Bug#28149)
Some valid identifiers were not parsed correctly. (Bug#28127)
Storing a large number into a FLOAT or
DOUBLE column with a fixed length could
result in incorrect truncation of the number if the column's
length was greater than 31.
(Bug#28121)
Sending debugging information from a dump of the Event Scheduler
to COM_DEBUG could cause the server to crash.
(Bug#28075)
The PARTITION_COMMENT column of the
INFORMATION_SCHEMA.PARTITIONS table had the
wrong default value.
(Bug#28007)
DECIMAL values beginning with nine
9 digits could be incorrectly rounded.
(Bug#27984)
For attempts to open a non-existent table, the server should
report ER_NO_SUCH_TABLE but sometimes
reported ER_TABLE_NOT_LOCKED.
(Bug#27907)
Following an invalid call to
UpdateXML(), calling the
function again (even if valid) crashed the server.
(Bug#27898)
A stored program that uses a variable name containing multibyte characters could fail to execute. (Bug#27876)
The server made strong assumptions about the structure of the
general_log and slow_log
log tables: It supported only the table structure defined in the
mysql database creation scripts. The server
also allowed limited ALTER TABLE operations
on the log tables, but adding an
AUTO_INCREMENT column did not properly
initialize the column, and subsequent inserts into the table
could fail to generate correct sequence numbers. Now an
ALTER TABLE statement that adds an
AUTO_INCREMENT column populates the column
correctly. In addition, when the server writes a log table row,
it will set columns not present in the original table structure
to their default values.
(Bug#27857)
ON conditions from JOIN
expressions were ignored when checking the CHECK
OPTION clause while updating a multiple-table view
that included such a clause.
(Bug#27827)
On some systems, udf_example.c returned an
incorrect result length. Also on some systems,
mysql-test-run.pl could not find the shared
object built from udf_example.c.
(Bug#27741)
The modification of a table by a partially completed multi-column update was not recorded in the binlog, rather than being marked by an event and a corresponding error code. (Bug#27716)
SHOW ENGINES and queries on
INFORMATION_SCHEMA.ENGINES did not use the
same values for representing the same storage engine states.
(Bug#27684)
HASH indexes on VARCHAR
columns with binary collations did not ignore trailing spaces
from strings before comparisons. This could result in duplicate
records being successfully inserted into a
MEMORY table with unique key constraints. A
consequence was that internal MEMORY tables
used for GROUP BY calculation contained
duplicate rows that resulted in duplicate-key errors when
converting those temporary tables to MyISAM,
and that error was incorrectly reported as a table is
full error.
(Bug#27643)
An error occurred trying to connect to mysqld-debug.exe. (Bug#27597)
A stack overrun could occur when storing
DATETIME values using repeated prepared
statements.
(Bug#27592)
If a stored function or trigger was killed, it aborted but no error was thrown, allowing the calling statement to continue without noticing the problem. This could lead to incorrect results. (Bug#27563)
When ALTER TABLE was used to add a new
DATE column with no explicit default value,
'0000-00-00' was used as the default even if
the SQL mode included the NO_ZERO_DATE mode
to prohibit that value. A similar problem occurred for
DATETIME columns.
(Bug#27507)
ALTER TABLE ... ENABLE KEYS could cause
mysqld to crash when executed on a table
containing on a MyISAM table containing
billions of rows.
(Bug#27029)
Binary logging of prepared statements could produce syntactically incorrect queries in the binary log, replacing some parameters with variable names rather than variable values. This could lead to incorrect results on replication slaves. (Bug#26842, Bug#12826)
Binary content 0x00 in a
BLOB column sometimes became 0x5C
0x00 following a dump and reload, which could cause
problems with data using multi-byte character sets such as
GBK (Chinese). This was due to a problem with
SELECT INTO OUTFILE whereby LOAD
DATA later incorrectly interpreted
0x5C as the second byte of a multi-byte
sequence rather than as the SOLIDUS
(“\”) character, used by MySQL as the escape
character.
(Bug#26711)
Connections from one mysqld server to another
failed on Mac OS X, affecting replication and
FEDERATED tables.
(Bug#26664)
See also Bug#29083
The server crashed when attempting to open a table having a
#mysql50# prefix in the database or table
name. The server now will not open such tables. (This prefix is
reserved by mysql_upgrade for accessing 5.0
tables that have names not yet encoded for 5.1.)
(Bug#26402)
A FLUSH TABLES WITH READ LOCK statement
followed by a FLUSH LOGS statement caused a
deadlock if the general log or the slow query log was enabled.
(Bug#26380)
The query SELECT /*2*/ user, host, db, info FROM
INFORMATION_SCHEMA.PROCESSLIST WHERE (command!='Daemon' ||
user='event_scheduler') AND (info IS NULL OR info NOT LIKE
'%processlist%') ORDER BY INFO yielded inconsistent
results.
(Bug#26338)
For a given user variable @v, the statements
SELECT @v and CREATE TABLE ... AS
SELECT @v did not return the same data type.
(Bug#26277)
Statements within triggers ignored the value of the
low_priority_updates system variable.
(Bug#26162)
See also Bug#29963
The embedded server library displayed error messages at startup
if the mysql.plugin table was not present.
This no longer occurs.
(Bug#25800)
On Windows, an application that called
mysql_thread_init() but forgot
to call mysql_thread_end()
would get this error: Error in
my_thread_global_end().
(Bug#25621)
Embedded /* ... */ comments were handled
incorrectly within the definitions of stored programs and views,
resulting in malformed definitions (the trailing
*/ was stripped). This also affected binary
log contents.
(Bug#25411, Bug#26302)
Due to a race condition, executing FLUSH
PRIVILEGES in one thread could cause brief table
unavailability in other threads.
(Bug#24988)
In SHOW SLAVE STATUS output,
Last_Errno and Last_Error
were not set after master_retry_count errors
had occurred. To provide additional information, the statement
now displays four additional columns:
Last_IO_Errno: The number of the last
error that caused the I/O thread to stop
Last_IO_Error: A description of the last
error that caused the I/O thread to stop
Last_SQL_Errno: The number of the last
error that caused the SQL thread to stop
Last_SQL_Error: A description of the last
error that caused the SQL thread to stop
Also, Last_Errno and
Last_Error now are aliases for
Last_SQL_Errno and
Last_SQL_Error.
(Bug#24954)
A too-long shared-memory-base-name value
could cause a buffer overflow and crash the server or clients.
(Bug#24924)
On some Linux distributions where LinuxThreads and NPTL
glibc versions both are available, statically
built binaries can crash because the linker defaults to
LinuxThreads when linking statically, but calls to external
libraries (such as libnss) are resolved to
NPTL versions. This cannot be worked around in the code, so
instead if a crash occurs on such a binary/OS combination, print
an error message that provides advice about how to fix the
problem.
(Bug#24611)
A number of SHOW statements caused
mysqld to crash on recent versions of
Solaris. This issue is believed to be present only in MySQL
5.1.12 and later.
(Bug#23810)
The server deducted some bytes from the
key_cache_block_size option value and reduced
it to the next lower 512 byte boundary. The resulting block size
was not a power of two. Setting the
key_cache_block_size system variable to a
value that is not a power of two resulted in
MyISAM table corruption.
(Bug#23068, Bug#28478, Bug#25853)
Conversion errors could occur when constructing the condition
for an IN predicate. The predicate was
treated as if the affected column contains
NULL, but if the IN
predicate is inside NOT, incorrect results
could be returned.
(Bug#22855)
When using transactions and replication, shutting down the master in the middle of a transaction would cause all slaves to stop replicating. (Bug#22725)
Linux binaries were unable to dump core after executing a
setuid() call.
(Bug#21723)
Stack overflow caused server crashes. (Bug#21476)
Using CREATE TABLE LIKE ... would raise an
assertion when replicated to a slave.
(Bug#18950)
The server was ignoring the return value of the
parse() function for full-text parser
plugins.
(Bug#18839)
Granting access privileges to an individual table where the database or table name contained an underscore would fail. (Bug#18660)
The -lmtmalloc library was removed from the
output of mysql_config on Solaris, as it
caused problems when building DBD::mysql (and
possibly other applications) on that platform that tried to use
dlopen() to access the client library.
(Bug#18322)
The check-cpu script failed to detect AMD64 Turion processors correctly. (Bug#17707)
When using mysqlbinlog with
--read-from-remote-server to load the data
direct from a remote MySQL server would cause a core dump when
dumping certain binary log events.
(Bug#17654)
Trying to shut down the server following a failed LOAD
DATA INFILE caused mysqld to crash.
(Bug#17233)
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)
Using up-arrow for command-line recall in mysql could cause a segmentation fault. (Bug#10218)
The result for CAST() when
casting a value to UNSIGNED was limited to
the maximum signed BIGINT value
(9223372036854775808), rather than the maximum unsigned value
(18446744073709551615).
(Bug#8663)
The internal functions for table preparation, creation, and
alteration were not re-execution friendly, causing problems in
code that: repeatedly altered a table; repeatedly created and
dropped a table; opened and closed a cursor on a table, altered
the table, and then reopened the cursor; used ALTER
TABLE to change a table's current
AUTO_INCREMENT value; created indexes on
utf8 columns.
Re-execution of CREATE DATABASE,
CREATE TABLE, and ALTER
TABLE statements in stored routines or as prepared
statements also caused incorrect results or crashes.
(Bug#4968, Bug#6895, Bug#19182, Bug#19733, Bug#22060, Bug#24879)
Last_IO_Error: A description of the last
error that caused the I/O thread to stop
Last_IO_Errno: The number of the last error
that caused the I/O thread to stop
Last_SQL_Error: A description of the last
error that caused the SQL thread to stop
Last_SQL_Errno: The number of the last error
that caused the SQL thread to stop
This is a new Beta development release, fixing recently discovered bugs.
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 has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change:
INSERT DELAYED is now downgraded to a normal
INSERT if the statement uses functions that
access tables or triggers, or that is called from a function or
a trigger.
This was done to resolve the following interrelated issues:
The server could abort or deadlock for INSERT
DELAYED statements for which another insert was
performed implicitly (for example, via a stored function
that inserted a row).
A trigger using an INSERT DELAYED
caused the error INSERT DELAYED can't be used
with table ... because it is locked with LOCK
TABLES although the target table was not
actually locked.
INSERT DELAYED into a table with a
BEFORE INSERT or AFTER
INSERT trigger gave an incorrect
NEW pseudocolumn value and caused the
server to deadlock or abort.
MySQL Cluster:
Formerly, restoring a cluster backup made on a MySQL 5.0 Cluster
to a 5.1 cluster using a 5.1 version of
ndb_restore did not resize
VARCHAR columns as might be expected; now,
the default behavior of ndb_restore in such
cases is to resize the VARCHAR columns. This
changed default behavior can be overridden using the
--no-upgrade (or -u) option
when invoking ndb_restore.
(Bug#22240)
The BLACKHOLE storage engine now supports
INSERT DELAYED. Previously, INSERT
DELAYED statements for BLACKHOLE
tables were not supported, and caused the server to crash.
(Bug#27998)
A new status variable, Com_call_procedure,
indicates the number of calls to stored procedures.
(Bug#27994)
The BLACKHOLE storage engine now supports
LOCK TABLES and UNLOCK
TABLES.
(Bug#26241)
GLOBAL_STATUS
GLOBAL_VARIABLES
SESSION_VARIABLES
The data type used for the VARIABLE_VALUE
column of the following INFORMATION_SCHEMA tables has been
changed to VARCHAR:
GLOBAL_STATUS
SESSION_STATUS
GLOBAL_VARIABLES
SESSION_VARIABLES
For more information, see Section 22.24, “The INFORMATION_SCHEMA GLOBAL_STATUS and
SESSION_STATUS Tables”,
Section 22.25, “The INFORMATION_SCHEMA GLOBAL_VARIABLES and
SESSION_VARIABLES Tables”.
See also Bug#26994
SESSION_STATUS
Bugs fixed:
Security Fix: UDFs are supposed to be loadable only from the plugin directory, but this restriction was not being enforced. (Bug#28341)
Security Fix: Use of a view could allow a user to gain update privileges for tables in other databases. (Bug#27878, CVE-2007-3782)
MySQL Cluster:
When an API node sent more than 1024 signals in a single batch,
NDB would process only the first 1024 of
these, and then hang.
(Bug#28443)
MySQL Cluster:
A delay in obtaining AUTO_INCREMENT IDs could
lead to excess temporary errors.
(Bug#28410)
MySQL Cluster:
Local checkpoint files relating to dropped
NDB tables were not removed.
(Bug#28348)
MySQL Cluster: Multiple operations involving deletes followed by reads were not handled correctly.
This issue could also affect MySQL Cluster Replication.
MySQL Cluster:
Repeated insertion of data generated by
mysqldump into NDB tables
could eventually lead to failure of the cluster.
(Bug#27437)
MySQL Cluster: Restarting a data node caused SQL nodes to log repeatedly and unnecessarily the status of the event buffer.
(This issue was known to occur in MySQL 5.1.16 and later only.) (Bug#27292)
MySQL Cluster:
ndb_mgmd failed silently when the cluster
configuration file contained invalid [tcp]
entries.
(Bug#27207)
MySQL Cluster:
ndb_connectstring did not appear in the
output of SHOW VARIABLES.
(Bug#26675)
MySQL Cluster: A failure to release internal resources following an error could lead to problems with single user mode. (Bug#25818)
MySQL Cluster: DDL operations were not supported on a partially started cluster. (Bug#24631)
Disk Data: Extremely large inserts into Disk Data tables could lead to data node failure in some circumstances. (Bug#27942)
Cluster API:
In a multi-operation transaction, a delete operation followed by
the insertion of an implicit NULL failed to
overwrite an existing value.
(Bug#20535)
Some ALTER TABLE statements that worked in
MySQL 5.0 did not work in 5.1.
(Bug#28415)
mysql_upgrade failed if certain SQL modes were set. Now it sets the mode itself to avoid this problem. (Bug#28401)
A query with a NOT IN subquery predicate
could cause a crash when the left operand of the predicate
evaluated to NULL.
(Bug#28375)
A buffer overflow could occur when using
DECIMAL columns on Windows operating systems.
(Bug#28361)
libmysql.dll could not be dynamically loaded
on Windows.
(Bug#28358)
Grouping queries with correlated subqueries in
WHERE conditions could produce incorrect
results.
(Bug#28337)
EXPLAIN for a query on an empty table
immediately after its creation could result in a server crash.
(Bug#28272)
Comparing a DATETIME column value with a user
variable yielded incorrect results.
(Bug#28261)
Portability problems caused by use of isinf()
were corrected.
(Bug#28240)
When dumping procedures, mysqldump
--compact generated output that
restored the session variable SQL_MODE
without first capturing it. When dumping routines,
mysqldump --compact neither
set nor retrieved the value of SQL_MODE.
(Bug#28223)
Comparison of the string value of a date showed as unequal to
CURTIME(). Similar behavior was
exhibited for DATETIME values.
(Bug#28208)
For InnoDB, in some rare cases the optimizer
preferred a more expensive ref access to a
less expensive range access.
(Bug#28189)
Comparisons of DATE or
DATETIME values for the
IN() function could yield
incorrect results.
(Bug#28133)
It was not possible to use the value
–9223372036854775808 (that is,
–MAXVALUE + 1) when specifying a
LIST partition.
(Bug#28005)
The server could hang for INSERT IGNORE ... ON
DUPLICATE KEY UPDATE if an update failed.
(Bug#28000)
The second execution of a prepared statement from a
UNION query with ORDER BY
RAND() caused the server to crash. This problem could
also occur when invoking a stored procedure containing such a
query.
(Bug#27937)
Changes to some system variables should invalidate statements in the query cache, but invalidation did not happen. (Bug#27792)
LOAD DATA did not use
CURRENT_TIMESTAMP as the default value for a
TIMESTAMP column for which no value was
provided.
(Bug#27670)
Selecting MIN() on an indexed
column that contained only NULL values caused
NULL to be returned for other result columns.
(Bug#27573)
Using a TEXT local variable in a stored
routine in an expression such as SET
produced
an incorrect result.
(Bug#27415)var =
SUBSTRING(var, 3)
The error message for error number 137 did
not report which database/table combination reported the
problem.
(Bug#27173)
A large filesort could result in a division by zero error and a server crash. (Bug#27119)
Some InnoDB variables were missing from the
output of mysqld --verbose --help.
(Bug#26987)
Flow control optimization in stored routines could cause exception handlers to never return or execute incorrect logic. (Bug#26977)
Some test suite files were missing from some MySQL-test packages. (Bug#26609)
Running CHECK TABLE concurrently with a
SELECT, INSERT or other
statement on Windows could corrupt a MyISAM table.
(Bug#25712)
Concurrent execution of CREATE TABLE ...
SELECT and other statements involving the target table
suffered from various race conditions, some of which might have
led to deadlocks.
(Bug#24738)
An attempt to execute CREATE TABLE ... SELECT
when a temporary table with the same name already existed led to
the insertion of data into the temporary table and creation of
an empty non-temporary table.
(Bug#24508)
A statement of the form CREATE TABLE IF NOT EXISTS t1
SELECT f1() AS i failed with a deadlock error if the
stored function f1() referred to a table with
the same name as the to-be-created table. Now it correctly
produces a message that the table already exists.
(Bug#22427)
Quoted labels in stored routines were mishandled, rendering the routines unusable. (Bug#21513)
CURDATE() is less than
NOW(), either when comparing
CURDATE() directly
(CURDATE() < NOW() is true) or when
casting CURDATE() to
DATE (CAST(CURDATE() AS DATE) <
NOW() is true). However, storing
CURDATE() in a
DATE column and comparing
incorrectly yielded false. This is fixed by comparing a
col_name < NOW()DATE column as DATETIME
for comparisons to a DATETIME constant.
(Bug#21103)
CREATE TABLE IF NOT EXISTS ... SELECT caused
a server crash if the target table already existed and had a
BEFORE INSERT trigger.
(Bug#20903)
Deadlock occurred for attempts to execute CREATE TABLE
IF NOT EXISTS ... SELECT when LOCK
TABLES had been used to acquire a read lock on the
target table.
(Bug#20662, Bug#15522)
For dates with 4-digit year parts less than 200, an incorrect
implicit conversion to add a century was applied for date
arithmetic performed with
DATE_ADD(),
DATE_SUB(), +
INTERVAL, and - INTERVAL. (For
example, DATE_ADD('0050-01-01 00:00:00',
INTERVAL 0 SECOND) became '2050-01-01
00:00:00'.)
(Bug#18997)
Changing the size of a key buffer that is under heavy use could
cause a server crash. The fix partially removes the limitation
that LOAD INDEX INTO CACHE fails unless all
indexes in a table have the same block size. Now the statement
fails only if IGNORE LEAVES is specified.
(Bug#17332)
This section contains change history information for MySQL Cluster 5.1 Carrier Grade Edition releases based on MySQL 5.1.19.
This is a new Beta development release, fixing a recently discovered bug.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.19-ndb-6.3.0, as well as all bugfixes and feature changes which were added in the mainline 5.1.19 release; information about these can be found in Section C.1.7, “Changes in MySQL 5.1.19 (25 May 2007)”.
Bugs fixed:
Batching of transactions was not handled correctly in some cases. (Bug#29525)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.18-ndb-6.2.1, MySQL 5.1.18-ndb-6.2.2 (see Section C.1.10, “Changes in MySQL 5.1.18 Carrier Grade Edition”), and MySQL 5.1.19-ndb-6.2.3 (see Section C.1.8.4, “Changes in MySQL 5.1.19-ndb-6.2.3 (02 July 2007)”), as well as all bugfixes and feature changes which were added in the mainline 5.1.19 release; information about these can be found in Section C.1.7, “Changes in MySQL 5.1.19 (25 May 2007)”.
Functionality added or changed:
MySQL Cluster: Reporting functionality has been significantly enhanced in this release:
A new configuration parameter
BackupReportFrequency now makes it
possible to cause the management client to provide status
reports at regular intervals as well as for such reports
to be written to the cluster log (depending on cluster
event logging levels). See
Section 15.4.4.5, “Defining Data Nodes”, for more
information about this parameter.
A new REPORT command has been added in
the cluster management client. REPORT
BackupStatus allows you to obtain a backup
status report at any time during a backup. REPORT
MemoryUsage reports the current data memory and
index memory used by each data node. For more about the
REPORT command, see
Section 15.7.2, “Commands in the MySQL Cluster Management Client”.
ndb_restore now provides running reports of its progress when restoring a backup. In addition, a complete report status report on the backup is written to the cluster log.
MySQL Cluster:
A new configuration parameter ODirect causes
NDB to attempt using
O_DIRECT writes for LCP, backups, and redo
logs, often lowering CPU usage.
Cluster Replication: This release implements conflict resolution, which makes it possible to determine on a per-table basis whether or not an update to a given row on the master should be applied on the slave. For more information, see Section 15.10.10, “MySQL Cluster Replication Conflict Resolution”.
This is a new Beta development release, fixing recently discovered bugs.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes
made in MySQL 5.1.18-ndb-6.2.1, MySQL 5.1.18-ndb-6.2.3 (see
Section C.1.10, “Changes in MySQL 5.1.18 Carrier Grade Edition”), and MySQL 5.1.19-ndb-6.2.4,
as well as all bugfixes and feature changes which were added in
the mainline 5.1.19 release; information about these can be
found in Section C.1.7, “Changes in MySQL 5.1.19 (25 May 2007)”. Also included are most
(but not all) bugfixes made in the MCCGE
6.1.x series through MySQL
5.1.15-ndb-6.1.16.
Bugs fixed:
MySQL Cluster: When restarting a data node, queries could hang during that node's start phase 5, and continue only after the node had entered phase 6. (Bug#29364)
MySQL Cluster: Replica redo logs were inconsistently handled during a system restart. (Bug#29354)
Disk Data: Performing Disk Data schema operations during a node restart could cause forced shutdowns of other data nodes. (Bug#29501)
Disk Data: Disk data meta-information that existed in ndbd might not be visible to mysqld. (Bug#28720)
Disk Data: The number of free extents was incorrectly reported for some tablespaces. (Bug#28642)
Batching of transactions was not handled correctly in some cases. (Bug#29525)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes
made in MySQL 5.1.18-ndb-6.2.1 and MySQL 5.1.18-ndb-6.2.2 (see
Section C.1.10, “Changes in MySQL 5.1.18 Carrier Grade Edition”), as well as all bugfixes and
feature changes which were added in the mainline 5.1.19 release;
information about these can be found in
Section C.1.7, “Changes in MySQL 5.1.19 (25 May 2007)”. Also included are most (but not
all) bugfixes made in the MCCGE 6.1.x
series through MySQL 5.1.15-ndb-6.1.16.
Bugs fixed:
MySQL Cluster: When restarting a data node, queries could hang during that node's start phase 5, and continue only after the node had entered phase 6. (Bug#29364)
MySQL Cluster: Replica redo logs were inconsistently handled during a system restart. (Bug#29354)
Disk Data: Performing Disk Data schema operations during a node restart could cause forced shutdowns of other data nodes. (Bug#29501)
Disk Data: Disk data meta-information that existed in ndbd might not be visible to mysqld. (Bug#28720)
Disk Data: The number of free extents was incorrectly reported for some tablespaces. (Bug#28642)
Batching of transactions was not handled correctly in some cases. (Bug#29525)
This is a new Beta development release, fixing recently discovered bugs.
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 has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: MySQL Cluster:
The internal specifications for columns in
NDB tables has changed to allow compatibility
with future MySQL Cluster releases that are expected to
implement online adding and dropping of columns. This change is
not backward compatible with earlier MySQL versions.
See the related note in Section 15.5.2, “Cluster Upgrade and Downgrade Compatibility”, for important information prior to upgrading a MySQL Cluster to MySQL 5.1.18 or later from MySQL 5.1.17 or earlier.
See also Bug#28205
Cluster Replication: Incompatible Change:
The definition of the mysql.ndb_apply_status
table has changed such that an online upgrade is not possible
from MySQL 5.1.17 or earlier for a replication slave cluster;
you must shut down all SQL nodes as part of the upgrade
procedure. See
Section 15.5.2, “Cluster Upgrade and Downgrade Compatibility”
before upgrading for details.
For more information about the changes to
mysql.ndb_apply_status see
Section 15.10.4, “Cluster Replication Schema and Tables”.
Incompatible Change:
The INFORMATION_SCHEMA.EVENTS and
mysql.event tables have been changed to
facilitate replication of events. When upgrading to MySQL
5.1.18, you must run mysql_upgrade prior to
working with events. Until you have done so, any statement
relating to the Event Scheduler or these tables (including
SHOW EVENTS) will fail with the errors
Expected field status at position 12 to have type
enum ('ENABLED','SLAVESIDE_DISABLED','DISABLED'), found
enum('ENABLED','DISABLED') and Table
mysql.event is damaged. Can not open.
These changes were made as part of fixes for the following bugs:
The effects of scheduled events were not replicated (that is, binary logging of scheduled events did not work).
Effects of scheduled events on a replication master were both replicated and executed on the slave, causing double execution of events.
CREATE FUNCTION statements and their
effects were not replicated correctly.
For more information, see Section 14.3.1.5, “Replication of Invoked Features”. (Bug#17857, Bug#16421, Bug#20384, Bug#17671)
MySQL Cluster: The behavior of the ndb_restore utility has been changed as follows:
It is now possible to restore selected databases or tables using ndb_restore.
Several options have been added for use with
ndb_restore --print_data
to facilitate the creation of structured data
dump files. These options can be used to make dumps made
using ndb_restore more like those
produced by mysqldump.
For details of these changes, see Section 15.8.3, “ndb_restore — Restore a Cluster Backup”. (Bug#26899, Bug#26900)
MySQL Cluster: The following changes were made in the ndb_size.pl utility:
When ndb_size.pl calculates a value for a given configuration parameter that is less than the default value, it now suggests the default value instead.
The dependency on HTML::Template was
removed.
Cluster Replication: Some circular replication setups are now supported for MySQL Cluster. See Section 15.10.3, “Known Issues in MySQL Cluster Replication”, for detailed information. (Bug#17095, Bug#25688)
Cluster API:
The MGM API now supports explicit setting of network timeouts
using the ndb_mgm_set_timeout() function. A
utility function
ndb_mgm_number_of_mgmd_in_connect_string() is
also implemented to facilitate calculation of timeouts based on
the number of management servers in the cluster.
For more information, see ndb_mgm_set_timeout(),
and ndb_mgm_number_of_mgmd_in_connect_string().
Prior to this release, when DATE values were
compared with DATETIME values the time
portion of the DATETIME value was ignored.
Now a DATE value is coerced to the
DATETIME type by adding the time portion as
“00:00:00”. To mimic the old behavior use the
CAST() function in the following way: SELECT
.
(Bug#28929)date_field = CAST(NOW() as
DATE);
mysqld_multi now understands the
--no-defaults,
--defaults-file, and
--defaults-extra-file options. The
--config-file option is deprecated; if given,
it is treated like --defaults-extra-file.
(Bug#27390)
If a set function S with an outer
reference
cannot be aggregated in the outer query against which the outer
reference has been resolved, MySQL interprets S(outer_ref)
the same way that it would interpret S(outer_ref)
.
However, standard SQL requires throwing an error in this
situation. An error now is thrown for such queries if the
S(const)ANSI SQL mode is enabled.
(Bug#27348)
Several additional data types are supported for columns in
INFORMATION_SCHEMA tables:
DATE, TIME,
BLOB, FLOAT, and all
integer types.
(Bug#27047)
The output of mysql --xml
and mysqldump --xml now
includes a valid XML namespace.
(Bug#25946)
If you use SSL for a client connection, you can tell the client
not to authenticate the server certificate by specifying neither
--ssl-ca nor --ssl-capath. The
server still verifies the client according to any applicable
requirements established via GRANT statements
for the client, and it still uses any
--ssl-ca/--ssl-capath values
that were passed to server at startup time.
(Bug#25309)
Added a MASTER_SSL_VERIFY_SERVER_CERT option
for the CHANGE MASTER statement, and a
Master_SSL_Verify_Server_Cert output column
to the SHOW SLAVE STATUS statement. The
option value also is written to the
master.info file.
(Bug#19991)
Added the
--auto-generate-sql-add-auto-increment,
--auto-generate-sql-execute-number,
--auto-generate-sql-guid-primary,
--auto-generate-sql-secondary-indexes,
--auto-generate-sql-unique-query-number,
--auto-generate-sql-unique-write-number,
--post-query,, and
--pre-query, options for
mysqlslap. Removed the
--lock-directory, --slave, and
--use-threads options.
When upgrading to MySQL 5.1.18 or later from a previous MySQL version and scheduled events have been used, the upgrade utilities do not accomodate changes in event-related system tables. As a workaround, you can dump events before the upgrade, then restore them from the dump afterwards. This issue was fixed in MySQL 5.1.20.
See also Bug#28521
Added --write-binlog option for
mysqlcheck. This option is enabled by
default, but can be given as
--skip-write-binlog to cause ANALYZE
TABLE, OPTIMIZE TABLE, and
REPAIR TABLE statements generated by
mysqlcheck not to be written to the binary
log. (Bug#26262)
New command-line options: To alleviate ambiguities in variable
names, all variables related to plugins can be specified using a
plugin part in the name. For example, every
time where we used to have innodb in the
command-line options, you can now write
plugin-innodb:
--skip-plugin-innodb --plugin-innodb-buffer-pool-size=#
Furthermore, this is the preferred syntax. It helps to avoid
ambiguities when a plugin, say, wait, has an
option called timeout.
--wait-timeout will still set a system
variable, but --plugin-wait-timeout will set
the plugin variable. Also, there is a new command-line option
--plugin-load to install or load plugins at
initialization time without using the
mysql.plugin table.
The plugin interface and its handling of system variables was
changed. Command-line options such as
--skip-innodb now cause an error if
InnoDB is not built-in or plugin-loaded. You
should use --loose-skip-innodb if you do not
want any error even if InnoDB is not
available. The --loose prefix modifier should
be used for all command-line options where you are uncertain
whether the plugin exists and when you want the operation to
proceed even if the option is necessarily ignored due to the
absence of the plugin. (For a desecription of how
--loose works, see
Section 4.2.2.1, “Using Options on the Command Line”.)
Storage engine plugins may now be uninstalled at run time.
However, a plugin is not actually uninstalled until after its
reference count drops to zero. The
default_storage_engine system variable
consumes a reference count, so uninstalling will not complete
until said reference is removed.
The mysql_create_system_tables script was removed because mysql_install_db no longer uses it in MySQL 5.1.
Renamed the old_mode system variable to
old.
Bugs fixed:
Security Fix:
The requirement of the DROP privilege for
RENAME TABLE was not enforced.
(Bug#27515, CVE-2007-2691)
Security Fix:
If a stored routine was declared using SQL SECURITY
INVOKER, a user who invoked the routine could gain
privileges.
(Bug#27337, CVE-2007-2692)
Security Fix:
A user with only the ALTER privilege on a
partitioned table could obtain information about the table that
should require the SELECT privilege.
(Bug#23675, CVE-2007-2693)
MySQL Cluster: The cluster waited 30 seconds instead of 30 milliseconds before reading table statistics. (Bug#28093)
MySQL Cluster: Under certain rare circumstances, ndbd could get caught in an infinite loop when one transaction took a read lock and then a second transaction attempted to obtain a write lock on the same tuple in the lock queue. (Bug#28073)
MySQL Cluster: Under some circumstances, a node restart could fail to update the Global Checkpoint Index (GCI). (Bug#28023)
MySQL Cluster:
INSERT IGNORE wrongly ignored
NULL values in unique indexes.
(Bug#27980)
MySQL Cluster: The name of the month “March” was given incorrectly in the cluster error log. (Bug#27926)
MySQL Cluster:
NDB tables having MEDIUMINT
AUTO_INCREMENT columns were not restored correctly by
ndb_restore, causing spurious duplicate key
errors. This issue did not affect TINYINT,
INT, or BIGINT columns
with AUTO_INCREMENT.
(Bug#27775)
MySQL Cluster:
NDB tables with indexes whose names contained
space characters were not restored correctly by
ndb_restore (the index names were truncated).
(Bug#27758)
MySQL Cluster:
It was not possible to add a unique index to an
NDB table while in single user mode.
(Bug#27710)
MySQL Cluster:
Under certain rare circumstances performing a DROP
TABLE or TRUNCATE on an
NDB table could cause a node failure or
forced cluster shutdown.
(Bug#27581)
MySQL Cluster: Memory usage of a mysqld process grew even while idle. (Bug#27560)
MySQL Cluster:
Using more than 16GB for DataMemory caused
problems with variable-size columns.
(Bug#27512)
MySQL Cluster: A data node failing while another data node was restarting could leave the cluster in an inconsistent state. In certain rare cases, this could lead to a race condition and the eventual forced shutdown of the cluster. (Bug#27466)
MySQL Cluster:
When using the MemReportFrequency
configuration parameter to generate periodic reports of memory
usage in the cluster log, DataMemory usage
was not always reported for all data nodes.
(Bug#27444)
MySQL Cluster:
(Replication): An UPDATE on the master became
a DELETE on slaves.
(Bug#27378)
MySQL Cluster:
When trying to create an NDB table after the
server was started with --ndbcluster but
without --ndb-connectstring,
mysqld produced a memory allocation error.
(Bug#27359)
MySQL Cluster: Performing a delete followed by an insert during a local checkpoint could cause a Rowid already allocated error. (Bug#27205)
MySQL Cluster:
In an NDB table having a
TIMESTAMP column using DEFAULT
CURRENT_TIMESTAMP, that column would assume a random
value when another column in the same row was updated.
(Bug#27127)
MySQL Cluster: Error messages displayed when running in single user mode were inconsistent. (Bug#27021)
MySQL Cluster:
On Solaris, the value of an NDB table column
declared as BIT(33) was always displayed as
0.
(Bug#26986)
MySQL Cluster:
Performing ALTER TABLE ... ENGINE=MERGE on an
NDB table caused mysqld to
crash.
(Bug#26898)
MySQL Cluster: The Cluster table handler did not set bits in null bytes correctly. (Bug#26591)
MySQL Cluster:
In some cases, AFTER UPDATE and
AFTER DELETE triggers on
NDB tables that referenced subject table did
not see the results of operation which caused invocation of the
trigger, but rather saw the row as it was prior to the update or
delete operation.
This was most noticeable when an update operation used a
subquery to obtain the rows to be updated. An example would be
UPDATE tbl1 SET col2 = val1 WHERE tbl1.col1 IN (SELECT
col3 FROM tbl2 WHERE c4 = val2) where there was an
AFTER UPDATE trigger on table
tbl1. In such cases, the trigger would fail
to execute.
The problem occurred because the actual update or delete
operations were deferred to be able to perform them later as one
batch. The fix for this bug solves the problem by disabling this
optimization for a given update or delete if the table has an
AFTER trigger defined for this operation.
(Bug#26242)
MySQL Cluster:
Joins on multiple tables containing BLOB
columns could cause data nodes run out of memory, and to crash
with the error NdbObjectIdMap::expand unable to
expand.
(Bug#26176)
MySQL Cluster:
START BACKUP NOWAIT caused a spurious
Out of backup record error in the
management client (START BACKUP and
START BACKUP WAIT STARTED performed
normally).
(Bug#25446)
MySQL Cluster:
Adding of indexes online failed for NDB
tables having BLOB or TEXT
columns.
(Bug#25431)
MySQL Cluster: (Disk Data): Creating an excessive number of Disk Data tables (1000 or more) could cause data nodes to fail. (Bug#24951)
MySQL Cluster: When a cluster data node suffered a “hard” failure (such as a power failure or loss of a network connection) TCP sockets to the missing node were maintained indefinitely. Now socket-based transporters check for a response and terminate the socket if there is no activity on the socket after 2 hours. (Bug#24793)
MySQL Cluster: (Disk Data): Creating an excessive number of data files for a single tablespace caused data nodes to crash. (Bug#24521)
MySQL Cluster: The ndb_resize.pl utility did not calculate memory usage for indexes correctly. (Bug#24229)
MySQL Cluster: While a data node was stopped, dropping a table then creating an index on a different table caused that node to fail during restart. This was due to the re-use of the dropped table's internal ID for the index without verifying that the index now referred to a different database object. (Bug#21755)
MySQL Cluster:
(Disk Data): It was possible to drop the last remaining datafile
in a tablespace (using an ALTER TABLESPACE
statement), even though there was still an empty table using the
tablespace.
It should be noted that the datafile could be not dropped if the table still contained any rows, so this bug involved no loss of data. (Bug#21699)
MySQL Cluster:
When trying to create tables on an SQL node not connected to the
cluster, a misleading error message Table
'tbl_name' already exists
was generated. The error now generated is Could not
connect to storage engine.
(Bug#18676)
Replication: Some queries that updated multiple tables were not backed up correctly. (Bug#27748)
Replication: Out-of-memory errors were not reported. Now they are written to the error log. (Bug#26844)
Cluster Replication: Disk Data: An issue with replication of Disk Data tables could in some cases lead to node failure. (Bug#28161)
Disk Data: Changes to a Disk Data table made as part of a transaction could not be seen by the client performing the changes until the transaction had been committed. (Bug#27757)
Disk Data: When in single user mode, it was possible to create log file groups and tablespaces from any SQL node connected to the cluster. (Bug#27712)
Disk Data:
CREATE TABLE ... LIKE
created an
in-memory disk_data_table NDB table.
(Bug#25875)
Disk Data: When restarting a data node following the creation of a large number of Disk Data objects (approximately 200 such objects), the cluster could not assign a node ID to the restarting node. (Bug#25741)
Disk Data:
Changing a column specification or issuing a
TRUNCATE statement on a Disk Data table
caused the table to become an in-memory table.
This fix supersedes an incomplete fix that was made for this issue in MySQL 5.1.15. (Bug#24667, Bug#25296)
Disk Data:
Setting the value of the UNDO BUFFER SIZE to
64K or less in a CREATE LOGFILE GROUP
statement led to failure of cluster data nodes.
(Bug#24560)
Cluster Replication: It was possible for API nodes to begin interacting with the cluster subscription manager before they were fully connected to the cluster. (Bug#27728)
Cluster Replication: Under very high loads, checkpoints could be read or written with checkpoint indexes out of order. (Bug#27651)
Cluster Replication:
Trying to replicate a large number of frequent updates with a
relatively small relay log
(max-relay-log-size set to 1M or less) could
cause the slave to crash.
(Bug#27529)
Cluster Replication:
Setting SQL_LOG_BIN to zero did not disable
binary logging.
This issue affected only the NDB storage
engine.
(Bug#27076)
Cluster Replication: An SQL node acting as a replication master server could be a single point of failure; that is, if it failed, the replication slave had no way of knowing this, which could result in a mismatch of data between the master and the slave. (Bug#21494)
Cluster API:
For BLOB reads on operations with lock mode
LM_CommittedRead, the lock mode was not
upgraded to LM_Read before the state of the
BLOB had already been calculated. The
NDB API methods affected by this problem
included the following:
NdbOperation::readTuple()
NdbScanOperation::readTuples()
NdbIndexScanOperation::readTuples()
Cluster API:
Using NdbBlob::writeData() to write data in
the middle of an existing blob value (that is, updating the
value) could overwrite some data past the end of the data to be
changed.
(Bug#27018)
A performance degradation was observed for outer join queries to which a not-exists optimization was applied. (Bug#28188)
SELECT * INTO OUTFILE ... FROM
INFORMATION_SCHEMA.SCHEMATA failed with an
Access denied error, even for a user who
had the FILE privilege.
(Bug#28181)
Early NULL-filtering optimization did not
work for eq_ref table access.
(Bug#27939)
Non-grouped columns were allowed by * in
ONLY_FULL_GROUP_BY SQL mode.
(Bug#27874)
Some equi-joins containing a WHERE clause
that included a NOT IN subquery caused a
server crash.
(Bug#27870)
An error message suggested the use of mysql_fix_privilege_tables after an upgrade, but the recommended program is now mysql_upgrade. (Bug#27818)
Debug builds on Windows generated false alarms about uninitialized variables with some Visual Studio runtime libraries. (Bug#27811)
Certain queries that used uncorrelated scalar subqueries caused
EXPLAIN to crash.
(Bug#27807)
Performing a UNION on two views that had
ORDER BY clauses resulted in an
Unknown column error.
(Bug#27786)
mysql_install_db is supposed to detect existing system tables and create only those that do not exist. Instead, it was exiting with an error if tables already existed. (Bug#27783)
The LEAST() and
GREATEST() functions compared
DATE and DATETIME values
as strings, which in some cases could lead to an incorrect
result.
(Bug#27759)
An INSERT followed by a delete
DELETE on the same NDB
table caused a memory leak.
(Bug#27756)
This regression was introduced by Bug#20612
A memory leak in the event scheduler that was uncovered by Valgrind was fixed. (Bug#27733)
mysqld did not check the length of option values and could crash with a buffer overflow for long values. (Bug#27715)
Comparisons using row constructors could fail for rows
containing NULL values.
(Bug#27704)
mysqldump could not connect using SSL. (Bug#27669)
SELECT DISTINCT could return incorrect
results if the select list contained duplicated columns.
(Bug#27659)
On Linux, the server could not create temporary tables if
lower_case_table_names was set to 1 and the
value of tmpdir was a directory name
containing any uppercase letters.
(Bug#27653)
For InnoDB tables, a multiple-row
INSERT of the form INSERT INTO t
(id...) VALUES (NULL...) ON DUPLICATE KEY UPDATE
id=VALUES(id), where id is an
AUTO_INCREMENT column, could cause
ERROR 1062 (23000): Duplicate entry... errors
or lost rows.
(Bug#27650)
When MySQL logged slow query information to a
CSV table, it used an incorrect formula to
calculate the query_time and
lock_time values.
(Bug#27638)
The XML output representing an empty result was an empty string
rather than an empty <resultset/>
element.
(Bug#27608)
Comparison of a DATE with a
DATETIME did not treat the
DATE as having a time part of
00:00:00.
(Bug#27590)
See also Bug#32198
With NO_AUTO_VALUE_ON_ZERO SQL mode enabled,
LOAD DATA operations could assign incorrect
AUTO_INCREMENT values.
(Bug#27586)
Group relay log rotation updated only the log position and not the name, causing the slave to stop. (Bug#27583)
Incorrect results could be returned for some queries that
contained a select list expression with IN or
BETWEEN together with an
ORDER BY or GROUP BY on
the same expression using NOT IN or
NOT BETWEEN.
(Bug#27532)
The fix for Bug#17212 provided correct sort order for misordered output of certain queries, but caused significant overall query performance degradation. (Results were correct (good), but returned much more slowly (bad).) The fix also affected performance of queries for which results were correct. The performance degradation has been addressed. (Bug#27531)
The CRC32() function returns an
unsigned integer, but the metadata was signed, which could cause
certain queries to return incorrect results. (For example,
queries that selected a CRC32()
value and used that value in the GROUP BY
clause.)
(Bug#27530)
An interaction between SHOW TABLE STATUS and
other concurrent statements that modify the table could result
in a divide-by-zero error and a server crash.
(Bug#27516)
Evaluation of an IN() predicate containing a
decimal-valued argument caused a server crash.
(Bug#27513, Bug#27362, CVE-2007-2583)
A race condition between DROP TABLE and
SHOW TABLE STATUS could cause the latter to
display incorrect information.
(Bug#27499)
In out-of-memory conditions, the server might crash or otherwise not report an error to the Windows event log. (Bug#27490)
Passing nested row expressions with different structures to an
IN predicate caused a server crash.
(Bug#27484)
The decimal.h header file was incorrectly
omitted from binary distributions.
(Bug#27456)
With innodb_file_per_table enabled,
attempting to rename an InnoDB table to a
non-existent database caused the server to exit.
(Bug#27381)
Nested aggregate functions could be improperly evaluated. (Bug#27363)
A stored function invocation in the WHERE
clause was treated as a constant.
(Bug#27354)
For the INFORMATION_SCHEMA
SESSION_STATUS and
GLOBAL_STATUS tables, some status values were
incorrectly converted to the data type of the
VARIABLE_VALUE column.
(Bug#27327)
Failure to allocate memory associated with
transaction_prealloc_size could cause a
server crash.
(Bug#27322)
A subquery could get incorrect values for references to outer query columns when it contained aggregate functions that were aggregated in outer context. (Bug#27321)
The server did not shut down cleanly. (Bug#27310)
In a view, a column that was defined using a
GEOMETRY function was treated as having the
LONGBLOB data type rather than the
GEOMETRY type.
(Bug#27300)
mysqldump crashed if it got no data from
SHOW CREATE PROCEDURE (for example, when
trying to dump a routine defined by a different user and for
which the current user had no privileges). Now it prints a
comment to indicate the problem. It also returns an error, or
continues if the --force option is given.
(Bug#27293)
Queries containing subqueries with
COUNT(*) aggregated in an outer
context returned incorrect results. This happened only if the
subquery did not contain any references to outer columns.
(Bug#27257)
Use of an aggregate function from an outer context as an
argument to GROUP_CONCAT()
caused a server crash.
(Bug#27229)
String truncation upon insertion into an integer or year column did not generate a warning (or an error in strict mode). (Bug#27176, Bug#26359)
mysqlbinlog produced different output with
the -R option than without it.
(Bug#27171)
Storing NULL values in spatial fields caused
excessive memory allocation and crashes on some systems.
(Bug#27164)
Row equalities in WHERE clauses could cause
memory corruption.
(Bug#27154)
ON DUPLICATE KEY UPDATE failed for a table
partitioned by KEY on a primary key
VARCHAR column.
(Bug#27123)
GROUP BY on a ucs2 column
caused a server crash when there was at least one empty string
in the column.
(Bug#27079)
Duplicate members in SET definitions were not
detected. Now they result in a warning; if strict SQL mode is
enabled, an error occurs instead.
(Bug#27069)
For FEDERATED tables, SHOW CREATE
TABLE could fail when the table name was longer than
the connection name.
(Bug#27036)
mysql_install_db could terminate with an error after failing to determine that a system table already existed. (Bug#27022)
In a MEMORY table, using a
BTREE index to scan for updatable rows could
lead to an infinite loop.
(Bug#26996)
make_win_bin_dist neglected to copy some
required MyISAM table files.
(Bug#26922)
Improved out-of-memory detection when sending logs from a master server to slaves, and log a message when allocation fails. (Bug#26837)
For InnoDB tables having a clustered index
that began with a CHAR or
VARCHAR column, deleting a record and then
inserting another before the deleted record was purged could
result in table corruption.
(Bug#26835)
mysqldump would not dump a view for which the
DEFINER no longer exists.
(Bug#26817)
Duplicates were not properly identified among (potentially) long
strings used as arguments for
GROUP_CONCAT(DISTINCT).
(Bug#26815)
ALTER VIEW requires the CREATE
VIEW and DROP privileges for the
view. However, if the view was created by another user, the
server erroneously required the SUPER
privilege.
(Bug#26813)
If the name of a table given to myisamchk -rq
was a packed table and the name included the
.MYI extension,
myisamchk incorrectly created a file with a
.MYI.MYI extension.
(Bug#26782)
Creating a temporary table with InnoDB when using the
one-file-per-table setting, and when the host filesystem for
temporary tables was tmpfs, would cause an
assertion within mysqld. This was due to the
use of O_DIRECT when opening the temporary
table file.
(Bug#26662)
mysql_upgrade did not detect failure of external commands that it runs. (Bug#26639)
The range optimizer could cause the server to run out of memory. (Bug#26625)
The range optimizer could consume a combinatorial amount of
memory for certain classes of WHERE clauses.
(Bug#26624)
Aborting a statement on the master that applied to a non-transactional statement broke replication. The statement was written to the binary log but not completely executed on the master. Slaves receiving the statement executed it completely, resulting in loss of data synchrony. Now an error code is written to the error log so that the slaves stop without executing the aborted statement. (That is, replication stops, but synchrony to the point of the stop is preserved and you can investigate the problem.) (Bug#26551)
mysqldump could crash or exhibit incorrect
behavior when some options were given very long values, such as
--fields-terminated-by=". The code has been cleaned
up to remove a number of fixed-sized buffers and to be more
careful about error conditions in memory allocation.
(Bug#26346)some very long
string"
Fixed a possible buffer overflow in SHOW PROCEDURE
CODE.
(Bug#26303)
The FEDERATED engine did not allow the local
and remote tables to have different names.
(Bug#26257)
The temporary file-creation code was cleaned up on Windows to improve server stability. (Bug#26233)
For MyISAM tables,
COUNT(*) could return an
incorrect value if the WHERE clause compared
an indexed TEXT column to the empty string
(''). This happened if the column contained
empty strings and also strings starting with control characters
such as tab or newline.
(Bug#26231)
For INSERT INTO ... SELECT where index
searches used column prefixes, insert errors could occur when
key value type conversion was done.
(Bug#26207)
mysqlbinlog --base64-output produced invalid SQL. (Bug#26194)
For DELETE FROM (with no
tbl_name ORDER BY
col_name WHERE or LIMIT clause),
the server did not check whether
col_name was a valid column in the
table.
(Bug#26186)
Executing an INSERT ... SELECT ... FROM
INFORMATION_SCHEMA.GLOBAL_STATUS statement from within
an event caused a server crash.
(Bug#26174)
mysqldump could not dump log tables. (Bug#26121)
On Windows, trying to use backslash (\)
characters in paths for DATA DIRECTORY and
INDEX DIRECTORY when creating partitioned
tables caused MySQL to crash.
(You must use / characters when specifying
paths for these options, regardless of platform. See
Section 16.1, “Overview of Partitioning in MySQL”, for an example using
absolute paths for DATA DIRECTORY and
INDEX DIRECTORY when creating a partitioned
table on Windows.)
(Bug#26074, Bug#25141)
mysqldump crashed for
MERGE tables if the
--complete-insert (-c) option
was given.
(Bug#25993)
Index hints (USE INDEX, IGNORE
INDEX, FORCE INDEX) cannot be used
with FULLTEXT indexes, but were not being
ignored.
(Bug#25951)
Setting a column to NOT NULL with an
ON DELETE SET NULL clause foreign key crashes
the server.
(Bug#25927)
Corrupted MyISAM tables that have different
definitions in the .frm and
.MYI tables might cause a server crash.
(Bug#25908)
If CREATE TABLE t1 LIKE t2 failed due to a
full disk, an empty t2.frm file could be
created but not removed. This file then caused subsequent
attempts to create a table named t2 to fail.
This is easily corrected at the filesystem level by removing the
t2.frm file manually, but now the server
removes the file if the create operation does not complete
successfully.
(Bug#25761)
In certain situations, MATCH ... AGAINST
returned false hits for NULL values produced
by LEFT JOIN when no full-text index was
available.
(Bug#25729)
Concurrent CREATE SERVER and ALTER
SERVER statements could cause a deadlock.
(Bug#25721)
CREATE SERVER, DROP
SERVER, and ALTER SERVER did not
require any privileges. Now these statements require the
SUPER privilege.
(Bug#25671)
On Windows, connection handlers did not properly decrement the server's thread count when exiting. (Bug#25621)
When RAND() was called multiple
times inside a stored procedure, the server did not write the
correct random seed values to the binary log, resulting in
incorrect replication.
(Bug#25543)
OPTIMIZE TABLE might fail on Windows when it
attempts to rename a temporary file to the original name if the
original file had been opened, resulting in loss of the
.MYD file.
(Bug#25521)
For SHOW ENGINE INNODB STATUS, the
LATEST DEADLOCK INFORMATION was not always
cleared properly.
(Bug#25494)
mysql_stmt_fetch() did an
invalid memory deallocation when used with the embedded server.
(Bug#25492)
GRANT statements were not replicated if the
server was started with the
--replicate-ignore-table or
--replicate-wild-ignore-table option.
(Bug#25482)
mysql_upgrade did not pass a password to mysqlcheck if one was given. (Bug#25452)
On Windows, mysql_upgrade was sensitive to lettercase of the names of some required components. (Bug#25405)
During a call to
mysql_change_user(), when
authentication fails or the database to change to is unknown, a
subsequent call to any function that does network communication
leads to packets out of order. This problem was introduced in
MySQL 5.1.14.
(Bug#25371)
Difficult repair or optimization operations could cause an assertion failure, resulting in a server crash. (Bug#25289)
For storage engines that allow the current auto-increment value
to be set, using ALTER TABLE ... ENGINE to
convert a table from one such storage engine to another caused
loss of the current value. (For storage engines that do not
support setting the value, it cannot be retained anyway when
changing the storage engine.)
(Bug#25262)
Restoration of the default database after stored routine or trigger execution on a slave could cause replication to stop if the database no longer existed. (Bug#25082)
Duplicate entries were not assessed correctly in a
MEMORY table with a BTREE
primary key on a utf8 ENUM
column.
(Bug#24985)
Several math functions produced incorrect results for large
unsigned values. ROUND()
produced incorrect results or a crash for a large
number-of-decimals argument.
(Bug#24912)
The result set of a query that used WITH
ROLLUP and DISTINCT could lack some
rollup rows (rows with NULL values for
grouping attributes) if the GROUP BY list
contained constant expressions.
(Bug#24856)
Selecting the result of AVG()
within a UNION could produce incorrect
values.
(Bug#24791)
For queries that used ORDER BY with
InnoDB tables, if the optimizer chose an
index for accessing the table but found a covering index that
enabled the ORDER BY to be skipped, no
results were returned.
(Bug#24778)
The NO_DIR_IN_CREATE server SQL mode was not
enforced for partitioned tables.
(Bug#24633)
MBRDisjoint(), MBRequal(),
MBRIntersects(),
MBROverlaps(),
MBRTouches(), and
MBRWithin() were inadvertently omitted from
recent versions of MySQL (5.1.14 to 5.1.17).
(Bug#24588)
Access via my_pread() or
my_pwrite() to table files larger than 2GB
could fail on some systems.
(Bug#24566)
MBROverlaps() returned incorrect values in
some cases.
(Bug#24563)
A problem in handling of aggregate functions in subqueries caused predicates containing aggregate functions to be ignored during query execution. (Bug#24484)
The MERGE storage engine could return
incorrect results when several index values that compare
equality were present in an index (for example,
'gross' and 'gross ',
which are considered equal but have different lengths).
(Bug#24342)
Some upgrade problems are detected and better error messages suggesting that mysql_upgrade be run are produced. (Bug#24248)
The test for the
MYSQL_OPT_SSL_VERIFY_SERVER_CERT option for
mysql_options() was performed
incorrectly. Also changed as a result of this bugfix: The
arg option for the
mysql_options() C API function
was changed from char * to void
*.
(Bug#24121)
Some views could not be created even when the user had the requisite privileges. (Bug#24040)
The values displayed for the
Innodb_row_lock_time,
Innodb_row_lock_time_avg, and
Innodb_row_lock_time_max status variables
were incorrect.
(Bug#23666)
Using CAST() to convert
DATETIME values to numeric values did not
work.
(Bug#23656)
A damaged or missing mysql.event table caused
SHOW VARIABLES to fail.
(Bug#23631)
SHOW CREATE VIEW qualified references to
stored functions in the view definition with the function's
database name, even when the database was the default database.
This affected mysqldump (which uses
SHOW CREATE VIEW to dump views) because the
resulting dump file could not be used to reload the database
into a different database. SHOW CREATE VIEW
now suppresses the database name for references to functions in
the default database.
(Bug#23491)
An INTO OUTFILE clause is allowed only for
the final SELECT of a
UNION, but this restriction was not being
enforced correctly.
(Bug#23345)
The AUTO_INCREMENT value would not be
correctly reported for InnoDB tables when using SHOW
CREATE TABLE statement or mysqldump
command.
(Bug#23313)
With the NO_AUTO_VALUE_ON_ZERO SQL mode
enabled, LAST_INSERT_ID() could
return 0 after INSERT ... ON DUPLICATE KEY
UPDATE. Additionally, the next rows inserted (by the
same INSERT, or the following
INSERT with or without ON DUPLICATE
KEY UPDATE), would insert 0 for the auto-generated
value if the value for the AUTO_INCREMENT
column was NULL or missing.
(Bug#23233)
If a rotate event occured in the middle of a non-transaction
group, the group position would be updated by the rotate event
indicating an illegal group start position that was effectively
inside a group. This can happen if, for example, a rotate occurs
between an Intvar event and the associated
Query event, or between the table map events
and the rows events when using row-based replication.
(Bug#23171)
Implicit conversion of 9912101 to
DATE did not match
CAST(9912101 AS DATE).
(Bug#23093)
SELECT COUNT(*) from a table containing a
DATETIME NOT NULL column could produce
spurious warnings with the NO_ZERO_DATE SQL
mode enabled.
(Bug#22824)
Using SET GLOBAL to change the
lc_time_names system variable had no effect
on new connections.
(Bug#22648)
SOUNDEX() returned an invalid
string for international characters in multi-byte character
sets.
(Bug#22638)
Row-based replication of MyISAM to
non-MyISAM tables did not work correctly for
BIT columns. This has been corrected, but the
fix introduces an incompatibility into the binary log format.
(The incompatibility is corrected by the fix for Bug#27779.)
(Bug#22583)
A multiple-table UPDATE could return an
incorrect rows-matched value if, during insertion of rows into a
temporary table, the table had to be converted from a
MEMORY table to a MyISAM
table.
(Bug#22364)
COUNT(
sometimes generated a spurious truncation warning.
(Bug#21976)decimal_expr)
yaSSL crashed on pre-Pentium Intel CPUs. (Bug#21765)
A slave that used --master-ssl-cipher could not
connect to the master.
(Bug#21611)
Database and table names have a maximum length of 64 characters (even if they contain multi-byte characters), but were truncated to 64 bytes.
This improves on a previous fix made for this bug in MySQL 5.1.12.
For InnoDB, fixed consistent-read behavior of
the first read statement, if the read was served from the query
cache, for the READ COMMITTED isolation
level.
(Bug#21409)
On Windows, if the server was installed as a service, it did not auto-detect the location of the data directory. (Bug#20376)
Changing a utf8 column in an
InnoDB table to a shorter length did not
shorten the data values.
(Bug#20095)
In some cases, the optimizer preferred a range or full index scan access method over lookup access methods when the latter were much cheaper. (Bug#19372)
Conversion of DATETIME values in numeric
contexts sometimes did not produce a double
(YYYYMMDDHHMMSS.uuuuuu) value.
(Bug#16546)
INSERT...ON DUPLICATE KEY UPDATE could cause
Error 1032: Can't find record in ... for
inserts into an InnoDB table unique index
using key column prefixes with an underlying
utf8 string column.
(Bug#13191)
Having the EXECUTE privilege for a routine in
a database should make it possible to USE
that database, but the server returned an error instead. This
has been corrected. As a result of the change, SHOW
TABLES for a database in which you have only the
EXECUTE privilege returns an empty set rather
than an error.
(Bug#9504)
This section contains change history information for MySQL Cluster 5.1 Carrier Grade Edition releases based on MySQL 5.1.18.
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.16-ndb-6.2.0 and MySQL 5.1.18-ndb-6.2.1, which includes all bugfixes and feature changes which were added in the mainline 5.1.18 release; information about these can be found in Section C.1.9, “Changes in MySQL 5.1.18 (08 May 2007)”.
Functionality added or changed:
MySQL Cluster:
New cluster management client DUMP commands
were added to aid in tracking transactions, scan operations, and
locks. See DUMP 2350,
DUMP 2352, and
DUMP 2550, for more
information.
MySQL Cluster:
Added the mysqld option
--ndb-cluster-connection-pool that allows a
single MySQL server to use multiple connections to the cluster.
This allows for scaling out using multiple MySQL clients per SQL
node instead of or in addition to using multiple SQL nodes with
the cluster.
For more information about this option, see the description in Section 5.1.2, “Command Options”.
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
This release was withdrawn after production and should no longer be used.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.18-ndb-6.2.0, which includes all bugfixes and feature changes which were added in the mainline 5.1.18 release; information about these can be found in Section C.1.9, “Changes in MySQL 5.1.18 (08 May 2007)”.
Upgrading to MySQL 5.1.18-ndb-6.2.1 from a previous release.
The internal specifications for columns in
NDB tables changed to allow compatibility
with future MySQL Cluster and MySQL Cluster 5.1 Carrier Grade Edition releases that
are expected to implement online adding and dropping of
columns. This change is not backwards compatible with MySQL
5.1.16-ndb-6.2.0, ndb-6.1.x versions prior to MySQL
5.1.15-ndb-6.1.7, or MySQL Cluster mainline releases prior
to 5.1.18.
See the related note in Section 15.5.2, “Cluster Upgrade and Downgrade Compatibility”, for important information prior to upgrading a MySQL Cluster to MySQL 5.1.15-ndb-6.1.7 or later from MySQL 5.1.15-ndb-6.1.6 or an earlier ndb-6.1.x release.
See also Bug#28205.
Bugs fixed:
MySQL Cluster: Multiple operations involving deletes followed by reads were not handled correctly.
This issue could also affect MySQL Cluster Replication.
Cluster API:
Using NdbBlob::writeData() to write data in
the middle of an existing blob value (that is, updating the
value) could overwrite some data past the end of the data to be
changed.
(Bug#27018)
Incorrect handling of fragmentation in a node takeover during a restart could cause stale data to be copied to the starting node, leading eventually to failure of the node. (Bug#27434)
An incorrect assertion was made when sending a
TCKEYFAILREF or TCKEYCONF
message to a failed data node.
(Bug#26814)
This is a new Beta development release, fixing recently discovered bugs.
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 has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change:
Scheduled events now use the MySQL server time zone to determine
their schedules, rather than UTC as in previous releases.
Because of this change, scheduled event metadata now includes
time zone information, which can be seen in the
TIME_ZONE column of the
INFORMATION_SCHEMA.EVENTS table and the
Time zone column in the output of the
SHOW EVENTS statement. These columns have
been added in this release, along with a
time_zone column in the
mysql.event table. Due to these changes,
events created in previous versions of MySQL cannot be created,
viewed, or used until mysql.event has been
upgraded.
(Bug#16420)
Important Change:
The CREATE EVENT and ALTER
EVENT statements now support a
DEFINER clause, similar to that used in the
CREATE TRIGGER statement.
See Section 20.2.2, “CREATE EVENT Syntax”, for detailed information.
(Bug#16425)
Important Change: The following options for controlling replication master configuration on a slave are now deprecated.
--master-host
--master-user
--master-password
--master-port
--master-connect-retry
--master-ssl
--master-ssl-ca
--master-ssl-capath
--master-ssl-cert
--master-ssl-cipher
--master-ssl-key
To change the master configuration on a slave you should use the
CHANGE MASTER statement.
See also Bug#21490
MySQL Cluster:
Added the --skip-table-check option (short form
-s) for ndb_restore, which
causes the restoration process to ignore any changes that may
have occurred in table schemas after the backup was made.
Previously, this was the default behavior.
See Section 15.8.3, “ndb_restore — Restore a Cluster Backup”, for more information. (Bug#24363)
Added a --no-beep option to
mysqladmin. It suppresses the warning beep
that is emitted by default for errors such as a failure to
connect to the server.
(Bug#26964)
Added the --service-startup-timeout option for
mysql.server to specify how long to wait for
the server to start. If the server does not start within the
timeout period, mysql.server exits with an
error.
(Bug#26952)
Prefix lengths for columns in SPATIAL indexes
can no longer be specified. For tables created in older versions
of MySQL that have SPATIAL indexes containing
prefixed columns, dumping and reloading the table causes the
indexes to be created with no prefixes. (The full column width
of each column is indexed.)
(Bug#26794)
Added the innodb_stats_on_metadata system
variable to enable control over whether
InnoDB performs statistics gathering when
metadata statements are executed. See
Section 12.5.4, “InnoDB Startup Options and System Variables”.
(Bug#26598)
Statements that affect mysql database tables
now are written to the binary log using the following rules:
Data manipulation statements such as
INSERT that change data in
mysql database tables directly are logged
according to the settings of the
binlog_format system variable.
Statements such as GRANT that change the
mysql database indirectly are logged as
statements regardless of the value of
binlog_format.
For more details, see
Section 5.2.4.4, “Logging Format for Changes to mysql Database Tables”.
(Bug#25091)
The server now includes a timestamp in error messages that are
logged as a result of unhandled signals (such as mysqld
got signal 11 messages).
(Bug#24878)
The syntax for index hints has been extended to enable more fine-grained control over the optimizer's selection of an execution plan for various phases of query processing. See Section 11.2.7.2, “Index Hint Syntax”. (Bug#21174)
Added the --secure-file-priv option for
mysqld, which limits the effect of the
LOAD_FILE() function and the
LOAD DATA and SELECT ... INTO
OUTFILE statements to work only with files in a given
directory.
(Bug#18628)
Added the thread_handling system variable to
control whether the server use a single thread or one thread per
connection. The --one-thread option now is
deprecated; use --thread_handling=one-thread
instead.
Prepared statements now use the query cache under the conditions described in Section 6.5.4.1, “How the Query Cache Operates”. (Bug#735)
Statements such as GRANT that change the
mysql database indirectly are logged as
statements regardless of the value of
binlog_format.
Added the hostname system variable, which the
server sets at startup to the server hostname.
--master-ssl
Data manipulation statements such as INSERT
that change data in mysql database tables
directly are logged according to the settings of the
binlog_format system variable.
Added the old_mode system variable to cause
the server to revert to certain behaviors present in older
versions. Currently, this variable affects handling of index
hints. See Section 11.2.7.2, “Index Hint Syntax”.
Bugs fixed:
Incompatible Change:
INSERT DELAYED statements are not supported
for MERGE tables, but the
MERGE storage engine was not rejecting such
statements, resulting in table corruption. Applications
previously using INSERT DELAYED into
MERGE table will break when upgrading to
versions with this fix. To avoid the problem, remove
DELAYED from such statements.
(Bug#26464)
Important Note: The parser accepted invalid code in SQL condition handlers, leading to server crashes or unexpected execution behavior in stored programs. Specifically, the parser allowed a condition handler to refer to labels for blocks that enclose the handler declaration. This was incorrect because block label scope does not include the code for handlers declared within the labeled block.
The parser now rejects this invalid construct, but if you upgrade in place (without dumping and reloading your databases), existing handlers that contain the construct are still invalid — even if they appear to function as you expect — and should be rewritten.
To find affected handlers, use mysqldump to dump all stored functions and procedures, triggers, and events. Then attempt to reload them into an upgraded server. Handlers that contain illegal label references will be rejected.
For more information about condition handlers and writing them
to avoid invalid jumps, see Section 18.2.8.2, “DECLARE Handlers”.
(Bug#26503)
MySQL Cluster:
It was not possible to set
LockPagesInMainMemory equal to
0.
(Bug#27291)
MySQL Cluster: A race condition could sometimes occur if the node acting as master failed while node IDs were still being allocated during startup. (Bug#27286)
MySQL Cluster: When a data node was taking over as the master node, a race condition could sometimes occur as the node was assuming responsibility for handling of global checkpoints. (Bug#27283)
MySQL Cluster:
After putting the cluster in single user mode from one MySQL
server, trying to drop an NDB table from a
second MySQL server also connected to the cluster would cause
the second MySQL server to hang.
(Bug#27254)
MySQL Cluster: mysqld could crash shortly after a data node failure following certain DML operations. (Bug#27169)
MySQL Cluster: (Disk Data): Under some circumstances, a data node could fail during restart while flushing Disk Data UNDO logs. (Bug#27102)
MySQL Cluster: The same failed request from an API node could be handled by the cluster multiple times, resulting in reduced performance. (Bug#27087)
MySQL Cluster: The failure of a data node while restarting could cause other data nodes to hang or crash. (Bug#27003)
MySQL Cluster: Creating a table on one SQL node while in single user mode caused other SQL nodes to crash. (Bug#26997)
MySQL Cluster: mysqld processes would sometimes crash under high load. (Bug#26825)
MySQL Cluster:
Using only the --print_data option (and no
other options) with ndb_restore caused
ndb_restore to fail.
(Bug#26741)
This regression was introduced by Bug#14612
MySQL Cluster:
The output from ndb_restore
--print_data was incorrect for a
backup made of a database containing tables with
TINYINT or SMALLINT
columns.
(Bug#26740)
MySQL Cluster: An infinite loop in an internal logging function could cause trace logs to fill up with Unknown Signal type error messages and thus grow to unreasonable sizes. (Bug#26720)
MySQL Cluster:
An invalid pointer was returned following a
FSCLOSECONF signal when accessing the REDO
logs during a node restart or system restart.
(Bug#26515)
MySQL Cluster:
(Disk Data): ALTER TABLE ... ADD COLUMN ...
on a Disk Data table moved data for existing non-indexed columns
from the tablespace into memory.
(Bug#25880)
MySQL Cluster:
The management client command
displayed
the message node_id STATUSNode when node_id:
not connectednode_id
was not the node ID of a data node.
The ALL STATUS command in the cluster
management client still displays status information for data
nodes only. This is by design. See
Section 15.7.2, “Commands in the MySQL Cluster Management Client”, for more
information.
MySQL Cluster: When performing an upgrade or downgrade, no specific error information was made available when trying to upgrade data nodes or SQL nodes before upgrading management nodes. (Bug#21296)
MySQL Cluster:
Some values of MaxNoOfTables caused the error
Job buffer congestion to occur.
(Bug#19378)
Disk Data: A memory overflow could occur with tables having a large amount of data stored on disk, or with queries using a very high degree of parallelism on Disk Data tables. (Bug#26514)
Disk Data:
Use of a tablespace whose INITIAL_SIZE was
greater than 1 GB could cause the cluster to crash.
(Bug#26487)
Disk Data: Creating multiple Disk Data tables using different tablespaces could sometimes cause the cluster to fail. (Bug#25992)
Disk Data:
DROP INDEX on a Disk Data table did not
always move data from memory into the tablespace.
(Bug#25877)
Disk Data:
When creating a log file group, setting
INITIAL_SIZE to less than
UNDO_BUFFER_SIZE caused data nodes to crash.
(Bug#25743)
Cluster Replication: The simultaneous failure of a data node and an SQL node could cause replication to fail. (Bug#27005)
Cluster API: A delete operation using a scan followed by an insert using a scan could cause a data node to fail. (Bug#27203)
Cluster API:
(Cluster APIs): NAND and
NOR operations with
NdbScanFilter did not perform correctly.
(Bug#24568)
Cluster API:
You can now use the
ndb_mgm_check_connection() function to
determine whether a management server is running. See
ndb_mgm_check_connection().
SELECT ... INTO OUTFILE with a long
FIELDS ENCLOSED BY value could crash the
server.
(Bug#27231)
An INSERT ... ON DUPLICATE KEY UPDATE
statement might modify values in a table but not flush affected
data from the query cache, causing subsequent selects to return
stale results. This made the combination of query cache plus
ON DUPLICATE KEY UPDATE very unreliable.
(Bug#27210)
This regression was introduced by Bug#19978
For INSERT ... ON DUPLICATE KEY UPDATE
statements on tables containing
AUTO_INCREMENT columns,
LAST_INSERT_ID() was reset to 0
if no rows were successfully inserted or changed. “Not
changed” includes the case where a row was updated to its
current values, but in that case,
LAST_INSERT_ID() should not be
reset to 0. Now LAST_INSERT_ID()
is reset to 0 only if no rows were successfully inserted or
touched, whether or not touched rows were changed.
(Bug#27033)
This regression was introduced by Bug#19978
Invalid optimization of pushdown conditions for queries where an outer join was guaranteed to read only one row from the outer table led to results with too few rows. (Bug#26963)
For MERGE tables defined on underlying tables
that contained a short VARCHAR column
(shorter than four characters), using ALTER
TABLE on at least one but not all of the underlying
tables caused the table definitions to be considered different
from that of the MERGE table, even if the
ALTER TABLE did not change the definition.
(Bug#26881)
Use of a subquery containing GROUP BY and
WITH ROLLUP caused a server crash.
(Bug#26830)
Setting event_scheduler=1 or
event_scheduler=ON caused the server to crash
if the server had been started with
--skip-grant-tables. Starting the server with
--skip-grant-tables now causes
event_scheduler to be set to
DISABLED automatically, overriding any other
value that may have been set.
(Bug#26807)
Added support for --debugger=dbx for
mysql-test-run.pl and fixed support for
--debugger=devenv,
--debugger=DevEnv, and
--debugger=.
(Bug#26792)/path/to/devenv
A result set column formed by concatention of string literals
was incomplete when the column was produced by a subquery in the
FROM clause.
(Bug#26738)
SSL connections failed on Windows. (Bug#26678)
When using the result of
SEC_TO_TIME() for time value
greater than 24 hours in an ORDER BY clause,
either directly or through a column alias, the rows were sorted
incorrectly as strings.
(Bug#26672)
Use of a subquery containing a UNION with an
invalid ORDER BY clause caused a server
crash.
(Bug#26661)
In some error messages, inconsistent format specifiers were used for the translations in different languages. comp_err (the error message compiler) now checks for mismatches. (Bug#26571)
Views that used a scalar correlated subquery returned incorrect results. (Bug#26560)
UNHEX() IS NULL comparisons failed when
UNHEX() returned
NULL.
(Bug#26537)
On 64-bit Windows, large timestamp values could be handled incorrectly. (Bug#26536)
SHOW CREATE EVENT failed to display the
STARTS and ENDS clauses
for an event defined with STARTS NOW(),
ENDS NOW(), or both.
(Bug#26429)
If the server was started with
--skip-grant-tables, Selecting from
INFORMATION_SCHEMA tables causes a server
crash.
(Bug#26285)
For some values of the position argument, the
INSERT() function could insert a
NUL byte into the result.
(Bug#26281)
For an INSERT statement that should fail due
to a column with no default value not being assigned a value,
the statement succeeded with no error if the column was assigned
a value in an ON DUPLICATE KEY UPDATE clause,
even if that clause was not used.
(Bug#26261)
INSERT DELAYED statements inserted incorrect
values into BIT columns.
(Bug#26238)
A query of type index_merge, and with a
WHERE clause having the form WHERE
on a partitioned table caused the server to crash.
(Bug#26117)indexed_column_1=value_1
OR
indexed_column_2=value_2
A multiple-row delayed insert with an auto-increment column could cause duplicate entries to be created on the slave in a replication environment. (Bug#26116, Bug#25507)
BENCHMARK() did not work
correctly for expressions that produced a
DECIMAL result.
(Bug#26093)
For MEMORY tables, extending the length of a
VARCHAR column with ALTER
TABLE might result in an unusable table.
(Bug#26080)
The server could hang during binary log rotation. (Bug#26079)
LOAD DATA INFILE sent an okay to the client
before writing the binary log and committing the changes to the
table had finished, thus violating ACID requirements.
(Bug#26050)
X() IS NULL and Y() IS
NULL comparisons failed when
X() and
Y() returned
NULL.
(Bug#26038)
Indexes on TEXT columns were ignored when
ref accesses were evaluated.
(Bug#25971)
If a thread previously serviced a connection that was killed, excessive memory and CPU use by the thread occurred if it later serviced a connection that had to wait for a table lock. (Bug#25966)
VIEW restrictions were applied to
SELECT statements after a CREATE
VIEW statement failed, as though the
CREATE had succeeded.
(Bug#25897)
Several deficiencies in resolution of column names for
INSERT ... SELECT statements were corrected.
(Bug#25831)
Inserting utf8 data into a
TEXT column that used a single-byte character
set could result in spurious warnings about truncated data.
(Bug#25815)
On Windows, debug builds of mysqld could fail with heap assertions. (Bug#25765)
In certain cases it could happen that deleting a row corrupted
an RTREE index. This affected indexes on
spatial columns.
(Bug#25673)
Using mysqlbinlog on a binary log would crash if there were a large number of row-based events related to a single statement. (Bug#25628)
Expressions involving SUM(),
when used in an ORDER BY clause, could lead
to out-of-order results.
(Bug#25376)
Use of a GROUP BY clause that referred to a
stored function result together with WITH
ROLLUP caused incorrect results.
(Bug#25373)
A stored procedure that made use of cursors failed when the procedure was invoked from a stored function. (Bug#25345)
On Windows, the server exhibited a file-handle leak after reaching the limit on the number of open file descriptors. (Bug#25222)
The REPEAT() function did not
allow a column name as the count
parameter.
(Bug#25197)
Duplicating the usage of a user variable in a stored procedure or trigger would not be replicated correctly to the slave. (Bug#25167)
A reference to a non-existent column in the ORDER
BY clause of an UPDATE ... ORDER BY
statement could cause a server crash.
(Bug#25126)
A view on a join is insertable for INSERT
statements that store values into only one table of the join.
However, inserts were being rejected if the inserted-into table
was used in a self-join because MySQL incorrectly was
considering the insert to modify multiple tables of the view.
(Bug#25122)
Creating a table with latin characters in the name caused the
output of SHOW FULL TABLES to have
ERROR for the table type.
(Bug#25081)
MySQL would not compile when configured using
--without-query-cache.
(Bug#25075)
It was not possible to use XPath keywords as tag names for
expressions used in the
ExtractValue() function.
(Bug#24747)
Increasing the width of a DECIMAL column
could cause column values to be changed.
(Bug#24558)
IF(expr,
unsigned_expr,
unsigned_expr) was evaluated to a
signed result, not unsigned. This has been corrected. The fix
also affects constructs of the form IS [NOT]
{TRUE|FALSE}, which were transformed internally into
IF() expressions that evaluated
to a signed result.
For existing views that were defined using IS [NOT]
{TRUE|FALSE} constructs, there is a related
implication. The definitions of such views were stored using the
IF() expression, not the
original construct. This is manifest in that SHOW
CREATE VIEW shows the transformed
IF() expression, not the
original one. Existing views will evaluate correctly after the
fix, but if you want SHOW CREATE VIEW to
display the original construct, you must drop the view and
re-create it using its original definition. New views will
retain the construct in their definition.
(Bug#24532)
DROP TRIGGER statements would not be filtered
on the slave when using the
replication-wild-do-table option.
(Bug#24478)
For INSERT ... ON DUPLICATE KEY UPDATE
statements where some AUTO_INCREMENT values
were generated automatically for inserts and some rows were
updated, one auto-generated value was lost per updated row,
leading to faster exhaustion of the range of the
AUTO_INCREMENT column.
Because the original problem can affect replication (different values on master and slave), it is recommended that the master and its slaves be upgraded to the current version. (Bug#24432)
SHOW ENGINE MUTEX STATUS failed to produce an
Unknown table engine error.
A user-defined variable could be assigned an incorrect value if a temporary table was employed in obtaining the result of the query used to determine its value. (Bug#24010)
mysqlimport used a variable of the wrong type
for the --use-threads option, which could cause
a crash on some architectures.
(Bug#23814)
Queries that used a temporary table for the outer query when evaluating a correlated subquery could return incorrect results. (Bug#23800)
Replication between master and slave would infinitely retry
binary log transmission where the
max_allowed_packet on the master was larger
than that on the slave if the size of the transfer was between
these two values.
(Bug#23775)
On Windows, debug builds of mysqlbinlog could fail with a memory error. (Bug#23736)
When using certain server SQL modes, the
mysql.proc table was not created by
mysql_install_db.
(Bug#23669)
DOUBLE values such as
20070202191048.000000 were being treated as
illegal arguments by WEEK().
(Bug#23616)
The server could crash if two or more threads initiated query cache resize operation at moments very close in time. (Bug#23527)
NOW() returned the wrong value
in statements executed at server startup with the
--init-file option.
(Bug#23240)
Setting the slow_query_log_file system
variable caused log output to go tothe general log, not the slow
query log.
(Bug#23225)
When nesting stored procedures within a trigger on a table, a
false dependency error was thrown when one of the nested
procedures contained a DROP TABLE statement.
(Bug#22580)
Instance Manager did not remove the angel PID file on a clean shutdown. (Bug#22511)
EXPLAIN EXTENDED did not show
WHERE conditions that were optimized away.
(Bug#22331)
IN ((,
subquery))IN (((,
and so forth, are equivalent to subquery)))IN
(, which is always
interpreted as a table subquery (so that it is allowed to return
more than one row). MySQL was treating the
“over-parenthesized” subquery as a single-row
subquery and rejecting it if it returned more than one row. This
bug primarily affected automatically generated code (such as
queries generated by Hibernate), because humans rarely write the
over-parenthesized forms.
(Bug#21904)subquery)
An INSERT trigger invoking a stored routine
that inserted into a table other than the one on which the
trigger was defined would fail with a Table '...'
doesn't exist referring to the second table when
attempting to delete records from the first table.
(Bug#21825)
CURDATE() is less than
NOW(), either when comparing
CURDATE() directly
(CURDATE() < NOW() is true) or when
casting CURDATE() to
DATE (CAST(CURDATE() AS DATE) <
NOW() is true). However, storing
CURDATE() in a
DATE column and comparing
incorrectly yielded false. This is fixed by comparing a
col_name < NOW()DATE column as DATETIME
for comparisons to a DATETIME constant.
(Bug#21103)
When a stored routine attempted to execute a statement accessing a nonexistent table, the error was not caught by the routine's exception handler. (Bug#20713, Bug#8407)
For a stored procedure containing a SELECT
statement that used a complicated join with an
ON expression, the expression could be
ignored during re-execution of the procedure, yielding an
incorrect result.
(Bug#20492)
The conditions checked by the optimizer to allow use of indexes
in IN predicate calculations were
unnecessarily tight and were relaxed.
(Bug#20420)
When a TIME_FORMAT() expression
was used as a column in a GROUP BY clause,
the expression result was truncated.
(Bug#20293)
The creation of MySQL system tables was not checked for by mysql-test-run.pl. (Bug#20166)
For index reads, the BLACKHOLE engine did not
return end-of-file (which it must because
BLACKHOLE tables contain no rows), causing
some queries to crash.
(Bug#19717)
For , the result
could be incorrect if expr
IN(value_list)BIGINT UNSIGNED values
were used for expr or in the value
list.
(Bug#19342)
When attempting to call a stored procedure creating a table from
a trigger on a table tbl in a database
db, the trigger failed with ERROR
1146 (42S02): Table 'db.tbl' doesn't exist. However,
the actual reason that such a trigger fails is due to the fact
that CREATE TABLE causes an implicit
COMMIT, and so a trigger cannot invoke a
stored routine containing this statement. A trigger which does
so now fails with ERROR 1422 (HY000): Explicit or
implicit commit is not allowed in stored function or
trigger, which makes clear the reason for the
trigger's failure.
(Bug#18914)
While preparing prepared statements, the server acquired unnecessary table write locks. (Bug#18326)
The update columns for INSERT ... SELECT ... ON
DUPLICATE KEY UPDATE could be assigned incorrect
values if a temporary table was used to evaluate the
SELECT.
(Bug#16630)
For SUBSTRING() evaluation using
a temporary table, when
SUBSTRING() was used on a
LONGTEXT column, the max_length metadata
value of the result was incorrectly calculated and set to 0.
Consequently, an empty string was returned instead of the
correct result.
(Bug#15757)
Loading data using LOAD DATA INFILE may not
replicate correctly (due to character set incompatibilities) if
the character_set_database variable is set
before the data is loaded.
(Bug#15126)
User defined variables used within stored procedures and triggers are not replicated correctly when operating in statement-based replication mode. (Bug#14914, Bug#20141)
Local variables in stored routines or triggers, when declared as
the BIT type, were interpreted as strings.
(Bug#12976)
For some operations, system tables in the
mysql database must be accessed. For example,
the HELP statement requires the contents of
the server-side help tables, and
CONVERT_TZ() might need to read
the time zone tables. However, to perform such operations while
a LOCK TABLES statement is in effect, the
server required you to also lock the requisite system tables
explicitly or a lock error occurred:
mysql>LOCK TABLE t1 READ;Query OK, 0 rows affected (0.02 sec) mysql>HELP HELP;ERROR 1100 (HY000) at line 4: Table 'help_topic' was not locked with LOCK TABLES
Now, the server implicitly locks the system tables for reading as necessary so that you need not lock them explicitly. These tables are treated as just described:
mysql.help_category mysql.help_keyword mysql.help_relation mysql.help_topic mysql.proc mysql.time_zone mysql.time_zone_leap_second mysql.time_zone_name mysql.time_zone_transition mysql.time_zone_transition_type
If you want to explicitly place a WRITE lock
on any of those tables with a LOCK TABLES
statement, the table must be the only one locked; no other table
can be locked with the same statement.
(Bug#9953)
This is a new Beta development release, fixing recently discovered bugs.
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 has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
After release, a trigger failure problem was found to have been introduced. (Bug#27006) Users affected by this issue should upgrade to MySQL 5.1.17, which corrects the problem.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Cluster API: Incompatible Change:
The AbortOption type is now a member of the
NdbOperation class; its values and behavior
have also changed.
NdbTransaction::AbortOption can no longer be
used, and applications written against the NDB API may need to
be rewritten and recompiled to accomodate these changes. For
more information about this change, see
The NdbOperation::AbortOption Type.
This also affects the behavior of the
NdbTransaction::execute() method, which now
reports failure only if the transaction was actually aborted.
See NdbTransaction::execute(), for more
information.
MySQL Cluster:
Previously, when a data node failed more than 8 times in
succession to start, this caused a forced shutdown of the
cluster. Now, when a data node fails to start 7 consecutive
times, the node will not start again until it is started with
the --initial option, and a warning to this
effect is written to the error log.
(Bug#25984)
MySQL Cluster:
In the event that all cluster management and API nodes are
configured with ArbitrationRank=0,
ndb_mgmd now issues the following warning
when starting: Cluster configuration warning: Neither
MGM nor API nodes are configured with arbitrator, may cause
complete cluster shutdown in case of host failure.
(Bug#23546)
MySQL Cluster: A number of new and more descriptive error messages covering transporter errors were added. (Bug#22025)
MySQL Cluster:
A new configuration parameter
MemReportFrequency allows for additional
control of data node memory usage. Previously, only warnings at
predetermined percentages of memory allocation were given;
setting this parameter allows for that behavior to be
overridden. For more information, see
Section 15.4.4.5, “Defining Data Nodes”.
Cluster API:
A new ndb_mgm_get_clusterlog_loglevel()
function was added to the MGM API.
For more information, see
ndb_mgm_get_clusterlog_loglevel().
The localhost anonymous user account created
during MySQL installation on Windows now has no global
privileges. Formerly this account had all global privileges. For
operations that require global privileges, the
root account can be used instead.
(Bug#24496)
In the INFORMATION_SCHEMA
REFERENTIAL_CONSTRAINTS table, the
UNIQUE_CONSTRAINT_NAME column incorrectly
named the referenced table. Now it names the referenced
constraint, and a new column,
REFERENCED_TABLE_NAME, names the referenced
table.
(Bug#21713)
RAND() now allows non-constant
initializers (such as a column name) as its argument. In this
case, the seed is initialized with the value for each invocation
of RAND(). (One implication of
this is that for equal argument values,
RAND() will return the same
value each time.)
(Bug#6172)
Added the --auto-generate-sql-load-type and
--auto-generate-sql-write-number options for
mysqlslap.
The bundled yaSSL library was upgraded to version 1.5.8.
Bugs fixed:
Security Fix:
Using an INFORMATION_SCHEMA table with
ORDER BY in a subquery could cause a server
crash.
We would like to thank Oren Isacson of Flowgate Security Consulting and Stefan Streichsbier of SEC Consult for informing us of this problem. (Bug#24630, Bug#26556, CVE-2007-1420)
MySQL Cluster: An inadvertent use of unaligned data caused ndb_restore to fail on some 64-bit platforms, including Sparc and Itanium-2. (Bug#26739)
MySQL Cluster: The InvalidUndoBufferSize error used the same error code (763) as the IncompatibleVersions error. InvalidUndoBufferSize now uses its own error code (779). (Bug#26490)
MySQL Cluster:
The failure of a data node when restarting it with
--initial could lead to failures of subsequent
data node restarts.
(Bug#26481)
MySQL Cluster: Takeover for local checkpointing due to multiple failures of master nodes was sometimes incorrectly handled. (Bug#26457)
MySQL Cluster:
The LockPagesInMemory parameter was not read
until after distributed communication had already started
between cluster nodes. When the value of this parameter was
1, this could sometimes result in data node
failure due to missed heartbeats.
(Bug#26454)
MySQL Cluster: Under some circumstances, following the restart of a management node, all data nodes would connect to it normally, but some of them subsequently failed to log any events to the management node. (Bug#26293)
MySQL Cluster: Condition pushdown did not work with prepared statements. (Bug#26225)
MySQL Cluster: (Replication): Under some circumstances, the binlog thread could shut down while the slave SQL thread was still using it. (Bug#26015, Bug#26019)
MySQL Cluster:
A query with an IN clause against an
NDB table employing explicit user-defined
partitioning did not always return all matching rows.
(Bug#25821)
MySQL Cluster: No appropriate error message was provided when there was insufficient REDO log file space for the cluster to start. (Bug#25801)
MySQL Cluster:
An UPDATE using an IN
clause on an NDB table on which there was a
trigger caused mysqld to crash.
(Bug#25522)
MySQL Cluster:
A memory allocation failure in SUMA (the
cluster Subscription Manager) could cause the cluster to crash.
(Bug#25239)
MySQL Cluster:
The ndb_size.tmpl file (necessary for using
the ndb_size.pl script) was missing from
binary distributions.
(Bug#24191)
MySQL Cluster:
The message Error 0 in readAutoIncrementValue(): no
Error was written to the error log whenever
SHOW TABLE STATUS was performed on a Cluster
table that did not have an AUTO_INCREMENT
column.
This improves on and supersedes an earlier fix that was made for this issue in MySQL 5.1.12.
MySQL Cluster: When a node failed due to there being insufficient disk space to perform a local checkpoint, there was no indication that this was the source of the problem. Such a condition now produces an appropriate error message. (Bug#20121)
MySQL Cluster: (Replication): The error message Last_Errno: 4294967295, Error in Write_rows event now supplies a valid error code. (Bug#19896)
MySQL Cluster:
In the event that cluster backup parameters such as
BackupWriteSize were incorrectly set, no
appropriate error was issued to indicate that this was the case.
(Bug#19146)
Cluster API: Disk Data:
A delete and a read performed in the same operation could cause
one or more data nodes to crash. This could occur when the
operation affected more than 5 columns concurrently, or when one
or more of the columns was of the VARCHAR
type and was stored on disk.
(Bug#25794)
Cluster API:
After defining a delete operation (using
NdbOperation::deleteTuple()) on a nonexistent
primary key of a table having a BLOB or
TEXT column, invoking
NdbTransaction::execute() caused the calling
application to enter an endless loop rather than raising an
error.
This issue also affected ndb_restore; when
restoring tables containing BLOB or
TEXT columns, this could cause it to consume
all available memory and then crash.
(Bug#24028)
Cluster API:
libndbclient.so was not versioned.
(Bug#13522)
Using ORDER BY or GROUP BY
could yield different results when selecting from a view and
selecting from the underlying table.
(Bug#26209)
DISTINCT queries that were executed using a
loose scan for an InnoDB table that had been
emptied caused a server crash.
(Bug#26159)
A WHERE clause that used
BETWEEN for
DATETIME values could be treated differently
for a SELECT and a view defined as that
SELECT.
(Bug#26124)
Collation for LEFT JOIN comparisons could be
evaluated incorrectly, leading to improper query results.
(Bug#26017)
A memory leak could cause problems during a node or cluster shutdown or failure. (Bug#25997)
The WITH CHECK OPTION clause for views was
ignored for updates of multiple-table views when the updates
could not be performed on fly and the rows to update had to be
put into temporary tables first.
(Bug#25931)
LOAD DATA INFILE did not work with pipes.
(Bug#25807)
The SEC_TO_TIME() and
QUARTER() functions sometimes
did not handle NULL values correctly.
(Bug#25643)
View definitions that used the ! operator
were treated as containing the NOT operator,
which has a different precedence and can produce different
results. .
(Bug#25580)
An error in the name resolution of nested JOIN ...
USING constructs was corrected.
(Bug#25575)
GROUP BY and DISTINCT did
not group NULL values for columns that have a
UNIQUE index. .
(Bug#25551)
The --with-readline option for
configure did not work for commercial source
packages, but no error message was printed to that effect. Now a
message is printed.
(Bug#25530)
A yaSSL program named test was installed, causing conflicts with the test system utility. It is no longer installed. (Bug#25417)
For a UNIQUE index containing many
NULL values, the optimizer would prefer the
index for conditions over other more selective indexes. .
(Bug#25407)col IS
NULL
An AFTER UPDATE trigger on an
InnoDB table with a composite primary key
caused the server to crash.
(Bug#25398)
Passing a NULL value to a user-defined
function from within a stored procedure crashes the server.
(Bug#25382)
perror crashed on some platforms due to
failure to handle a NULL pointer.
(Bug#25344)
mysql.server stop timed out too quickly (35 seconds) waiting for the server to exit. Now it waits up to 15 minutes, to ensure that the server exits. (Bug#25341)
A query that contained an EXIST subquery with
a UNION over correlated and uncorrelated
SELECT queries could cause the server to
crash.
(Bug#25219)
mysql_kill() caused a server
crash when used on an SSL connection.
(Bug#25203)
yaSSL was sensitive to the presence of whitespace at the ends of lines in PEM-encoded certificates, causing a server crash. (Bug#25189)
A query with ORDER BY and GROUP
BY clauses where the ORDER BY
clause had more elements than the GROUP BY
clause caused a memory overrun leading to a crash of the server.
(Bug#25172)
Use of ON DUPLICATE KEY UPDATE defeated the
usual restriction against inserting into a join-based view
unless only one of the underlying tables is used.
(Bug#25123)
ALTER TABLE ... ENABLE KEYS acquired a global
lock, preventing concurrent execution of other statements that
use tables. .
(Bug#25044)
OPTIMIZE TABLE caused a race condition in the
I/O cache.
(Bug#25042)
A return value of -1 from user-defined
handlers was not handled well and could result in conflicts with
server code.
(Bug#24987)
Certain joins using Range checked for each
record in the query execution plan could cause the
server to crash.
(Bug#24776)
ALTER TABLE caused loss of
CASCADE clauses for InnoDB
tables.
(Bug#24741)
If an ORDER BY or GROUP BY
list included a constant expression being optimized away and, at
the same time, containing single-row subselects that returned
more that one row, no error was reported. If a query required
sorting by expressions containing single-row subselects that
returned more than one row, execution of the query could cause a
server crash.
(Bug#24653)
For ALTER TABLE, using ORDER BY
could cause a
server crash. Now the expression ORDER BY clause allows
only column names to be specified as sort criteria (which was
the only documented syntax, anyway).
(Bug#24562)
Within stored routines or prepared statements, inconsistent
results occurred with multiple use of INSERT ... SELECT
... ON DUPLICATE KEY UPDATE when the ON
DUPLICATE KEY UPDATE clause erroneously tried to
assign a value to a column mentioned only in its
SELECT part.
(Bug#24491)
Expressions of the form (a, b) IN (SELECT a, MIN(b)
FROM t GROUP BY a) could produce incorrect results
when column a of table t
contained NULL values while column
b did not.
(Bug#24420)
If a prepared statement accessed a view, access to the tables listed in the query after that view was checked in the security context of the view. (Bug#24404)
A nested query on a partitioned table returned fewer records than on the corresponding non-partitioned table, when the subquery affected more than one partition. (Bug#24186)
Expressions of the form (a, b) IN (SELECT c, d
...) could produce incorrect results if
a, b, or both were
NULL.
(Bug#24127)
Queries that evaluate NULL IN (SELECT ... UNION SELECT
...) could produce an incorrect result
(FALSE instead of NULL).
(Bug#24085)
Some UPDATE statements were slower than in
previous versions when the search key could not be converted to
a valid value for the type of the search column.
(Bug#24035)
ISNULL(DATE(NULL)) and
ISNULL(CAST(NULL AS DATE))
erroneously returned false.
(Bug#23938)
Within a stored routine, accessing a declared routine variable
with PROCEDURE ANALYSE() caused a server
crash.
(Bug#23782)
For an InnoDB table with any ON
DELETE trigger, TRUNCATE TABLE
mapped to DELETE and activated triggers. Now
a fast truncation occurs and triggers are not activated. .
As a result of this fix, TRUNCATE TABLE now
requires the DROP privilege rather than the
DELETE privilege.
With ONLY_FULL_GROUP_BY enables, the server
was too strict: Some expressions involving only aggregate values
were rejected as non-aggregate (for example,
MAX(a) –
MIN(a)).
(Bug#23417)
The arguments to the ENCODE()
and the DECODE() functions were
not printed correctly, causing problems in the output of
EXPLAIN EXTENDED and in view definitions.
(Bug#23409)
Some queries against INFORMATION_SCHEMA that
used subqueries failed. .
(Bug#23299)
readline detection did not work correctly on
NetBSD.
(Bug#23293)
The number of setsockopt() calls performed
for reads and writes to the network socket was reduced to
decrease system call overhead.
(Bug#22943)
Storing values specified as hexadecimal values 64 or more bits
long in BIT(64), BIGINT,
or BIGINT UNSIGNED columns did not raise any
warning or error if the value was out of range.
(Bug#22533)
Type conversion errors during formation of index search conditions were not correctly checked, leading to incorrect query results. (Bug#22344)
For the IF() and
COALESCE() function and
CASE expressions, large
unsigned integer values could be mishandled and result in
warnings.
(Bug#22026)
Inserting DEFAULT into a column with no
default value could result in garbage in the column. Now the
same result occurs as when inserting NULL
into a NOT NULL column.
(Bug#20691)
Indexes disabled with ALTER TABLE ... DISABLE
KEYS could in some cases be used by specifying
FORCE INDEX.
(Bug#20604)
If a duplicate key value was present in the table,
INSERT ... ON DUPLICATE KEY UPDATE reported a
row count indicating that a record was updated, even when no
record actually changed due to the old and new values being the
same. Now it reports a row count of zero.
(Bug#19978)
ORDER BY values of the
DOUBLE or DECIMAL types
could change the result returned by a query.
(Bug#19690)
The readline library wrote to uninitialized
memory, causing mysql to crash.
(Bug#19474)
Use of already freed memory caused SSL connections to hang forever. (Bug#19209)
The server might fail to use an appropriate index for
DELETE when ORDER BY,
LIMIT, and a non-restricting
WHERE are present.
(Bug#17711)
The optimizer used a filesort rather than a
const table read in some cases when the
latter was possible.
(Bug#16590)
To enable installation of MySQL RPMs on Linux systems running RHEL 4 (which includes SE-Linux) additional information was provided to specify some actions that are allowed to the MySQL binaries. (Bug#12676)
CONNECTION is no longer treated as a reserved
word.
(Bug#12204)
The presence of ORDER BY in a view definition
prevented the MERGE algorithm from being used
to resolve the view even if nothing else in the definition
required the TEMPTABLE algorithm.
(Bug#12122)
If a slave server closed its relay log (for example, due to an error during log rotation), the I/O thread did not recognize this and still tried to write to the log, causing a server crash. (Bug#10798)
This section contains change history information for MySQL Cluster 5.1 Carrier Grade Edition releases based on MySQL 5.1.16.
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Like all releases for MySQL MySQL Cluster 5.1 Carrier Grade Edition, this is a
source-only release which you must compile and install using the
instructions found in Section 2.9, “MySQL Installation Using a Source Distribution”, and
in Section 15.4.1, “Building MySQL Cluster from Source Code”. You can download
the source code archive for this release from the MySQL FTP site
at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/mysql-5.1.16-ndb-6.2.0.
The file
mysqlcom-5.1.16-ndb-6.2.0-telco.tar.gz in
this directory contains the complete source archive.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes which were added in MySQL 5.1.15-ndb-6.1.1 as well as in the mainline 5.1.16 release; information about these can be found in Section C.1.15.23, “Changes in MySQL 5.1.15-ndb-6.1.1 (01 February 2007)”, and in Section C.1.12, “Changes in MySQL 5.1.16 (26 February 2007)”.
Upgrading to MySQL 5.1.16-ndb-6.2.0 from a previous release. This release is not binary compatible with previous MySQL MySQL Cluster 5.1 Carrier Grade Edition or mainline MySQL 5.1 releases. This means that:
You cannot perform an online upgrade to this release from any of the MySQL MySQL Cluster 5.1 Carrier Grade Edition releases based on MySQL 5.1.14 or MySQL 5.1.15, or from any of the mainline MySQL 5.1 releases. When upgrading from one of these versions, you must shut down the cluster, replace all binaries, then restart the cluster.
You must recompile all NDB API and MGM API applications used with a previous version of MySQL Cluster, including those compiled against any of the MySQL MySQL Cluster 5.1 Carrier Grade Edition releases based on MySQL 5.1.14 or MySQL 5.1.15.
Functionality added or changed:
MySQL Cluster:
An --ndb-wait-connected option has been added
for mysqld, which causes
mysqld to wait for the specified amount of
time to connect to the cluster before starting to accept MySQL
client connections.
Cluster API:
The Ndb::startTransaction() method now
provides an alternative interface for starting a transaction.
See Ndb::startTransaction(), for more
information.
Cluster API:
Methods were added to the
Ndb_cluster_connection class to faciliate
iterating over existing Ndb objects. See
ndb_cluster_connection::get_next_ndb_object(),
for more information.
It is now possible to disable arbitration by setting
ArbitrationRank equal to 0
on all nodes.
A new TcpBind_INADDR_ANY configuration
parameter allows data nodes node to bind
INADDR_ANY instead of a hostname or IP
address in the config.ini file.
Memory allocation has been improved on 32-bit architectures that
enables using close to 3GB for DataMemory and
IndexMemory combined.
This is a new Beta development release, fixing recently discovered bugs.
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 has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: MySQL Cluster:
The LockPagesInMainMemory configuration
parameter has changed its type and possible values. For more
information, see
LockPagesInMainMemory.
The values true and
false are no longer accepted for this
parameter. If you were using this parameter and had it set to
false in a previous release, you must
change it to 0. If you had this parameter
set to true, you should instead use
1 to obtain the same behavior as
previously, or 2 to take advantage of new
functionality introduced with this release, as described in
the section cited above.
Incompatible Change:
InnoDB rolls back only the last statement on
a transaction timeout. A new option,
--innodb_rollback_on_timeout, causes
InnoDB to abort and roll back the entire
transaction if a transaction timeout occurs (the same behavior
as in MySQL 5.0.13 and earlier).
(Bug#24200)
Incompatible Change:
Previously, the DATE_FORMAT()
function returned a binary string. Now it returns a string with
a character set and collation given by
character_set_connection and
collation_connection so that it can return
month and weekday names containing non-ASCII characters.
(Bug#22646)
Incompatible Change:
The following conditions apply to enabling the
read_only system variable:
If you attempt to enable read_only while
you have any explicit locks (acquired with LOCK
TABLES or have a pending transaction, an error
will occur.
If other clients hold explicit table locks or have pending
transactions, the attempt to enable
read_only blocks until the locks are
released and the transactions end. While the attempt to
enable read_only is pending, requests by
other clients for table locks or to begin transactions also
block until read_only has been set.
read_only can be enabled while you hold a
global read lock (acquired with FLUSH TABLES WITH
READ LOCK) because that does not involve table
locks.
Previously, the attempt to enable read_only
would return immediately even if explicit locks or transactions
were pending, so some data changes could occur for statements
executing in the server at the same time.
(Bug#22009, Bug#11733)
MySQL Cluster:
The NDB storage engine could leak memory
during file operations.
(Bug#21858)
On Unix, when searching the standard locations for option files, MySQL programs now also look for /etc/mysql/my.cnf after checking for /etc/my.cnf and before checking the remaining locations. (Bug#25104)
The default value of the max_connections
variable has been increased to 151 in order that Websites
running on Apache and using MySQL will not have more processes
trying to access MySQL than the default number of connections
available.
(The maximum number of Apache processes is determined by the
Apache MaxClient, which defaults to 256, but
is usually set to 150 in the httpd.conf
commonly distributed with Apache. For more information about
MaxClient, see
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients.)
(Bug#23883)
The Com_create_user status variable was added
(for counting CREATE USER statements).
(Bug#22958)
The --memlock option relies on system calls
that are unreliable on some operating systems. If a crash
occurs, the server now checks whether --memlock
was specified and if so issues some information about possible
workarounds.
(Bug#22860)
The (undocumented) UNIQUE_USERS() and
GROUP_UNIQUE_USERS() functions were
removed.
(Bug#22687)
Partitioning of tables using the FEDERATED
storage engine is no longer permitted. Attempting to create such
a table or to modify an existing table so that is uses both
partitioning and FEDERATED now fails with an
error.
(Bug#22451)
The --skip-thread-priority option now is
enabled by default for binary Mac OS X distributions. Use of
thread priorities degrades performance on Mac OS X.
(Bug#18526)
Calling a non-deterministic stored routine when using statement-based replication now throws an error. Formerly, defining such a stored routine would cause an error to be thrown. (Bug#16456)
read_only can be enabled while you hold a
global read lock (acquired with FLUSH TABLES WITH READ
LOCK) because that does not involve table locks.
When using MERGE tables the definition of
the MERGE table and the
MyISAM tables are checked each time the
tables are opened for access (including any
SELECT or INSERT
statement. Each table is compared for column order, types,
sizes and associated. If there is a difference in any one of
the tables then the statement will fail.
The bundled yaSSL library was upgraded to version 1.5.0.
Previously, duplicate-key errors were indicated by the
ER_DUP_ENTRY error code (1062). This code
is no longer used. Instead, the server returns
ER_DUP_ENTRY_WITH_KEY_NAME (1582), and the
error message indicates the name of the index for which the
duplicate occurred. Applications that test for duplicate keys
should look for both error codes if they need to be compatible
with current and older servers.
See also Bug#28842
Remote servers for use with the FEDERATED
storage engine now can be managed with the new
CREATE/ALTER/DROP SERVER syntax.
Added the --disable-grant-options option to
configure. If configure is
run with this option, the --bootstrap,
--skip-grant-tables, and
--init-file options for
mysqld are disabled and cannot be used. For
Windows, the configure.js script recognizes
the DISABLE_GRANT_OPTIONS flag, which has the
same effect.
If other clients hold explicit table locks or have pending
transactions, the attempt to enable read_only
blocks until the locks are released and the transactions end.
While the attempt to enable read_only is
pending, requests by other clients for table locks or to begin
transactions also block until read_only has
been set.
If you attempt to enable read_only while you
have any explicit locks (acquired with LOCK
TABLES or have a pending transaction, an error will
occur.
Bugs fixed:
Incompatible Change:
For ENUM columns that had enumeration values
containing commas, the commas were mapped to
0xff internally. However, this rendered the
commas indistinguishable from true 0xff
characters in the values. This no longer occurs. However, the
fix requires that you dump and reload any tables that have
ENUM columns containing any true
0xff values. Dump the tables using
mysqldump with the current server before
upgrading from a version of MySQL 5.1 older than 5.1.15 to
version 5.1.15 or newer.
(Bug#24660)
MySQL Cluster:
It was not possible to create an NDB table
with a key on two VARCHAR columns where both
columns had a storage length in excess of 256.
(Bug#25746)
MySQL Cluster: Hosts in clusters with large numbers of nodes could experience excessive CPU usage while obtaining configuration data. (Bug#25711)
MySQL Cluster: In some circumstances, shutting down the cluster could cause connected mysqld processes to crash. (Bug#25668)
MySQL Cluster:
Non-32-bit, non-aligned columns were not handled correctly in
explicitly partitioned NDB tables.
(Bug#25587)
MySQL Cluster:
Some aggregate queries such as SELECT
COUNT(*) performed a table scan on
NDB tables rather than checking table
statistics, causing such queries to perform much more slowly in
MySQL Cluster 5.1 than in 5.0.
(Bug#25567)
MySQL Cluster:
Memory allocations for TEXT columns were
calculated incorrectly, resulting in space being wasted and
other issues.
(Bug#25562)
MySQL Cluster: The failure of a master node during a node restart could lead to a resource leak, causing later node failures. (Bug#25554)
MySQL Cluster: The failure of a node during a local checkpoint could lead to other node failures. (Bug#25468)
MySQL Cluster: (Replication): Connecting a mysqld to a cluster where not all nodes were running, starting the remaining cluster nodes, and then disconnecting from the cluster caused the mysqld process to crash. (Bug#25387)
MySQL Cluster: A node shutdown occurred if the master failed during a commit. (Bug#25364)
MySQL Cluster:
Creating a non-unique index with the USING
HASH clause silently created an ordered index instead
of issuing a warning.
(Bug#24820)
MySQL Cluster: ndb_config failed when trying to use 2 management servers and node IDs. (Bug#23887)
MySQL Cluster:
When a data node was shut down using the management client
STOP command, a connection event
(NDB_LE_Connected) was logged instead of a
disconnection event (NDB_LE_Disconnected).
(Bug#22773)
MySQL Cluster: The management server did not handle logging of node shutdown events correctly in certain cases. (Bug#22013)
MySQL Cluster:
SELECT statements with a
BLOB or TEXT column in the
selected column list and a WHERE condition
including a primary key lookup on a VARCHAR
primary key produced empty result sets.
(Bug#19956)
MySQL Cluster: When stopping and restarting multiple data nodes, the last node to be restarted would sometimes hang in Phase 100. (Bug#19645)
Disk Data: Following 3 or more missed local checkpoints by a cluster node, a restart of the node caused incorrect undo information to be used for Disk Data tables. (Bug#25636)
Disk Data:
MEDIUMTEXT columns of Disk Data tables were
stored in memory rather than on disk, even if the columns were
not indexed.
(Bug#25001)
Disk Data: Performing a node restart with a newly dropped Disk Data table could lead to failure of the node during the restart. (Bug#24917)
Disk Data:
Changing a column specification or issuing a
TRUNCATE statement on a Disk Data table
caused the table to become an in-memory table.
(Bug#24667, Bug#25296)
Disk Data: When restoring from backup a cluster containing any Disk Data tables with hidden primary keys, a node failure resulted which could lead to a crash of the cluster. (Bug#24166)
Disk Data:
Repeated CREATE, DROP, or
TRUNCATE in various combinations with system
restarts between these operations could lead to the eventual
failure of a system restart.
(Bug#21948)
Disk Data:
Extents that should have been available for re-use following a
DROP TABLE operation were not actually made
available again until after the cluster had performed a local
checkpoint.
(Bug#17605)
Cluster Replication: Certain errors in replication setups could lead to unexpected node failures. (Bug#25755)
Cluster Replication: Connecting an API node to the cluster during a node restart while performing database operations could cause the restarting node to fail. (Bug#25329)
Cluster Replication: Following a restart of the master cluster, the latest GCI was set to 0 upon reconnection to the slave. (Bug#21806)
Cluster API:
Deletion of an Ndb_cluster_connection object
took a very long time.
(Bug#25487)
Cluster API:
Invoking the NdbTransaction::execute() method
using execution type Commit and abort option
AO_IgnoreError could lead to a crash of the
transaction coordinator (DBTC).
(Bug#25090)
Cluster API: A unique index lookup on a non-existent tuple could lead to a data node timeout (error 4012). (Bug#25059)
Cluster API:
When using the NdbTransaction::execute()
method, a very long timeout (greater than 5 minutes) could
result if the last data node being polled was disconnected from
the cluster.
(Bug#24949)
Cluster API: Due to an error in the computation of table fragment arrays, some transactions were not executed from the correct starting point. (Bug#24914)
mysqltest_embedded crashed at startup. (Bug#25890)
Referencing an ambiguous column alias in an expression in the
ORDER BY clause of a query caused the server
to crash.
(Bug#25427)
Some problems uncovered by Valgrind were fixed. (Bug#25396)
Using a view in combination with a USING
clause caused column aliases to be ignored.
(Bug#25106)
A multiple-table DELETE QUICK could sometimes
cause one of the affected tables to become corrupted.
(Bug#25048)
An assertion failed incorrectly for prepared statements that
contained a single-row uncorrelated subquery that was used as an
argument of the IS NULL
predicate.
(Bug#25027)
In the INFORMATION_SCHEMA.KEY_COLUMN_USAGE
table, the value displayed for the
REFERENCED_TABLE_NAME column was the table
name as encoded for disk storage, not the actual table name.
(Bug#25026)
The REPEAT() function could
return NULL when passed a column for the
count argument.
(Bug#24947)
mysql_upgrade failed if the
--password (or -p) option
was given.
(Bug#24896)
Accessing a fixed record format table with a crashed key definition results in server/myisamchk segmentation fault. (Bug#24855)
mysqld_multi and
mysqlaccess looked for option files in
/etc even if the
--sysconfdir option for
configure had been given to specify a
different directory.
(Bug#24780)
If there was insufficient memory available to mysqld, this could sometimes cause the server to hang during startup. (Bug#24751)
Optimizations that are legal only for subqueries without tables
and WHERE conditions were applied for any
subquery without tables.
(Bug#24670)
Under certain rare circumstances, local checkpoints were not performed properly, leading to an inability to restart one or more data nodes. (Bug#24664)
A workaround was implemented to avoid a race condition in the
NPTL pthread_exit() implementation.
(Bug#24507)
Under some circumstances, a REORGANIZE
PARTITION statement could crash
mysqld.
(Bug#24502)
mysqltest crashed with a stack overflow. (Bug#24498)
Using row-based replication to replicate to a table having at
least one extra BIT column with a default
value on the slave as compared to the master could cause the
slave to fail.
(Bug#24490)
Attempts to access a MyISAM table with a
corrupt column definition caused a server crash.
(Bug#24401)
ALTER ENABLE KEYS or ALTER TABLE
DISABLE KEYS combined with another ALTER
TABLE option other than RENAME TO
did nothing. In addition, if ALTER TABLE was used on a table
having disabled keys, the keys of the resulting table were
enabled.
(Bug#24395)
When opening a corrupted .frm file during a
query, the server crashes.
(Bug#24358)
The --extern option for
mysql-test-run.pl did not function correctly.
(Bug#24354)
Some joins in which one of the joined tables was a view could return erroneous results or crash the server. (Bug#24345)
The mysql.server script used the source command, which is less portable than the . command; it now uses . instead. (Bug#24294)
A view was not handled correctly if the
SELECT part contained “
\Z ”.
(Bug#24293)
mysql_install_db did not create the
mysql.plugin table if strict SQL mode was
enabled.
(Bug#24270)
A query using WHERE
could
cause the server to crash.
(Bug#24261)unsigned_column NOT IN
('negative_value')
ALTER TABLE statements that performed both
RENAME TO and {ENABLE|DISABLE}
KEYS operations caused a server crash.
(Bug#24219)
When SET PASSWORD was written to the binary
log double quotes were included in the statement. If the slave
was running in with the server SQL mode set to
ANSI_QUOTES, then the event failed, which
halted the replication process.
(Bug#24158)
A FETCH statement using a cursor on a table
which was not in the table cache could sometimes cause the
server to crash.
(Bug#24117)
Hebrew-to-Unicode conversion failed for some characters. Definitions for the following Hebrew characters (as specified by the ISO/IEC 8859-8:1999) were added: LEFT-TO-RIGHT MARK (LRM), RIGHT-TO-LEFT MARK (RLM) (Bug#24037)
On HP-UX, mysqltest (non-thread-safe) crashed
due to being linked against a thread-safe
libmysys library.
(Bug#23984)
The server was built even when configure was
run with the --without-server option.
(Bug#23973)
The MySQL 5.1.12 binaries for Windows were missing the
FEDERATED, EXAMPLE, and
BLACKHOLE storage engines.
(Bug#23900)
ROW_COUNT() did not work
properly as an argument to a stored procedure.
(Bug#23760)
When reading from the standard input on Windows, mysqlbinlog opened the input in text mode rather than binary mode and consequently misinterpreted some characters such as Control-Z. (Bug#23735)
A stored procedure, executed from a connection using a binary character set, and which wrote multibyte data, would write incorrectly escaped entries to the binary log. This caused syntax errors, and caused replication to fail. (Bug#23619, Bug#24492)
OPTIMIZE TABLE tried to sort R-tree indexes
such as spatial indexes, although this is not possible (see
Section 11.5.2.5, “OPTIMIZE TABLE Syntax”).
(Bug#23578)
The row count for MyISAM tables was not
updated properly, causing SHOW TABLE STATUS
to report incorrect values.
(Bug#23526)
The Instance Manager DROP INSTANCE command
did not work.
(Bug#23476)
User-defined variables could consume excess memory, leading to a
crash caused by the exhaustion of resources available to the
MEMORY storage engine, due to the fact that
this engine is used by MySQL for variable storage and
intermediate results of GROUP BY queries.
Where SET had been used, such a condition
could instead give rise to the misleading error message
You may only use constant expressions with
SET, rather than Out of memory (Needed
NNNNNN bytes).
(Bug#23443)
A table created with the ROW_FORMAT = FIXED
table option lost the option if an index was added or dropped
with CREATE INDEX or DROP
INDEX.
(Bug#23404)
A deadlock could occur, with the server hanging on
Closing tables, with a sufficient number of
concurrent INSERT DELAYED, FLUSH
TABLES, and ALTER TABLE operations.
(Bug#23312)
Accuracy was improved for comparisons between
DECIMAL columns and numbers represented as
strings.
(Bug#23260)
The Instance Manager STOP INSTANCE command
took too much time and caused Instance Manager to be
unresponsive.
(Bug#23215)
If there was insufficient memory to store or update a blob
record in a MyISAM table then the table will
marked as crashed.
(Bug#23196)
A compressed MyISAM table that became
corrupted could crash myisamchk and possibly
the MySQL Server.
(Bug#23139)
Using CREATE TABLE ... SELECT and rolling
back the transaction would leave an empty table on the master,
but the instructions would not be recorded in the binary log and
therefore replicated to the slave. This would result in a
difference between the master and slave databases. An implicit
commit has been added to ensure consistency.
(Bug#22865)
CREATE TABLE ... SELECT statements were not
rolled back correctly. As part of the fix, such a statement now
causes an implicit commit before and after it is executed.
However, it does not cause a commit when used to create a
temporary table.
(Bug#22864)
mysql_upgrade failed when called with a
basedir pathname containing spaces.
(Bug#22801)
Using INSTALL PLUGIN followed by a restart of
the server caused an error due to memory not being properly
initialized.
(Bug#22694)
SET lc_time_names = allowed only exact literal values, not expression
values.
(Bug#22647)value
Changes to the lc_time_names system variable
were not replicated.
(Bug#22645)
A partitioned table that used the DATA
DIRECTORY option, where the data directory was the
same as the directory in which the table definition file
resided, became corrupted following ALTER TABLE
ENGINE=ARCHIVE. This was actually due to an issue with
the ARCHIVE storage engine, and not with
partitioned tables in general.
(Bug#22634)
The STDDEV() function returned a
positive value for data sets consisting of a single value.
(Bug#22555)
SHOW COLUMNS reported some NOT
NULL columns as NULL.
(Bug#22377)
A server crash occurred when using LOAD DATA
to load a table containing a NOT NULL spatial
column, when the statement did not load the spatial column. Now
a NULL supplied to NOT NULL column error
occurs.
(Bug#22372)
An ALTER TABLE statement that used a
RENAME clause in combination with a
MODIFY or CHANGE that did
not actually change the table (for example, when it changed a
column's type from INT to
INT). The behavior caused by this bug
differed according to whether or not the storage engine used by
the table was transactional or non-transactional. For
transactional tables (such as those using the
InnoDB storage engine), the statement simply
failed; for non-transactional tables (such as those using the
MyISAM storage engine), the ALTER
TABLE statement succeeding renaming the table, but
subsequent SELECT statements against the
renamed table would fail.
(Bug#22369)
The Instance Manager STOP INSTANCE command
could not be applied to instances in the
Crashed, Failed, or
Abandoned state.
(Bug#22306)
DATE_ADD() requires complete
dates with no “zero” parts, but sometimes did not
return NULL when given such a date.
(Bug#22229)
Some small double precision numbers (such as
1.00000001e-300) that should have been
accepted were truncated to zero.
(Bug#22129)
Changing the value of MI_KEY_BLOCK_LENGTH in
myisam.h and recompiling MySQL resulted in
a myisamchk that saw existing
MyISAM tables as corrupt.
(Bug#22119)
For a nonexistent table, DROP TEMPORARY TABLE
failed with an incorrect error message if
read_only was enabled.
(Bug#22077)
A crash of the MySQL Server could occur when unpacking a
BLOB column from a row in a corrupted MyISAM
table. This could happen when trying to repair a table using
either REPAIR TABLE or
myisamchk; it could also happen when trying
to access such a “broken” row using statements like
SELECT if the table was not marked as
crashed.
(Bug#22053)
The code for generating USE statements for
binary logging of CREATE PROCEDURE statements
resulted in confusing output from mysqlbinlog
for DROP PROCEDURE statements.
(Bug#22043)
STR_TO_DATE() returned
NULL if the format string contained a space
following a non-format character.
(Bug#22029)
It was possible to use DATETIME values whose
year, month, and day parts were all zeroes but whose hour,
minute, and second parts contained nonzero values, an example of
such an illegal DATETIME being
'0000-00-00 11:23:45'.
This fix was reverted in MySQL 5.1.18.
See also Bug#25301
SSL connections could hang at connection shutdown. (Bug#21781, Bug#24148)
yaSSL crashed on pre-Pentium Intel CPUs. (Bug#21765)
Using FLUSH TABLES in one connection while
another connection is using HANDLER
statements caused a server crash.
This fix was reverted in MySQL 5.1.22
See also Bug#29474
The FEDERATED storage engine did not support
the euckr character set.
(Bug#21556)
InnoDB crashed while performing XA recovery
of prepared transactions.
(Bug#21468)
It was possible to set the backslash character (“
\ ”) as the delimiter character using
DELIMITER, but not actually possible to use
it as the delimiter.
(Bug#21412)
Using ALTER TABLE to convert a
CSV table containing NULL
values to MyISAM resulted in warnings.
(Bug#21328)
When updating a table that used a JOIN of the
table itself (for example, when building trees) and the table
was modified on one side of the expression, the table would
either be reported as crashed or the wrong rows in the table
would be updated.
(Bug#21310)
mysqld_error.h was not installed when only
the client libraries were built.
(Bug#21265)
InnoDB: During a restart of the MySQL Server
that followed the creation of a temporary table using the
InnoDB storage engine, MySQL failed to clean
up in such a way that InnoDB still attempted
to find the files associated with such tables.
(Bug#20867)
Selecting into variables sometimes returned incorrect wrong results. (Bug#20836)
Queries of the form SELECT ... WHERE
failed
when the server used a single-byte character set and the client
used a multi-byte character set.
(Bug#20835)string = ANY(...)
mysql_fix_privilege_tables.sql altered the
table_privs.table_priv column to contain too
few privileges, causing loss of the CREATE
VIEW and SHOW VIEW privileges.
(Bug#20589)
A stored routine containing semicolon in its body could not be reloaded from a dump of a binary log. (Bug#20396)
SELECT ... FOR UPDATE, SELECT ...
LOCK IN SHARE MODE, DELETE, and
UPDATE statements executed using a full table
scan were not releasing locks on rows that did not satisfy the
WHERE condition.
(Bug#20390)
The BUILD/check-cpu script did not recognize Celeron processors. (Bug#20061)
Unsigned BIGINT values treated as signed
values by the MOD() function.
(Bug#19955)
Compiling PHP 5.1 with the MySQL static libraries failed on some versions of Linux. (Bug#19817)
The DELIMITER statement did not work
correctly when used in an SQL file run using the
SOURCE statement.
(Bug#19799)
For SET, SELECT, and
DO statements that invoked a stored function
from a database other than the default database, the function
invocation could fail to be replicated.
(Bug#19725)
mysqltest incorrectly tried to retrieve result sets for some queries where no result set was available. (Bug#19410)
VARBINARY column values inserted on a MySQL
4.1 server had trailing zeroes following upgrade to MySQL 5.0 or
later.
(Bug#19371)
Some CASE statements inside stored routines
could lead to excessive resource usage or a crash of the server.
(Bug#19194, Bug#24854)
Instance Manager could crash during shutdown. (Bug#19044)
myisampack wrote to unallocated memory, causing a crash. (Bug#17951)
FLUSH LOGS or mysqladmin
flush-logs caused a server crash if the binary log was
not open.
(Bug#17733)
mysql_fix_privilege_tables did not handle a password containing embedded space or apostrophe characters. (Bug#17700)
No warning was issued for use of the DATA
DIRECTORY or INDEX DIRECTORY table
options on a platform that does not support them.
(Bug#17498)
The FEDERATED storage engine did not support
the utf8 character set.
(Bug#17044)
The optimizer removes expressions from GROUP
BY and DISTINCT clauses if they
happen to participate in
predicates of the
expression =
constant WHERE clause, the idea being that, if the
expression is equal to a constant, then it cannot take on
multiple values. However, for predicates where the expression
and the constant item are of different result types (for
example, when a string column is compared to 0), this is not
valid, and can lead to invalid results in such cases. The
optimizer now performs an additional check of the result types
of the expression and the constant; if their types differ, then
the expression is not removed from the GROUP
BY list.
(Bug#15881)
When a prepared statement failed during the prepare operation, the error code was not cleared when it was reused, even if the subsequent use was successful. (Bug#15518)
Dropping a user-defined function sometimes did not remove the
UDF entry from the mysql.proc table.
(Bug#15439)
Inserting a row into a table without specifying a value for a
BINARY(
column caused the column to be set to spaces, not zeroes.
(Bug#14171)N) NOT NULL
On Windows, the SLEEP() function
could sleep too long, especially after a change to the system
clock.
(Bug#14094, Bug#24686, Bug#17635)
mysqldump --order-by-primary failed if the primary key name was an identifier that required quoting. (Bug#13926)
Subqueries of the form NULL IN (SELECT ...)
returned invalid results.
(Bug#8804, Bug#23485)
This section contains change history information for MySQL Cluster 5.1 Carrier Grade Edition releases based on MySQL 5.1.15.
This is a new Beta development release, incorporating a bugfix made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, MySQL 5.1.15-ndb-6.1.13, MySQL 5.1.15-ndb-6.1.14, MySQL 5.1.15-ndb-6.1.15, MySQL 5.1.15-ndb-6.1.16, MySQL 5.1.15-ndb-6.1.17, MySQL 5.1.15-ndb-6.1.18, MySQL 5.1.15-ndb-6.1.19, MySQL 5.1.15-ndb-6.1.20, MySQL 5.1.15-ndb-6.1.21, and MySQL 5.1.15-ndb-6.1.22. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
This is a new Beta development release, incorporating a bugfix made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, MySQL 5.1.15-ndb-6.1.13, MySQL 5.1.15-ndb-6.1.14, MySQL 5.1.15-ndb-6.1.15, MySQL 5.1.15-ndb-6.1.16, MySQL 5.1.15-ndb-6.1.17, MySQL 5.1.15-ndb-6.1.18, MySQL 5.1.15-ndb-6.1.19, MySQL 5.1.15-ndb-6.1.20, and MySQL 5.1.15-ndb-6.1.21. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
This is a new Beta development release, incorporating recent bugfixes made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, MySQL 5.1.15-ndb-6.1.13, MySQL 5.1.15-ndb-6.1.14, MySQL 5.1.15-ndb-6.1.15, MySQL 5.1.15-ndb-6.1.16, MySQL 5.1.15-ndb-6.1.17, MySQL 5.1.15-ndb-6.1.18, MySQL 5.1.15-ndb-6.1.19, and MySQL 5.1.15-ndb-6.1.20. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
This is a new Beta development release, incorporating a bugfix made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, MySQL 5.1.15-ndb-6.1.13, MySQL 5.1.15-ndb-6.1.14, MySQL 5.1.15-ndb-6.1.15, MySQL 5.1.15-ndb-6.1.16, MySQL 5.1.15-ndb-6.1.17, MySQL 5.1.15-ndb-6.1.18, and MySQL 5.1.15-ndb-6.1.19. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
This is a new Beta development release, incorporating recent feature enhancements since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, MySQL 5.1.15-ndb-6.1.13, MySQL 5.1.15-ndb-6.1.14, MySQL 5.1.15-ndb-6.1.15, MySQL 5.1.15-ndb-6.1.16, MySQL 5.1.15-ndb-6.1.17, and MySQL 5.1.15-ndb-6.1.18. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Functionality added or changed:
MySQL Cluster: Whenever a TCP send buffer is over 80% full, temporary error 1218 (Send Buffers overloaded in NDB kernel) is now returned. See SendBufferMemory for more information.
An INFO event is now sent if the time between
global checkpoints is excessive, or if DUMP
7901 is issued in the management client.
This is a new Beta development release, fixing recently discovered bugs in the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, MySQL 5.1.15-ndb-6.1.13, MySQL 5.1.15-ndb-6.1.14, MySQL 5.1.15-ndb-6.1.15, MySQL 5.1.15-ndb-6.1.16, and MySQL 5.1.15-ndb-6.1.17. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
MySQL Cluster: When restarting a data node, queries could hang during that node's start phase 5, and continue only after the node had entered phase 6. (Bug#29364)
Disk Data: Disk data meta-information that existed in ndbd might not be visible to mysqld. (Bug#28720)
Disk Data: The number of free extents was incorrectly reported for some tablespaces. (Bug#28642)
Storage engine error conditions in row-based replication were not correctly reported to the user. (Bug#29570)
This is a new Beta development release, fixing recently discovered bugs in the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, MySQL 5.1.15-ndb-6.1.13, MySQL 5.1.15-ndb-6.1.14, MySQL 5.1.15-ndb-6.1.15, and MySQL 5.1.15-ndb-6.1.16. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Functionality added or changed:
Cluster Replication:
Batching of updates on cluster replication slaves, enabled using
the --slave-allow-batching option for
mysqld.
Bugs fixed:
MySQL Cluster: Replica redo logs were inconsistently handled during a system restart. (Bug#29354)
This is a new Beta development release, fixing recently discovered bugs in the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, MySQL 5.1.15-ndb-6.1.13, MySQL 5.1.15-ndb-6.1.14, and MySQL 5.1.15-ndb-6.1.15. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
MySQL Cluster:
When a node failed to respond to a COPY_GCI
signal as part of a global checkpoint, the master node was
killed instead of the node that actually failed.
(Bug#29331)
MySQL Cluster:
An invalid comparison made during REDO
validation that could lead to an Error while reading
REDO log condition.
(Bug#29118)
MySQL Cluster: The wrong data pages were sometimes invalidated following a global checkpoint. (Bug#29067)
MySQL Cluster:
If at least 2 files were involved in REDO
invalidation, then file 0 of page 0 was not updated and so
pointed to an invalid part of the redo log.
(Bug#29057)
Disk Data: When dropping a page, the stack's bottom entry could sometime be left “cold” rather than “hot”, violating the rules for stack pruning. (Bug#29176)
This is a new Beta development release, fixing a recently discovered bug in the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, MySQL 5.1.15-ndb-6.1.13, and MySQL 5.1.15-ndb-6.1.14. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
MySQL Cluster:
Memory corruption could occur due to a problem in the
DBTUP kernel block.
(Bug#29229)
This is a new Beta development release, incorporating bugfixes made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, MySQL 5.1.15-ndb-6.1.12, and MySQL 5.1.15-ndb-6.1.13. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
MySQL Cluster:
In the event that two data nodes in the same node group and
participating in a GCP crashed before they had written their
respective P0.sysfile files,
QMGR could refuse to start, issuing an
invalid Insufficient nodes for restart
error instead.
(Bug#29167)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, MySQL 5.1.15-ndb-6.1.11, and MySQL 5.1.15-ndb-6.1.12. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Functionality added or changed:
Read ahead was implemented for backups of Disk Data tables, resulting in a 10 to 15% increase in backup speed of Disk Data tables. (Bug#29099)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, MySQL 5.1.15-ndb-6.1.10, and MySQL 5.1.15-ndb-6.1.11. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Functionality added or changed:
Bugs fixed:
MySQL Cluster:
It is now possible to set the maximum size of the allocation
unit for table memory using the MaxAllocate
configuration parameter.
(Bug#29044)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, MySQL 5.1.15-ndb-6.1.9, and MySQL 5.1.15-ndb-6.1.10. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Functionality added or changed:
Important Change: MySQL Cluster:
The TimeBetweenWatchdogCheckInitial
configuration parameter was added to allow setting of a separate
watchdog timeout for memory allocation during startup of the
data nodes. See Section 15.4.4.5, “Defining Data Nodes”,
for more information.
(Bug#28899)
MySQL Cluster:
A new configuration parameter ODirect causes
NDB to attempt using
O_DIRECT writes for LCP, backups, and redo
logs, often lowering CPU usage.
It is now possible to set the size of redo log files (fragment
log files) using the FragmentLogFileSize
configuration parameter.
Bugs fixed:
MySQL Cluster: Having large amounts of memory locked caused swapping to disk. (Bug#28751)
MySQL Cluster: LCP files were not removed following an initial system restart. (Bug#28726)
Disk Data:
Repeated INSERT and DELETE
operations on a Disk Data table having one or more large
VARCHAR columns could cause data nodes to
fail.
(Bug#20612)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, MySQL 5.1.15-ndb-6.1.8, and MySQL 5.1.15-ndb-6.1.9. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Functionality added or changed:
MySQL Cluster:
A new times printout was added in the
ndbd watchdog thread.
MySQL Cluster: Some unneeded printouts in the ndbd out file were removed.
The names of some log and other files were changed to avoid issues with the tar command's 99-character filename limit.
Bugs fixed:
MySQL Cluster: A regression in the heartbeat monitoring code could lead to node failure under high load. This issue affected MySQL 5.1.19 and MySQL 5.1.15-ndb-6.1.10 only. (Bug#28783)
MySQL Cluster: A corrupt schema file could cause a File already open error. (Bug#28770)
MySQL Cluster:
Setting InitialNoOpenFiles equal to
MaxNoOfOpenFiles caused an error. This was
due to the fact that the actual value of
MaxNoOfOpenFiles as used by the cluster was
offset by 1 from the value set in
config.ini.
(Bug#28749)
MySQL Cluster:
A race condition could result when non-master nodes (in addition
to the master node) tried to update active status due to a local
checkpoint (that is, between NODE_FAILREP and
COPY_GCIREQ events). Now only the master
updates the active status.
(Bug#28717)
MySQL Cluster: A fast global checkpoint under high load with high usage of the redo buffer caused data nodes to fail. (Bug#28653)
Disk Data:
When loading data into a cluster following a version upgrade,
the data nodes could forcibly shut down due to page and buffer
management failures (that is, ndbrequire
failures in PGMAN).
(Bug#28525)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, MySQL 5.1.15-ndb-6.1.7, and MySQL 5.1.15-ndb-6.1.8. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, MySQL 5.1.15-ndb-6.1.6, and MySQL 5.1.15-ndb-6.1.7. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Bugs fixed:
MySQL Cluster:
Local checkpoint files relating to dropped
NDB tables were not removed.
(Bug#28348)
MySQL Cluster:
Repeated insertion of data generated by
mysqldump into NDB tables
could eventually lead to failure of the cluster.
(Bug#27437)
Disk Data: Extremely large inserts into Disk Data tables could lead to data node failure in some circumstances. (Bug#27942)
Cluster API:
In a multi-operation transaction, a delete operation followed by
the insertion of an implicit NULL failed to
overwrite an existing value.
(Bug#20535)
Setting MaxNoOfTables very low and relative
to DataMemory caused Out of memory
in Ndb Kernel errors when inserting relatively small
amounts of data into NDB tables.
(Bug#24173)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, MySQL 5.1.15-ndb-6.1.5, and MySQL 5.1.15-ndb-6.1.6. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Upgrading to MySQL 5.1.15-ndb-6.1.7 from a previous release.
The internal specifications for columns in
NDB tables has changed to allow
compatibility with future MySQL Cluster and MySQL Cluster 5.1 Carrier Grade Edition
releases that are expected to implement online adding and
dropping of columns. This change is not backwards compatible
with MySQL 5.1.16-ndb-6.2.0, ndb-6.1.x versions prior to
MySQL 5.1.15-ndb-6.1.7, or MySQL Cluster mainline releases
prior to 5.1.18.
See the related note in Section 15.5.2, “Cluster Upgrade and Downgrade Compatibility”, for important information prior to upgrading a MySQL Cluster to MySQL 5.1.15-ndb-6.1.7 or later from MySQL 5.1.15-ndb-6.1.6 or an earlier ndb-6.1.x release.
See also Bug#28205.
Functionality added or changed:
Cluster Replication: Incompatible Change:
The schema for the ndb_apply_status table in
the mysql system database has changed. When
upgrading to this release from a previous MySQL Cluster 5.1 Carrier Grade Edition or
mainline MySQL 5.1 release, you must drop the
mysql.ndb_apply_status table, then restart
the server in order for the table to be re-created with the new
schema.
See Section 15.10.4, “Cluster Replication Schema and Tables”, for additional information.
Bugs fixed:
MySQL Cluster: The cluster waited 30 seconds instead of 30 milliseconds before reading table statistics. (Bug#28093)
MySQL Cluster: Under certain rare circumstances, ndbd could get caught in an infinite loop when one transaction took a read lock and then a second transaction attempted to obtain a write lock on the same tuple in the lock queue. (Bug#28073)
MySQL Cluster: Under some circumstances, a node restart could fail to update the Global Checkpoint Index (GCI). (Bug#28023)
MySQL Cluster:
Under certain rare circumstances performing a DROP
TABLE or TRUNCATE on an
NDB table could cause a node failure or
forced cluster shutdown.
(Bug#27581)
MySQL Cluster: Memory usage of a mysqld process grew even while idle. (Bug#27560)
MySQL Cluster: Performing a delete followed by an insert during a local checkpoint could cause a Rowid already allocated error. (Bug#27205)
Replication: Some queries that updated multiple tables were not backed up correctly. (Bug#27748)
Cluster Replication: Disk Data: An issue with replication of Disk Data tables could in some cases lead to node failure. (Bug#28161)
Disk Data: Changes to a Disk Data table made as part of a transaction could not be seen by the client performing the changes until the transaction had been committed. (Bug#27757)
Disk Data: When restarting a data node following the creation of a large number of Disk Data objects (approximately 200 such objects), the cluster could not assign a node ID to the restarting node. (Bug#25741)
Disk Data:
Changing a column specification or issuing a
TRUNCATE statement on a Disk Data table
caused the table to become an in-memory table.
This fix supersedes an incomplete fix that was made for this issue in MySQL 5.1.15. (Bug#24667, Bug#25296)
Cluster Replication: It was possible for API nodes to begin interacting with the cluster subscription manager before they were fully connected to the cluster. (Bug#27728)
Cluster Replication: Under very high loads, checkpoints could be read or written with checkpoint indexes out of order. (Bug#27651)
Cluster API:
An issue with the way in which the
NdbDictionary::Dictionary::listEvents()
method freed resources could sometimes lead to memory
corruption.
(Bug#27663)
An INSERT followed by a delete
DELETE on the same NDB
table caused a memory leak.
(Bug#27756)
This regression was introduced by Bug#20612
mysqldump could not dump log tables. (Bug#26121)
The --with-readline option for
configure did not work for commercial source
packages, but no error message was printed to that effect. Now a
message is printed.
(Bug#25530)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, MySQL 5.1.15-ndb-6.1.4, and MySQL 5.1.15-ndb-6.1.5. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Functionality added or changed:
Cluster Replication: Incompatible Change:
The schema for the ndb_apply_status table in
the mysql system database has changed. When
upgrading to this release from a previous MySQL Cluster 5.1 Carrier Grade Edition or
mainline MySQL 5.1 release, you must drop the
mysql.ndb_apply_status table, then restart
the server in order for the table to be re-created with the new
schema.
See Section 15.10.4, “Cluster Replication Schema and Tables”, for additional information.
Bugs fixed:
MySQL Cluster: A data node failing while another data node was restarting could leave the cluster in an inconsistent state. In certain rare cases, this could lead to a race condition and the eventual forced shutdown of the cluster. (Bug#27466)
MySQL Cluster:
It was not possible to set
LockPagesInMainMemory equal to
0.
(Bug#27291)
MySQL Cluster: A race condition could sometimes occur if the node acting as master failed while node IDs were still being allocated during startup. (Bug#27286)
MySQL Cluster: When a data node was taking over as the master node, a race condition could sometimes occur as the node was assuming responsibility for handling of global checkpoints. (Bug#27283)
MySQL Cluster: mysqld could crash shortly after a data node failure following certain DML operations. (Bug#27169)
MySQL Cluster: The same failed request from an API node could be handled by the cluster multiple times, resulting in reduced performance. (Bug#27087)
MySQL Cluster: The failure of a data node while restarting could cause other data nodes to hang or crash. (Bug#27003)
MySQL Cluster: mysqld processes would sometimes crash under high load.
This fix improves on and replaces a fix for this bug that was made in MySQL 5.1.15-ndb-6.1.5.
Disk Data:
DROP INDEX on a Disk Data table did not
always move data from memory into the tablespace.
(Bug#25877)
Cluster Replication:
Trying to replicate a large number of frequent updates with a
relatively small relay log
(max-relay-log-size set to 1M or less) could
cause the slave to crash.
(Bug#27529)
Cluster API:
An issue with the way in which the
NdbDictionary::Dictionary::listEvents()
method freed resources could sometimes lead to memory
corruption.
(Bug#27663)
Cluster API: A delete operation using a scan followed by an insert using a scan could cause a data node to fail. (Bug#27203)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, MySQL 5.1.15-ndb-6.1.3, and MySQL 5.1.15-ndb-6.1.4. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Upgrading to MySQL 5.1.15-ndb-6.1.5 from a previous release. This release is not binary compatible with releases previous to MySQL 5.1.15-ndb-6.1.3. This means that:
You cannot perform an online upgrade to this release from MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, or any of the mainline MySQL 5.1 releases. When upgrading from one of these versions, you must shut down the cluster, replace all binaries, then restart the cluster.
You must recompile all NDB API and MGM API applications used with a previous version of MySQL Cluster, including those compiled against MySQL 5.1.15-ndb-6.1.3.
This release is also not backwards compatible with MySQL
5.1.15-ndb-6.1.14 or any release previous to MySQL
5.1.15-ndb-6.1.14 due to changes in the
mysql system database. See
Functionality added or changed for
more information.
Functionality added or changed:
Cluster Replication: Incompatible Change:
The schema for the ndb_apply_status table in
the mysql system database has changed. When
upgrading to this release from a previous MySQL Cluster 5.1 Carrier Grade Edition or
mainline MySQL 5.1 release, you must drop the
mysql.ndb_apply_status table, then restart
the server in order for the table to be re-created with the new
schema.
See Section 15.10.4, “Cluster Replication Schema and Tables”, for additional information.
Bugs fixed:
MySQL Cluster: Creating a table on one SQL node while in single user mode caused other SQL nodes to crash. (Bug#26997)
MySQL Cluster: mysqld processes would sometimes crash under high load.
This fix was reverted in MySQL 5.1.15-ndb-6.1.6.
MySQL Cluster: An infinite loop in an internal logging function could cause trace logs to fill up with Unknown Signal type error messages and thus grow to unreasonable sizes. (Bug#26720)
Disk Data:
When creating a log file group, setting
INITIAL_SIZE to less than
UNDO_BUFFER_SIZE caused data nodes to crash.
(Bug#25743)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
This was a testing release only, and not distributed to customers.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, and MySQL 5.1.15-ndb-6.1.3. This version also incorporates all bugfixes and feature changes which were added in the mainline MySQL 5.1 releases up to and including 5.1.15 (see Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”).
Upgrading to MySQL 5.1.15-ndb-6.1.4 from a previous release. This release is not binary compatible with previous releases. This means that:
You cannot perform an online upgrade to this release from MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, MySQL 5.1.15-ndb-6.1.2, or any of the mainline MySQL 5.1 releases. When upgrading from one of these versions, you must shut down the cluster, replace all binaries, then restart the cluster.
You must recompile all NDB API and MGM API applications used with a previous version of MySQL Cluster, including those compiled against MySQL 5.1.15-ndb-6.1.3.
Functionality added or changed:
MySQL Cluster:
An --ndb-wait-connected option has been added
for mysqld. It causes
mysqld wait a specified amount of time to be
connected to the cluster before accepting client connections.
See
here,
for more information.
Cluster API:
It is now possible to specify the transaction coordinator when
starting a transaction. See
Ndb::startTransaction(), for more
information.
Cluster API:
It is now possible to iterate over all existing
Ndb objects using three new methods of the
Ndb_cluster_connection class:
lock_ndb_objects()
get_next_ndb_object()
unlock_ndb_objects()
For more information about these methods and their use, see
ndb_cluster_connection::get_next_ndb_object(),
in the MySQL Cluster API Guide.
Data node memory allocation has been improved. On 32-bit
platforms, it should now be possible to use close to 3GB RAM for
IndexMemory and DataMemory
combined.
Bugs fixed:
MySQL Cluster:
Using only the --print_data option (and no
other options) with ndb_restore caused
ndb_restore to fail.
(Bug#26741)
This regression was introduced by Bug#14612
MySQL Cluster: An inadvertent use of unaligned data caused ndb_restore to fail on some 64-bit platforms, including Sparc and Itanium-2. (Bug#26739)
Assigning a node ID greater than 63 to an SQL node caused an out of bounds error in mysqld. It should now be possible to assign to SQL nodes node IDs up to 255. (Bug#26663)
This is a new Beta development release, fixing recently discovered bugs and incorporating improvements made since the previous MySQL Cluster 5.1 Carrier Grade Edition release.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, and MySQL 5.1.15-ndb-6.1.2. This version also incorporates all bugfixes and feature changes which were added in the mainline 5.1.15 release; information about these can be found in Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”.
Upgrading to MySQL 5.1.15-ndb-6.1.3 from a previous release. This release is not binary compatible with releases previous to MySQL 5.1.15-ndb-6.1.2. This means that:
You cannot perform an online upgrade to this release from MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, or any of the mainline MySQL 5.1 releases. When upgrading from one of these versions, you must shut down the cluster, replace all binaries, then restart the cluster.
However, you can perform an
online upgrade of a Cluster running MySQL
5.1.15-ndb-6.1.2 to MySQL 5.1.15-ndb-6.1.3, using the
rolling upgrade procedure described in
Section 15.5.1, “Performing a Rolling Restart of the Cluster”. You
should replace all binaries for all data nodes,
management nodes, and SQL nodes as part of this
process. When upgrading the data nodes, you will need
to restart each data with the
--initial option.
You must recompile all NDB API and MGM API applications used with a previous version of MySQL Cluster, including those compiled against MySQL 5.1.15-ndb-6.1.2.
Functionality added or changed:
MySQL Cluster: The ndbd_redo_log_reader utility is now part of the default build. For more information, see Section 15.9.11, “ndbd_redo_log_reader — Check and Print Content of Cluster Redo Log”.
Cluster API:
A new listEvents() method has been added to
the Dictionary class. See
Dictionary::listEvents(), for more
information.
The ndb_show_tables utility now displays information about table events. See Section 15.9.14, “ndb_show_tables — Display List of NDB Tables”, for more information.
It is now possible to disable arbitration by setting
ArbitrationRank=0 on all management and SQL
nodes.
Bugs fixed:
MySQL Cluster:
An invalid pointer was returned following a
FSCLOSECONF signal when accessing the REDO
logs during a node restart or system restart.
(Bug#26515)
MySQL Cluster: The InvalidUndoBufferSize error used the same error code (763) as the IncompatibleVersions error. InvalidUndoBufferSize now uses its own error code (779). (Bug#26490)
MySQL Cluster:
The failure of a data node when restarting it with
--initial could lead to failures of subsequent
data node restarts.
(Bug#26481)
MySQL Cluster: Takeover for local checkpointing due to multiple failures of master nodes was sometimes incorrectly handled. (Bug#26457)
MySQL Cluster:
The LockPagesInMemory parameter was not read
until after distributed communication had already started
between cluster nodes. When the value of this parameter was
1, this could sometimes result in data node
failure due to missed heartbeats.
(Bug#26454)
MySQL Cluster: Under some circumstances, following the restart of a management node, all data nodes would connect to it normally, but some of them subsequently failed to log any events to the management node. (Bug#26293)
MySQL Cluster: No appropriate error message was provided when there was insufficient REDO log file space for the cluster to start. (Bug#25801)
MySQL Cluster:
A memory allocation failure in SUMA (the
cluster Subscription Manager) could cause the cluster to crash.
(Bug#25239)
MySQL Cluster:
The message Error 0 in readAutoIncrementValue(): no
Error was written to the error log whenever
SHOW TABLE STATUS was performed on a Cluster
table that did not have an AUTO_INCREMENT
column.
This improves on and supersedes an earlier fix that was made for this issue in MySQL 5.1.12.
Disk Data: A memory overflow could occur with tables having a large amount of data stored on disk, or with queries using a very high degree of parallelism on Disk Data tables. (Bug#26514)
Disk Data:
Use of a tablespace whose INITIAL_SIZE was
greater than 1 GB could cause the cluster to crash.
(Bug#26487)
This is a new Beta development release, fixing a recently discovered bug.
Like all releases for MySQL MySQL Cluster 5.1 Carrier Grade Edition, this is a
source-only release which you must compile and install using the
instructions found in Section 2.9, “MySQL Installation Using a Source Distribution”, and
in Section 15.4.1, “Building MySQL Cluster from Source Code”. You can download
the source code archive for this release from the MySQL FTP site
at ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/mysql-5.1.15-ndb-6.1.2.
The file
mysqlcom-5.1.15-ndb-6.1.2-telco.tar.gz in
this directory contains the complete source archive.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This Beta release is a hotfix release, made to resolve a single critical issue which occurred in MySQL 5.1.15-ndb-6.1.1-beta. It incorporates all bugfixes and feature changes made in MySQL 5.1.14-ndb-6.1.0 and MySQL 5.1.15-ndb-6.1.1. This version also incorporates all bugfixes and feature changes which were added in the mainline 5.1.15 release; information about these can be found in Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”.
Upgrading to MySQL 5.1.15-ndb-6.1.2 from a previous release. This release is not binary compatible with any previous releases. This means that:
You cannot perform an online upgrade to this release from MySQL 5.1.14-ndb-6.1.0, MySQL 5.1.15-ndb-6.1.1, or any of the mainline MySQL 5.1 releases. You must shut down the cluster, replace all binaries, then restart the cluster.
You must recompile any MySQL Cluster API applications used with a previous version of MySQL Cluster. This includes all NDB API and MGM API applications.
Bugs fixed:
MySQL Cluster: Using node IDs greater than 48 could sometimes lead to incorrect memory access and a subsequent forced shutdown of the cluster. (Bug#26267)
This is a new Beta development release, fixing recently discovered bugs.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied in this Beta release since the release of MySQL Cluster 5.1.14-ndb-6.1.0. This version also incorporates all bugfixes and feature changes which were added in the mainline 5.1.15 release; information about these can be found in Section C.1.14, “Changes in MySQL 5.1.15 (25 January 2007)”.
Upgrading to MySQL 5.1.15-ndb-6.1.1 from a previous release. This release is not binary compatible with any previous releases. This means that:
You cannot perform an online upgrade to this release from either MySQL 5.1.14-ndb-6.1.0 or from any of the mainline MySQL 5.1 releases. You must shut down the cluster, replace all binaries, then restart the cluster.
You must recompile any MySQL Cluster API applications used with a previous version of MySQL Cluster. This includes all NDB API and MGM API applications.
Functionality added or changed:
MySQL Cluster: A single cluster can now support up to 255 API nodes, including MySQL servers acting as SQL nodes. See Section 15.13.8, “Issues Exclusive to MySQL Cluster”, for more information.
Bugs fixed:
Cluster API: Disk Data:
A delete and a read performed in the same operation could cause
one or more data nodes to crash. This could occur when the
operation affected more than 5 columns concurrently, or when one
or more of the columns was of the VARCHAR
type and was stored on disk.
(Bug#25794)
A memory leak could cause problems during a node or cluster shutdown or failure. (Bug#25997)
An element could sometimes be inserted twice into the hash table, causing a data node to crash. (Bug#25286)
This is a new Beta development release, fixing recently discovered bugs.
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 has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Cluster Replication: Incompatible Change: Two major changes have taken place with regard to the MySQL Cluster system tables. These are:
The cluster database is no longer used.
The tables formerly found in the
cluster database are now in the
mysql database, and have been renamed
as ndb_binlog_index,
ndb_apply_status, and
ndb_schema.
The mysql.ndb_apply_status and
mysql.ndb_schema tables (formerly
cluster.apply_status and
cluster.schema are now created by
ndb_restore, in the event that they do
not already exist on the slave cluster.
When upgrading from versions of MySQL previous to 5.1.14 to
5.1.14 or later, mysql_fix_privilege_tables
merely creates a new mysql.ndb_binlog_index
table, but does not remove the existing
cluster database (or, if upgrading from
MySQL 5.1.7 or earlier, the existing
cluster_replication database), nor any of
the tables in it.
For more information, see Section 15.10.4, “Cluster Replication Schema and Tables”. (Bug#14612)
Cluster Replication: Incompatible Change:
The cluster database is no longer used. The
tables formerly found in the cluster database
are now in the mysql database, and have been
renamed as ndb_binlog_index,
ndb_apply_status, and
ndb_schema.
Incompatible Change:
The prepared_stmt_count system variable has
been converted to the Prepared_stmt_count
global status variable (viewable with the SHOW GLOBAL
STATUS statement).
(Bug#23159)
Incompatible Change:
Previously, you could create a user-defined function (UDF) or
stored function with the same name as a built-in function, but
could not invoke the UDF. Now an error occurs if you try to
create such a UDF. The server also now generates a warning if
you create a stored function with the same name as a built-in
function. It is not considered an error to create a stored
function with the same name as a built-in function because you
can invoke the function using
syntax. However, the server now generates a warning in this
case.
db_name.func_name()
See Section 7.2.4, “Function Name Parsing and Resolution”, for the rules describing how the server interprets references to different kinds of functions. (Bug#22619, Bug#18239)
MySQL Cluster: Backup messages are now printed to the Cluster log. (Bug#24544)
MySQL Cluster:
Setting the configuration parameter
LockPagesInMainMemory had no effect.
(Bug#24461)
MySQL Cluster: The error message Management server closed connection, when recorded in the MySQL error log, now includes a timestamp indicating when the error took place. (Bug#21519)
MySQL Cluster:
It is now possible to create a unique hashed index on a column
that is not defined as NOT NULL.
This change applies only to tables using the
NDB storage engine.
Unique indexes on columns in NDB tables do
not store null values because they are mapped to primary keys in
an internal index table (and primary keys cannot contain nulls).
Normally, an additional ordered index is created when one
creates unique indexes on NDB table columns;
this can be used to search for NULL values.
However, if USING HASH is specified when such
an index is created, no ordered index is created.
The reason for permitting unique hash indexes with null values
is that, in some cases, the user wants to save space if a large
number of records are pre-allocated but not fully initialized.
This also assumes that the user will not
try to search for null values. Since MySQL does not support
indexes that are not allowed to be searched in some cases, the
NDB storage engine uses a full table scan
with pushed conditions for the referenced index columns to
return the correct result.
A warning is returned if one creates a unique nullable hash
index, since the query optimizer should be provided a hint not
to use it with NULL values if this can be
avoided.
(Bug#21507)
MySQL Cluster: (Disk Data): The output of mysqldump now includes by default all tablespace and logfile group definitions used by any tables or databases that are dumped.
The working of the --all-tablespaces or
-Y option for mysqldump
remains unaffected by this change.
DROP TRIGGER now supports an IF
EXISTS clause.
(Bug#23703)
Direct and indirect usage of stored routines, user-defined
functions, and table references is now prohibited in
CREATE EVENT and ALTER
EVENT statements.
See Section 20.2.2, “CREATE EVENT Syntax”, and
Section 20.2.1, “ALTER EVENT Syntax”, for more specific information.
(Bug#22830)
The XPath operators < and
>, as implemented in the
ExtractValue() function,
operated in reverse.
With this fix, all standard XPath comparison operators should
now be supported correctly for use with the
ExtractValue() and
UpdateXML() functions.
(Bug#22823)
For the mysql client, display of result set
metadata now is enabled with the
--column-type-info option rather than with
--debug-info/-T.
Bugs fixed:
MySQL Cluster: The failure of a data node failure during a schema operation could lead to additional node failures. (Bug#24752)
MySQL Cluster: A committed read could be attempted before a data node had time to connect, causing a timeout error. (Bug#24717)
MySQL Cluster: The simultaneous shutdown of mysqld and ndbd processes caused unnecessary locking. (Bug#24655)
MySQL Cluster: The failure of the master node in a node group during the allocation of node IDs could cause ndb_mgmd to hang. (Bug#24543)
MySQL Cluster: In certain rare cases, a data node could crash due to a typographical error in the MySQL Cluster source code. (Bug#24476)
MySQL Cluster:
Creating a new tables containing a BLOB
column when the server was short of memory could cause the
server to crash.
(Bug#24470)
MySQL Cluster: Sudden disconnection of an SQL or data node could lead to shutdown of data nodes with the error failed ndbrequire. (Bug#24447)
MySQL Cluster:
Any statement following the execution of CREATE TABLE
... LIKE (where
ndb_table ndb_table was a table using the
NDB storage engine), would cause the
mysql client to hang.
(Bug#24301)
MySQL Cluster: (Disk Data): Excessive fragmentation of Disk Data files (including log files and data files) could occur during the course of normal use. (Bug#24143)
MySQL Cluster:
When the management client command ALL RESTART
-i was executed while one data node was not running,
all data nodes in the cluster were shut down.
(Bug#24105)
MySQL Cluster: A query using an index scan followed by a delete operation, and then a rollback could cause one or more data nodes to crash. (Bug#24039)
MySQL Cluster:
(Disk Data): Under some circumstances, a
DELETE from a Disk Data table could cause
mysqld to crash.
(Bug#23542)
MySQL Cluster:
It was possible for the sum of the
MaxNoOfTables,
MaxNoOfOrderedIndexes, and
MaxNoOfUniqueHashIndexes configuration
parameters, plus the number of system tables to exceed the
maximum value for a Uint32 number. In such a
case, the cluster's data nodes failed to start, and no reason
for this could easily be determined from the error messages
provided.
(Bug#22548)
MySQL Cluster:
A value equal to or greater than the allowed maximum for
LongMessageBuffer caused all data nodes to
crash.
(Bug#22547)
MySQL Cluster:
Multiple occurrences of error conditions were logged with
duplicat error messages rather than being reported with a single
error message stating that the error was encountered
N times.
(Bug#22313)
MySQL Cluster:
Given a table mytbl in a database
mydb on a MySQL Server acting as an SQL node
in a MySQL Cluster, then, following multiple ALTER
TABLE mytbl ENGINE=
statements — first, to change the storage engine used for
a table to engine NDB, and then again to change the
table to use a non-NDB storage engine —
a DROP DATABASE mydb statement executed on
any SQL node in the cluster would cause mydb
to be dropped on all SQL nodes in the
cluster, even if mydb contained
non-NDB tables.
(Bug#21495)
MySQL Cluster:
An incorrect error message was displayed in the event that the
value of the MaxNoOfOrderedIndexes parameter
was set too low.
(Bug#20065)
MySQL Cluster:
An incorrect error message was displayed in the event that the
value of the DataMemory parameter was
insufficient for the amount of data to be stored by the cluster.
(Bug#19808)
MySQL Cluster:
Some values of MaxNoOfTriggers could cause
the server to become inaccessible following startup of the data
nodes.
(Bug#19454)
MySQL Cluster:
If the value set for MaxNoOfAttributes is
excessive, a suitable error message is now returned.
(Bug#19352)
MySQL Cluster: Different error messages were returned for similar cases involving failure to allocate memory for Cluster operations. (Bug#19203)
MySQL Cluster:
A unique constraint violation was not ignored by an
UPDATE IGNORE statement when the constraint
violation occurred on a non-primary key.
(Bug#18487, Bug#24303)
MySQL Cluster:
(Replication): If errors occurred during purging of the binary
logs, extraneous rows could remain left in the
binlog_index table.
(Bug#15021)
Disk Data: ndb_restore sometimes failed when attempting to restore Disk Data tables due to data node failure caused by accessing uninitialized memory. (Bug#24331)
Disk Data:
It was possible to execute a statement for creating a Disk Data
table that referred to a nonexistent tablespace, in which case
the table was an in-memory NDB table. Such a
statement instead now fails with an appropriate error message.
(Bug#23576)
Cluster API:
Using BIT values with any of the comparison
methods of the NdbScanFilter class caused
data nodes to fail.
(Bug#24503)
Cluster API: Some MGM API function calls could yield incorrect return values in certain cases where the cluster was operating under a very high load, or experienced timeouts in inter-node communications. (Bug#24011)
In some cases, a function that should be parsed as a user-defined function was parsed as a stored function. (Bug#24736)
Some unnecessary Valgrind warnings were removed from the server. . (Bug#24488, Bug#24533)
The server source code had multiple exportable definitions of
the field_in_record_is_null() function. These
are now all declared static.
(Bug#24190)
The loose index scan optimization for GROUP
BY with MIN or
MAX was not applied within other queries,
such as CREATE TABLE ... SELECT ...,
INSERT ... SELECT ..., or in the
FROM clauses of subqueries.
(Bug#24156)
Subqueries for which a pushed-down condition did not produce exactly one key field could cause a server crash. (Bug#24056)
The size of MEMORY tables and internal
temporary tables was limited to 4GB on 64-bit Windows systems.
(Bug#24052)
With row-based binary logging, replicated multiple-statement transaction deadlocks did not return the correct error code, causing the slave SQL thread to stop rather than roll back and re-execute. (Bug#23831)
LAST_DAY('0000-00-00') could
cause a server crash.
(Bug#23653)
A trigger that invoked a stored function could cause a server crash when activated by different client connections. (Bug#23651)
The stack size for NetWare binaries was increased to 128KB to prevent problems caused by insufficient stack size. (Bug#23504)
If elements in a non-top-level IN subquery
were accessed by an index and the subquery result set included a
NULL value, the quantified predicate that
contained the subquery was evaluated to NULL
when it should return a non-NULL value.
(Bug#23478)
When applying the group_concat_max_len limit,
GROUP_CONCAT() could truncate
multi-byte characters in the middle.
(Bug#23451)
mysql_affected_rows() could
return values different from
mysql_stmt_affected_rows() for
the same sequence of statements.
(Bug#23383)
Calculation of COUNT(DISTINCT),
AVG(DISTINCT), or
SUM(DISTINCT) when they are
referenced more than once in a single query with GROUP
BY could cause a server crash.
(Bug#23184)
Changes to character set variables prior to an action on a replication-ignored table were forgotten by slave servers. (Bug#22877)
With row-based binary logging, for CREATE TABLE IF NOT
EXISTS LIKE statements, the temporary_table
IF NOT EXISTS
clause was not logged.
(Bug#22762)
BENCHMARK(),
ENCODE(),
DECODE(), and
FORMAT() could only accept a
constant for some parameters, and could not be used in prepared
statements.
(Bug#22684)
Queries using a column alias in an expression as part of an
ORDER BY clause failed, an example of such a
query being SELECT mycol + 1 AS mynum FROM mytable
ORDER BY 30 - mynum.
(Bug#22457)
Using EXPLAIN caused a server crash for
queries that selected from INFORMATION_SCHEMA
in a subquery in the FROM clause.
(Bug#22413)
Instance Manager option-parsing code caused memory-allocation errors. (Bug#22242)
Trailing spaces were not removed from Unicode
CHAR column values when used in indexes. This
resulted in excessive usage of storage space, and could affect
the results of some ORDER BY queries that
made use of such indexes.
When upgrading, it is necessary to re-create any existing
indexes on Unicode CHAR columns in order to
take advantage of the fix. This can be done by using a
REPAIR TABLE statement on each affected
table.
With row-based binary logging, CREATE TABLE IF NOT
EXISTS SELECT statements were not logged properly.
(Bug#22027)
In some cases, the parser failed to distinguish a user-defined function from a stored function. (Bug#21809)
Inserting a default or invalid value into a spatial column could
fail with Unknown error rather than a more
appropriate error.
(Bug#21790)
Evaluation of subqueries that require the filesort algorithm
were allocating and freeing the
sort_buffer_size buffer many times, resulting
in slow performance. Now the buffer is allocated once and
reused.
(Bug#21727)
Through the C API, the member strings in
MYSQL_FIELD for a query that contains
expressions may return incorrect results.
(Bug#21635)
View columns were always handled as having implicit derivation,
leading to illegal mix of collation errors
for some views in UNION operations. Now view
column derivation comes from the original expression given in
the view definition.
(Bug#21505)
INET_ATON() returned a signed
BIGINT value, not an unsigned value.
(Bug#21466)
For debug builds, mysqladmin shutdown
displayed an extraneous skipped 9 bytes from file:
socket (3) message.
(Bug#21428)
For view renaming, the table name to filename encoding was not performed. (Bug#21370)
CREATE FUNCTION X() and CREATE
FUNCTION Y() failed with a syntax error instead of
warning the user that these function names are already used (for
GIS functions).
(Bug#21025)
On slave servers, transactions that exceeded the lock wait timeout failed to roll back properly. (Bug#20697)
CONCURRENT did not work correctly for
LOAD DATA INFILE.
(Bug#20637)
With lower_case_table_names set to 1,
SHOW CREATE TABLE printed incorrect output
for table names containing Turkish I (LATIN CAPITAL LETTER I
WITH DOT ABOVE).
(Bug#20404)
A query with a subquery that references columns of a view from
the outer SELECT could return an incorrect
result if used from a prepared statement.
(Bug#20327)
For queries that select from a view, the server was returning
MYSQL_FIELD metadata inconsistently for view
names and table names. For view columns, the server now returns
the view name in the table field and, if the
column selects from an underlying table, the table name in the
org_table field.
(Bug#20191)
Invalidating the query cache caused a server crash for
INSERT INTO ... SELECT statements that
selected from a view.
(Bug#20045)
For a cast of a DATETIME value containing
microseconds to DECIMAL, the microseconds
part was truncated without generating a warning. Now the
microseconds part is preserved.
(Bug#19491)
SQL statements close to the size of
max_allowed_packet could produce binary log
events larger than max_allowed_packet that
could not be read by slave servers.
(Bug#19402)
The server could send incorrect column count information to the client for queries that produce a larger number of columns than can fit in a two-byte number. (Bug#19216)
For some problems relating to character set conversion or
incorrect string values for INSERT or
UPDATE, the server was reporting truncation
or length errors instead.
(Bug#18908)
Constant expressions and some numeric constants used as input parameters to user-defined functions were not treated as constants. (Bug#18761)
Attempting to use a view containing DEFINER
information for a non-existent user resulted in an error message
that revealed the definer account. Now the definer is revealed
only to superusers. Other users receive only an access
denied message.
(Bug#17254)
IN() and
CHAR() can return
NULL, but did not signal that to the query
processor, causing incorrect results for
IS NULL
operations.
(Bug#17047)
Warnings were generated when explicitly casting a character to a
number (for example, CAST('x' AS
SIGNED)), but not for implicit conversions in simple
arithmetic operations (such as 'x' + 0). Now
warnings are generated in all cases.
(Bug#11927)
Metadata for columns calculated from scalar subqueries was limited to integer, double, or string, even if the actual type of the column was different. (Bug#11032)
This section contains change history information for MySQL Cluster 5.1 Carrier Grade Edition releases based on MySQL 5.1.14.
This is a new Beta development release, fixing recently discovered bugs.
Although MySQL has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
This section documents all changes and bug fixes that have been applied in this Beta release since MySQL MySQL Cluster 5.1 Carrier Grade Edition diverged from MySQL 5.1.14 standard.
Functionality added or changed:
MySQL Cluster:
Support was added for the MemReportFrequency
configuration parameter, which provides for periodic reports of
memory usage. See
Section 15.4.5.2, “Management Node Configuration Parameters”, for
information about using this parameter.
Bugs fixed:
MySQL Cluster:
When a data node was shut down using the management client
STOP command, a connection event
(NDB_LE_Connected) was logged instead of a
disconnection event (NDB_LE_Disconnected).
(Bug#22773)
MySQL Cluster:
SELECT statements with a
BLOB or TEXT column in the
selected column list and a WHERE condition
including a primary key lookup on a VARCHAR
primary key produced empty result sets.
(Bug#19956)
Disk Data:
MEDIUMTEXT columns of Disk Data tables were
stored in memory rather than on disk, even if the columns were
not indexed.
(Bug#25001)
Disk Data: Performing a node restart with a newly dropped Disk Data table could lead to failure of the node during the restart. (Bug#24917)
Disk Data: When restoring from backup a cluster containing any Disk Data tables with hidden primary keys, a node failure resulted which could lead to a crash of the cluster. (Bug#24166)
Disk Data:
Repeated CREATE, DROP, or
TRUNCATE in various combinations with system
restarts between these operations could lead to the eventual
failure of a system restart.
(Bug#21948)
Disk Data:
Extents that should have been available for re-use following a
DROP TABLE operation were not actually made
available again until after the cluster had performed a local
checkpoint.
(Bug#17605)
Cluster API:
Invoking the NdbTransaction::execute() method
using execution type Commit and abort option
AO_IgnoreError could lead to a crash of the
transaction coordinator (DBTC).
(Bug#25090)
Cluster API: A unique index lookup on a non-existent tuple could lead to a data node timeout (error 4012). (Bug#25059)
Cluster API:
When using the NdbTransaction::execute()
method, a very long timeout (greater than 5 minutes) could
result if the last data node being polled was disconnected from
the cluster.
(Bug#24949)
Cluster API: Due to an error in the computation of table fragment arrays, some transactions were not executed from the correct starting point. (Bug#24914)
Under certain rare circumstances, local checkpoints were not performed properly, leading to an inability to restart one or more data nodes. (Bug#24664)
This is a new Beta development release, fixing recently discovered bugs.
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 has 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. Please refer to our bug database at http://bugs.mysql.com/ for more details about the individual bugs fixed in this version.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change:
The number of function names affected by
IGNORE_SPACE was reduced significantly in
MySQL 5.1.13, from about 200 to about 30. (For details about
IGNORE_SPACE, see
Section 7.2.4, “Function Name Parsing and Resolution”.) This change improves the
consistency of parser operation. However, it also introduces the
possibility of incompatibility for old SQL code that relies on
the following conditions:
IGNORE_SPACE is disabled.
The presence or absence of whitespace following a function
name is used to distinguish between a built-in function and
stored function that have the same name (for example,
PI() versus PI
()).
For functions that are no longer affected by
IGNORE_SPACE as of MySQL 5.1.13, that
strategy no longer works. Either of the following approaches can
be used if you have code that is subject to the preceding
incompatibility:
If a stored function has a name that conflicts with a
built-in function, refer to the stored function with a
schema name qualifier, regardless of whether whitespace is
present. For example, write
or
schema_name.PI() .
schema_name.PI
()
Alternatively, rename the stored function to use a non-conflicting name and change invocations of the function to use the new name.
Binary distributions of MySQL 5.1.12 were built without support for partitioning. This has been corrected except for NetWare. (Bug#23949)
A change in the interfaces for the
INFORMATION_SCHEMA.FILES table has made the
table accessible to storage engines other than
NDB.
(Bug#23013)
If the user specified the server options
--max-connections=
or N --table-open-cache=, a warning would be given in some cases that some
values were recalculated, with the result that
M
--table-open-cache could be assigned greater
value.
It should be noted that, in such cases, both the warning and the
increase in the --table-open-cache value were
completely harmless. Note also that it is not possible for the
MySQL Server to predict or to control limitations on the maximum
number of open files, since this is determined by the operating
system.
The recalculation code has now been fixed to ensure that the
value of --table-open-cache is no longer
increased automatically, and that a warning is now given only if
some values had to be decreased due to operating system limits.
(Bug#21915)
For the CALL statement, stored procedures
that take no arguments now can be invoked without parentheses.
That is, CALL p() and CALL
p are equivalent.
(Bug#21462)
mysql_upgrade now passes all the parameters
specified on the command line to both
mysqlcheck and mysql using
the upgrade_defaults file.
(Bug#20100)
mysqldump --single-transaction now uses
START TRANSACTION /*!40100 WITH CONSISTENT SNAPSHOT
*/ rather than BEGIN to start a
transaction, so that a consistent snapshot will be used on those
servers that support it.
(Bug#19660)
Bugs fixed:
MySQL Cluster: Backup of a cluster failed if there were any tables with 128 or more columns. (Bug#23502)
MySQL Cluster: Cluster backups failed when there were more than 2048 schema objects in the cluster. (Bug#23499)
MySQL Cluster: Restoring a cluster failed if there were any tables with 128 or more columns. (Bug#23494)
MySQL Cluster: (Disk Data): In the event of an aborted multiple update, the space in the Disk Data log buffer to be freed as a result was actually freed twice, which could eventually lead to a crash. (Bug#23430)
MySQL Cluster:
The management client command ALL DUMP 1000
would cause the cluster to crash if data nodes were connected to
the cluster but not yret fully started.
(Bug#23203)
MySQL Cluster:
INSERT ... ON DUPLICATE KEY UPDATE on an
NDB table could lead to deadlocks and memory
leaks.
(Bug#23200)
MySQL Cluster:
An NDB source file included a
memset() call with reversed arguments.
(Bug#23169)
MySQL Cluster: If a node restart could not be performed from the REDO log, no node takeover took place. This could cause partitions to be left empty during a system restart. (Bug#22893)
MySQL Cluster: Multiple node restarts in rapid succession could cause a system restart to fail , or induce a race condition. (Bug#22892, Bug#23210)
MySQL Cluster:
Attempting to create a unique constraint with USING
HASH on an NDB table caused
mysqld to crash.
(Bug#21873)
MySQL Cluster:
When inserting a row into an NDB table with a
duplicate value for a non-primary unique key, the error issued
would reference the wrong key.
(Bug#21072)
MySQL Cluster: Aborting a cluster backup too soon after starting it caused a forced shutdown of the data nodes. (Bug#19148)
Cluster API: When multiple processes or threads in parallel performed the same ordered scan with exclusive lock and updated the retrieved records, the scan could skip some records, which as a result were not updated. (Bug#20446)
There was a race condition in the InnoDB
fil_flush_file_spaces() function.
(Bug#24098)
Some yaSSL-related memory leaks detected by Valgrind were fixed. (Bug#23981)
MySQL 5.0.26 introduced an ABI incompatibility, which this release reverts. Programs compiled against 5.0.26 are not compatible with any other version and must be recompiled. (Bug#23427)
returns
M % 0NULL, but (
evaluated to
false.
(Bug#23411)M % 0) IS NULL
For not-yet-authenticated connections, the
Time column in SHOW
PROCESSLIST was a random value rather than
NULL.
(Bug#23379)
InnoDB crashed when trying to display an
error message about a foreign key constraint violation when the
two tables are in different schemas.
(Bug#23368)
MySQL failed to build on Linux/Alpha. (Bug#23256)
This regression was introduced by Bug#21250
If COMPRESS() returned
NULL, subsequent invocations of
COMPRESS() within a result set
or within a trigger also returned NULL.
(Bug#23254)
Insufficient memory (myisam_sort_buffer_size)
could cause a server crash for several operations on
MyISAM tables: repair table, create index by
sort, repair by sort, parallel repair, bulk insert.
(Bug#23175)
The column default value in the output from SHOW
COLUMNS or SELECT FROM
INFORMATION_SCHEMA.COLUMNS was truncated to 64
characters.
(Bug#23037)
mysql did not check for errors when fetching data during result set printing. (Bug#22913)
The return value from my_seek() was ignored.
(Bug#22828)
Use of SQL_BIG_RESULT did not influence the
sort plan for query execution.
(Bug#22781)
The optimizer failed to use equality propagation for
BETWEEN and
IN predicates with string arguments.
(Bug#22753)
The Handler_rollback status variable
sometimes was incremented when no rollback had taken place.
(Bug#22728)
The Host column in SHOW
PROCESSLIST output was blank when the server was
started with the --skip-grant-tables option.
(Bug#22723)
If a table contains an AUTO_INCREMENT column,
inserting into an insertable view on the table that does not
include the AUTO_INCREMENT column should not
change the value of
LAST_INSERT_ID(), because the
side effects of inserting default values into columns not part
of the view should not be visible. MySQL was incorrectly setting
LAST_INSERT_ID() to zero.
(Bug#22584)
The optimizer used the ref join type rather
than eq_ref for a simple join on strings.
(Bug#22367)
Some queries that used MAX() and
GROUP BY could incorrectly return an empty
result.
(Bug#22342)
If an init_connect SQL statement produced an
error, the connection was silently terminated with no error
message. Now the server writes a warning to the error log.
(Bug#22158)
An unhandled NULL pointer caused a server
crash.
(Bug#22138)
Incorrect warnings occurred for use of CREATE TABLE ...
LIKE or REPAIR TABLE with the log
tables.
(Bug#21966)
The optimizer sometimes mishandled R-tree indexes for
GEOMETRY data types, resulting in a server
crash.
(Bug#21888)
Use of a DES-encrypted SSL certificate file caused a server crash. (Bug#21868)
Use of PREPARE with a CREATE
PROCEDURE statement that contained a syntax error
caused a server crash.
(Bug#21856)
Adding a day, month, or year interval to a
DATE value produced a
DATE, but adding a week interval produced a
DATETIME value. Now all produce a
DATE value.
(Bug#21811)
Use of a subquery that invoked a function in the column list of the outer query resulted in a memory leak. (Bug#21798)
It was not possible to do an atomic rename of the log tables without the possibility of losing rows. Now you can do this:
USE mysql; CREATE TABLE IF NOT EXISTS general_log2 LIKE general_log; RENAME TABLE general_log TO general_log_backup, general_log2 TO general_log;
Within a prepared statement, SELECT (COUNT(*) =
1) (or similar use of other aggregate functions) did
not return the correct result for statement re-execution.
(Bug#21354)
Within a stored routine, a view definition cannot refer to routine parameters or local variables. However, an error did not occur until the routine was called. Now it occurs during parsing of the routine creation statement.
A side effect of this fix is that if you have already created
such routines, and error will occur if you execute
SHOW CREATE PROCEDURE or SHOW
CREATE FUNCTION. You should drop these routines
because they are erroneous.
In mysql, invoking connect
or \r with very long
db_name or
host_name parameters caused buffer
overflow.
(Bug#20894)
WITH ROLLUP could group unequal values.
(Bug#20825)
Range searches on columns with an index prefix could miss records. (Bug#20732)
The server did not allocate sufficient memory for some queries
for which a DISTINCT to GROUP
BY conversion is possible and an ORDER
BY clause is present, resulting in a server crash.
(Bug#20503)
LIKE searches failed for indexed
utf8 character columns.
(Bug#20471)
With SQL_MODE=TRADITIONAL, MySQL incorrectly
aborted on warnings within stored routines and triggers.
(Bug#20028)
mysqldump --xml produced invalid XML for
BLOB data.
(Bug#19745)
Column names were not quoted properly for replicated views. (Bug#19736)
The range analysis optimizer did not take into account
predicates for which an index could be used after reading
const tables. In some cases this resulted in
non-optimal execution plans.
(Bug#19579)
FLUSH INSTANCES in Instance Manager triggered
an assertion failure.
(Bug#19368)
For a debug server, a reference to an undefined user variable in
a prepared statment executed with EXECUTE
caused an assertion failure.
(Bug#19356)
Within a trigger for a base table, selecting from a view on that base table failed. (Bug#19111)
The value of the warning_count system
variable was not being calculated correctly (also affecting
SHOW COUNT(*) WARNINGS).
(Bug#19024)
DELETE IGNORE could hang for foreign key
parent deletes.
(Bug#18819)
InnoDB used table locks (not row locks)
within stored functions.
(Bug#18077)
mysql would lose its connection to the server if its standard output was not writable. (Bug#17583)
At shutdown, Instance Manager told guarded server instances to stop, but did not wait until they actually stopped. (Bug#17486)
mysql-test-run did not work correctly for RPM-based installations. (Bug#17194)
A client library crash was caused by executing a statement such
as SELECT * FROM t1 PROCEDURE ANALYSE() using
a server side cursor on a table t1 that does
not have the same number of columns as the output from
PROCEDURE ANALYSE().
(Bug#17039)
The WITH CHECK OPTION for a view failed to
prevent storing invalid column values for
UPDATE statements.
(Bug#16813)
InnoDB showed substandard performance with
multiple queries running concurrently.
(Bug#15815)
ALTER TABLE was not able to rename a view.
(Bug#14959)
Statements such as DROP PROCEDURE and
DROP VIEW were written to the binary log too
late due to a race condition.
(Bug#14262)
A literal string in a GROUP BY clause could
be interpreted as a column name.
(Bug#14019)
Entries in the slow query log could have an incorrect
Rows_examined value.
(Bug#12240)
Lack of validation for input and output TIME
values resulted in several problems:
SEC_TO_TIME() within subqueries
incorrectly clipped large values;
SEC_TO_TIME() treated
BIGINT UNSIGNED values as signed; only
truncation warnings were produced when both truncation and
out-of-range TIME values occurred.
(Bug#11655, Bug#20927)
Several string functions could return incorrect results when given very large length arguments. (Bug#10963)
FROM_UNIXTIME() did not accept
arguments up to POWER(2,31)-1,
which it had previously.
(Bug#9191)
OPTIMIZE TABLE with
myisam_repair_threads > 1 could result in
MyISAM table corruption.
(Bug#8283)
Transient errors in replication from master to slave may trigger
multiple Got fatal error 1236: 'binlog truncated in the
middle of event' errors on the slave.
(Bug#4053)
This is a new Beta development release, fixing recently discovered bugs.
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 Enterprise (a commercial MySQL offering). For more details please see http://www.mysql.com/products/enterprise.
Functionality added or changed:
Incompatible Change: MySQL Cluster:
MySQL Cluster node and system restarts formerly required that
all fragments use the same local checkpoint (LCP); beginning
with this version, it is now possible for different fragments to
use different LCPs during restarts. This means that data node
filesystems must be rebuilt as part of any upgrade to this
version by restarting all data nodes with the
--initial option.
See Section 15.5.2, “Cluster Upgrade and Downgrade Compatibility”, and related sections of the Manual before upgrading a MySQL Cluster to version 5.1.12 or later. (Bug#21478, Bug#21271)
Incompatible Change:
In the INFORMATION_SCHEMA.EVENTS table, the
EVENT_DEFINITION column now contains the SQL
executed by a scheduled event.
The EVENT_BODY column now contains the
language used for the statement or statements shown in
EVENT_DEFINITION. In MySQL 5.1, the value
shown in EVENT_BODY is always
SQL.
These changes were made to bring this table into line with the
INFORMATION_SCHEMA.ROUTINES table, and that
table's ROUTINE_BODY and
ROUTINE_DEFINITION columns.
(Bug#16992)
Incompatible Change:
Support for the BerkeleyDB (BDB) engine has
been dropped from this release. Any existing tables that are in
BDB format will not be readable from within MySQL from 5.1.12 or
newer. You should convert your tables to another storage engine
before upgrading to 5.1.12.
Because of this change, the SHOW [BDB] LOGS
statement has been dropped.
Incompatible Change: A number of MySQL constructs are now prohibited in partitioning expressions, beginning with this release. These include:
A number of MySQL functions.
You can find a complete list of these functions under Partitioning Limitations.
Nested function calls.
Calls to stored routines, UDFs, or plugins.
Character-to-integer conversions involving non-8-bit
character sets or any of the
latin1_german2_ci,
latin2_czech_cs, or
cp1250_czech_cs collations.
These restrictions were added in part as a result of Bug#18198 and related bug reports.
For more information about these and other restrictions on partitioned tables in MySQL, see Section 16.5, “Restrictions and Limitations on Partitioning”.
Incompatible Change:
The permitted values for and behaviour of the
event_scheduler system variable have changed.
Permitted values are now ON,
OFF, and DISABLED, with
OFF being the default. It is not possible to
change its value to or from DISABLED while
the server is running.
For details, see Section 20.1, “Event Scheduler Overview”.
Incompatible Change:
The plugin interface has changed: The
st_mysql_plugin structure has a new
license member to indicate the license type.
(The allowable values are defined in
mysql/plugin.h.) This change is not
backward compatible, so the API version
(MYSQL_PLUGIN_INTERFACE_VERSION) has changed.
For additional information, see
Section 27.2.5, “Writing Plugins”.
Incompatible Change: The full-text parser plugin interface has changed in two ways:
The MYSQL_FTPARSER_PARAM structure has a
new flags member. This is zero if there
are no special flags, or
MYSQL_FTFLAGS_NEED_COPY, which means that
mysql_add_word() must save a copy of
the word (that is, it cannot use a pointer to the word
because the word is in a buffer that will be overwritten.)
This flag might be set or reset by MySQL before calling the
parser plugin, by the parser plugin itself, or by the
mysql_parse() function.
The mysql_parse() and
mysql_add_word() functions now take a
MYSQL_FTPARSER_PARAM as their first
argument, not a
MYSQL_FTPARSER_PARAM::mysql_ftparam as
before.
These changes are not backward compatible, so the API version
(MYSQL_FTPARSER_INTERFACE_VERSION) has
changed. For additional information, see
Section 27.2.5, “Writing Plugins”.
Incompatible Change:
Storage engines can be pluggable at runtime, so the distinction
between disabled and invalid storage engines no longer applies.
This affects the NO_ENGINE_SUBSTITUTION SQL
mode, as described in Section 5.1.6, “SQL Modes”.
Incompatible Change:
The namespace for scheduled events has changed, such that events
are no longer unique to individual users. This also means that a
user with the EVENT privilege on a given
database can now view, alter, or drop any events defined on that
database.
If you used scheduled events in an earlier MySQL 5.1 release, you should rename any of them having the same name and defined on the same database but belonging to different users — so that all events in a given database have unique names — before upgrading to 5.1.12 (or newer).
For additional information, see Section 20.5, “The Event Scheduler and MySQL Privileges”.
Important Change: MySQL Cluster:
LOAD DATA INFILE no longer causes an implicit
commit for all storage engines. It now causes an implicit commit
only for tables using the NDB storage engine.
(Bug#11151)
Important Change: MySQL Cluster:
It is no longer possible to create Cluster tables using any
partitioning type other than [LINEAR]
KEY. Attempting to do so now raises an error.
Important Change: MySQL Cluster:
The status variables Ndb_connected_host and
Ndb_connected_port were renamed to
Ndb_config_from_host and
Ndb_config_from_port, respectively.
MySQL Cluster:
The ndb_config utility now accepts
-c as a short form of the
--ndb-connectstring option.
(Bug#22295)
MySQL Cluster: Added the --bind-address option for ndbd. This allows a data node process to be bound to a specific network interface. (Bug#22195)
MySQL Cluster:
The Ndb_number_of_storage_nodes system
variable was renamed to
Ndb_number_of_data_nodes.
(Bug#20848)
MySQL Cluster:
The HELP command in the Cluster management
client now provides command-specific help. For example,
HELP RESTART in ndb_mgm
provides detailed information about the
RESTART command.
(Bug#19620)
MySQL Cluster: A number of erroneous, misleading, or missing error messages have been corrected. (Bug#17297, Bug#19543)
MySQL Cluster: Backup messages are no longer printed to the cluster log.
MySQL Cluster:
Added the --ndb-use-copying-alter-table option
to mysqld to provide a fallback in case of
problems with online ALTER TABLE operations
on NDB tables.
Cluster API:
Two new NDB API methods — aggregate()
and validate() — were added to the
NdbDictionary::Object::Table class. See
Table::aggregate(), and
Table::validate(), for more information.
This was done to rectify the following issues:
Under some conditions, the data distribution could become unbalanced in a MySQL Cluster with 2 or more node groups following the creation of a new table.
Data was stored unevenly between partitions due to all
BLOB data being placed in partition 0.
The number of InnoDB threads is no longer
limited to 1,000 on Windows.
(Bug#22268)
The STATE column of the
INFORMATION_SCHEMA.PROCESSLIST table was
increased from 30 to 64 characters to accommodate longer state
values.
(Bug#21652)
mysqldump now has a
--flush-privileges option. It causes
mysqldump to emit a FLUSH
PRIVILEGES statement after dumping the
mysql database. This option should be used
any time the dump contains the mysql database
and any other database that depends on the data in the
mysql database for proper restoration.
(Bug#21424)
mysqlslap threads now try to connect up to 10 times if the initial connect attempt fails. (Bug#21297)
The output generated by the server when using the
--xml option has changed with regard to null
values. It now matches the output from mysqldump
--xml . That is, a column containing
a NULL value is now reported as
<field name="column_name" xsi:nil="true" />
whereas a column containing the string value
'NULL' is reported as
<field name="column_name">NULL</field>
and a column containing an empty string is reported as
<field name="column_name">>/field>
The mysqld and mysqlmanager manpages have been reclassified from volume 1 to volume 8. (Bug#21220)
InnoDB now honors IGNORE
INDEX. Perviously using IGNORE
INDEX in cases where an index sort would be slower
than a filesort had no effect when used with
InnoDB tables.
(Bug#21174)
TIMESTAMP columns that are NOT
NULL now are reported that way by SHOW
COLUMNS and INFORMATION_SCHEMA.
(Bug#20910)
Memory consumption of the InnoDB data
dictionary cache was roughly halved by cleaning up the data
structures.
(Bug#20877)
The BINARY keyword now is forbidden as a data
type attribute in stored routines (for example, DECLARE
v1 VARCHAR(25) BINARY), because
DECLARE does not support collations, and in
this context BINARY specifies the binary
collation of the variable's character set.
(Bug#20701)
The following statements now can be executed as prepared
statements (using PREPARE plus
EXECUTE):
CACHE INDEX
CHANGE MASTER
CHECKSUM {TABLE | TABLES}
{CREATE | RENAME | DROP} DATABASE
{CREATE | RENAME | DROP} USER
FLUSH {TABLE | TABLES | TABLES WITH READ LOCK | HOSTS | PRIVILEGES
| LOGS | STATUS | MASTER | SLAVE | DES_KEY_FILE | USER_RESOURCES}
GRANT
REVOKE
KILL
LOAD INDEX INTO CACHE
RESET {MASTER | SLAVE | QUERY CACHE}
SHOW BINLOG EVENTS
SHOW CREATE {PROCEDURE | FUNCTION | EVENT | TABLE | VIEW}
SHOW {AUTHORS | CONTRIBUTORS | WARNINGS | ERRORS}
SHOW {MASTER | BINARY} LOGS
SHOW {MASTER | SLAVE} STATUS
SLAVE {START | STOP}
INSTALL PLUGIN
UNINSTALL PLUGIN
In the INFORMATION_SCHEMA.ROUTINES table the
ROUTINE_DEFINITION column now is defined as
NULL rather than NOT NULL.
Also, NULL rather than the empty string is
returned as the column value if the user does not have
sufficient privileges to see the routine definition.
(Bug#20230)
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)
The MySQL distribution now compiles on UnixWare 7.13. (Bug#20190)
configure now defines the symbol
DBUG_ON in config.h to
indicate whether the source tree is configured to be compiled
with debugging support.
(Bug#19517)
TEXT and BLOB columns do
not support DEFAULT values. However, when a
default of '' was specified, the
specification was silently ignored. This now results in a
warning, or an error in strict mode.
(Bug#19498)
For mysqlshow, if a database name argument
contains wildcard characters (such as “
_ ”) but matches a single database
name exactly, treat the name as a literal name. This allows a
command such as mysqlshow information_schema
work without having to escape the wildcard character.
(Bug#19147)
The source distribution has been updated so that the UDF example can be compiled under Windows with CMake. See Section 27.3.4.5, “Compiling and Installing User-Defined Functions”. (Bug#19121)
The default value of the tmp_table_size
system variable was lowered from 32MB to 16MB because it is
bounded by the value of max_heap_table_size,
which has a default of 16MB.
(Bug#18875)
Log table changes: By default, the log tables use the
CSV storage engine, as before. But now the
log tables can be altered to use the MyISAM
storage engine. You cannot use ALTER TABLE to
alter a log table that is in use. The log must be disabled
first. No engines other than CSV or
MyISAM are legal for the log tables. The use
of DROP TABLE for log tables is similarly
restricted: It cannot be used to drop a log table that is in
use. The log must be disabled first. (These changes also correct
a deadlock that occurred for an attempt to drop an in-use log
table.)
(Bug#18559)
Added the --set-charset option to
mysqlbinlog to allow the character set to be
specified for processing binary log files.
(Bug#18351)
The ExtractValue() function now
produces an error when passed an XML fragment that is not
well-formed.
(Previously, the function allowed invalid XML fragments to be used.) (Bug#18201)
On Windows, typing Control-C while a query was running caused the mysql client to crash. Now it causes mysql to attempt to kill the current statement. If this cannot be done, or Control-C is typed again before the statement is killed, mysql exits. (In other words, mysql's behavior with regard to Control-C is now the same as it is on Unix platforms.) (Bug#17926)
See also Bug#1989
The bundled yaSSL library licensing has added a FLOSS exception
similar to MySQL to resolve licensing incompatibilities with
MySQL. (See the
extra/yassl/FLOSS-EXCEPTIONS file in a
MySQL source distribution for details.)
(Bug#16755)
SHOW CREATE TABLE now shows constraints for
InnoDB tables.
(Bug#16614)
EXPLAIN EXTENDED now shows a
filtered column that is an estimated
percentage of the examined rows that will be joined with the
previous tables. This was added while dealing with a problem of
MySQL choosing the wrong index for some queries.
(Bug#14940)
The mysql client now allows
\l in the prompt command
argument to insert the current delimiter into the prompt.
(Bug#14448)
The mysql client used the default character
set if it automatically reconnected to the server, which is
incorrect if the character set had been changed. To enable the
character set to remain synchronized on the client and server,
the mysql command charset
(or \C) that changes the default character
set and now also issues a SET NAMES
statement. The changed character set is used for reconnects.
(Bug#11972)
The LEFT() and
RIGHT() functions return
NULL if any argument is
NULL.
(Bug#11728)
If a DROP VIEW statement named multiple
views, it stopped with an error if a non-existent view was named
and did not drop the remaining views. Now it continues on and
reports an error at the end, similar to DROP
TABLE.
(Bug#11551)
For a successful dump, mysqldump now writes a SQL comment to the end of the dump file in the following format:
-- Dump completed on YYYY-MM-DD hh:mm:ss
There were several issues regarding how SHOW
STATUS affected some status variables and logging
which could impact monitoring the MySQL Server. The behavior of
this statement has been modified in two ways:
SHOW STATUS is no longer logged to the
slow query log.
SHOW STATUS no longer updates any session
status variables, except for
com_show_status.
However, SHOW STATUS continues to update
global status variables to allow monitoring
of what the server is actually doing. This is because
SHOW STATUS creates temporary tables that may
affect performance if it is called excessively often.
(Bug#10210)
See also Bug#19764
For spatial data types, the server formerly returned these as
VARSTRING values with a binary collation. Now
the server returns spatial values as BLOB
values.
(Bug#10166)
The LOAD DATA FROM MASTER and LOAD
TABLE FROM MASTER statements are deprecated. See
Section 11.6.2.2, “LOAD DATA FROM MASTER Syntax”, for recommended
alternatives.
(Bug#9125, Bug#20596, Bug#14399, Bug#12187, Bug#15025, Bug#18822)
For the mysql client, typing Control-C causes mysql to attempt to kill the current statement. If this cannot be done, or Control-C is typed again before the statement is killed, mysql exits. Previously, Control-C caused mysql to exit in all cases. (Bug#1989)
It is no longer possible to create partitioned tables using the
CSV storage engine.
Character-to-integer conversions involving non-8-bit character
sets or any of the latin1_german2_ci,
latin2_czech_cs, or
cp1250_czech_cs collations.
Binary MySQL distributions no longer include a mysqld-max server. Instead, distributions contain a binary that includes the features previously included in the mysqld-max binary.
SHOW STATUS is no longer logged to the slow
query log.
Program Database files (extension pdf) are
now included by default in Windows distributions. These can be
used to help diagnose problems with mysqld
and other tools. See Section 27.5.1, “Debugging a MySQL Server”.
INFORMATION_SCHEMA contains new tables,
GLOBAL_STATUS,
SESSION_STATUS,
GLOBAL_VARIABLES, and
SESSION_VARIABLES, that correspond to the
output from the SHOW {GLOBAL|SESSION} STATUS
and SHOW {GLOBAL|SESSION} VARIABLES
statements.
SHOW STATUS no longer updates any session
status variables, except for com_show_status.
A new system variable, lc_time_names,
specifies the locale that controls the language used to display
day and month names and abbreviations. This variable affects the
output from the DATE_FORMAT(),
DAYNAME() and
MONTHNAME() functions. See
Section 8.10, “MySQL Server Locale Support”.
Using --with-debug to configure MySQL with
debugging support enables you to use the
--debug="d,parser_debug" option when
you start the server. This causes the Bison parser that is used
to process SQL statements to dump a parser trace to the server's
standard error output. Typically, this output is written to the
error log.
Nested function calls.
The bundled yaSSL library was upgraded to version 1.3.7.
Calls to stored routines, UDFs, or plugins.
The Instance Manager --passwd option has been
renamed to --print-password-line. Other options
were added to enable management of the IM password file from the
command line: --add-user,
--drop-user, --edit-user,
--list-users,
--check-password-file,
--clean-password-file,
--username, and --password.
The --mysql-safe-compatible option was added to
cause the Instance Manner to act similarly to
mysqld_safe.
Added the SHOW CONTRIBUTORS statement.
The general query log and slow query logs now can be enabled or
disabled at runtime with the general_log and
slow_query_log system variables, and the name
of the log files can be changed by setting the
general_log_file and
slow_query_log_file system variables. See
Section 5.2.3, “The General Query Log”, and
Section 5.2.5, “The Slow Query Log”.
The default binary log format (as used during replication) is now Mixed based, automatically using a combination of row-based and statement based log events as appropriate.
Bugs fixed:
Security Fix:
A stored routine created by one user and then made accessible to
a different user using GRANT EXECUTE could be
executed by that user with the privileges of the routine's
definer.
(Bug#18630, CVE-2006-4227)
Security Fix: On Linux, and possibly other platforms using case-sensitive filesystems, it was possible for a user granted rights on a database to create or access a database whose name differed only from that of the first by the case of one or more letters. (Bug#17647, CVE-2006-4226)
Security Fix:
If a user has access to MyISAM table
t, that user can create a
MERGE table m that
accesses t. However, if the user's
privileges on t are subsequently
revoked, the user can continue to access
t by doing so through
m. If this behavior is undesirable,
you can start the server with the new
--skip-merge option to disable the
MERGE storage engine.
(Bug#15195, CVE-2006-4031)
Incompatible Change:
For utf8 columns, the full-text parser
incorrectly considered several non-word punctuation and
whitespace characters as word characters, causing some searches
to return incorrect results.
The fix involves a change to the full-text parser, so any tables
that have FULLTEXT indexes on
utf8 columns must be repaired with
REPAIR TABLE:
REPAIR TABLE tbl_name QUICK;
MySQL Cluster: Packaging:
The ndb_mgm program was included in both the
MySQL-ndb-tools and
MySQL-ndb-management RPM packages, resulting
in a conflict if both were installed. Now
ndb_mgm is included only in
MySQL-ndb-tools.
(Bug#21058)
MySQL Cluster: (NDB API): Inacivity timeouts for scans were not correctly handled. (Bug#23107)
MySQL Cluster:
Inserting into an NDB table failed when the
table had no primary key but had a unique key added after table
was created on one or more NOT NULL columns.
This occurred when the unique key had been adding using either
ALTER TABLE or CREATE UNIQUE
KEY.
(Bug#22838)
MySQL Cluster:
(NDB API): Attempting to read a nonexistent tuple using
Commit mode for
NdbTransaction::execute() caused node
failures.
(Bug#22672)
MySQL Cluster:
The --help output from NDB
binaries did not include file-related options.
(Bug#21994)
MySQL Cluster:
Setting TransactionDeadlockDetectionTimeout
to a value greater than 12000 would cause scans to deadlock,
time out, fail to release scan records, until the cluster ran
out of scan records and stopped processing.
(Bug#21800)
MySQL Cluster: A scan timeout returned Error 4028 (Node failure caused abort of transaction) instead of Error 4008 (Node failure caused abort of transaction...). (Bug#21799)
MySQL Cluster:
The node recovery algorithm was missing a version check for
tables in the ALTER_TABLE_COMMITTED state (as
opposed to the TABLE_ADD_COMMITTED state,
which has the version check). This could cause inconsistent
schemas across nodes following node recovery.
(Bug#21756)
MySQL Cluster: (Disk Data): Trying to create a Disk Data table using a nonexistent tablespace or trying to drop a nonexistent data file from a tablespace produced an uninformative error message. (Bug#21751)
MySQL Cluster: (Disk Data): Errors could occur when dropping a data file during a node local checkpoint. (Bug#21710)
MySQL Cluster: A memory leak occurred when running ndb_mgm -e "SHOW". (Bug#21670)
MySQL Cluster: The server provided a non-descriptive error message when encountering a fatally corrupted REDO log. (Bug#21615)
MySQL Cluster:
The output for the --help option used with
NDB executable programs (such as
ndbd, ndb_mgm,
ndb_restore, ndb_config,
and others mentioned in
Section 15.9, “Cluster Utility Programs”) referred to the
Ndb.cfg file, instead of to
my.cnf.
(Bug#21585)
MySQL Cluster: A partial rollback could lead to node restart failures. (Bug#21536)
MySQL Cluster: Partition distribution keys were updated only for the primary and starting replicas during node recovery. This could lead to node failure recovery for clusters having an odd number of replicas.
We recommend values for NumberOfReplicas
that are even powers of 2, for best results.
MySQL Cluster: The ndb_mgm management client did not set the exit status on errors, always returning 0 instead. (Bug#21530)
MySQL Cluster: The failure of a unique index read due to an invalid schema version could be handled incorrectly in some cases, leading to unpredictable results. (Bug#21384)
MySQL Cluster:
Attempting to create an NDB table on a MySQL
server with an existing non-Cluster table with the same name in
the same database could result in data loss or corruption. Now,
if such a table is encountered during autodiscovery, a warning
is written to the error log of the affected
mysqld, and the local table is overwritten.
(Bug#21378)
MySQL Cluster: Cluster logs were not rotated following the first rotation cycle. (Bug#21345)
MySQL Cluster: In a cluster with more than 2 replicas, a manual restart of one of the data nodes could fail and cause the other nodes in the same node group to shut down. (Bug#21213)
MySQL Cluster:
The ndb_size.pl script did not account for
TEXT and BLOB column
values correctly.
(Bug#21204)
MySQL Cluster:
(Disk Data): Creating a tablespace and log file group, then
attempting to restart the cluster without using the
--initial option and without having created any
Disk Data tables could cause a forced shutdown of the cluster
and raise a configuration error.
(Bug#21172)
MySQL Cluster:
Some queries involving joins on very large
NDB tables could crash the MySQL server.
(Bug#21059)
MySQL Cluster:
Condition pushdown did not work correctly with
DATETIME columns.
(Bug#21056)
MySQL Cluster: Responses to the ALL DUMP 1000 management client command were printed multiple times in the cluster log for each cluster node. (Bug#21044)
MySQL Cluster:
The message Error 0 in readAutoIncrementValue(): no
Error was written to the error log whenever
SHOW TABLE STATUS was performed on a Cluster
table that did not have an AUTO_INCREMENT
column.
(Bug#21033)
MySQL Cluster: Restarting a data node while DDL operations were in progress on the cluster could cause other data nodes to fail. This could also lead to mysqld hanging or crashing under some circumstances. (Bug#21017, Bug#21050)
MySQL Cluster: In some situations with a high disk-load, writing of the redo log could hang, causing a crash with the error message GCP STOP detected. (Bug#20904)
MySQL Cluster:
A race condition could in some cirumstances following a
DROP TABLE.
(Bug#20897)
MySQL Cluster: Under some circumstances, local checkpointing would hang, keeping any unstarted nodes from being started. (Bug#20895)
MySQL Cluster:
When the redo buffer ran out of space, a Pointer too
large error was raised and the cluster could become
unusable until restarted with --initial.
(Bug#20892)
MySQL Cluster: A vague error message was returned when reading both schema files during a restart of the cluster. (Bug#20860)
MySQL Cluster:
The repeated creating and dropping of a table would eventually
lead to NDB Error 826, Too many
tables and attributes ... Insufficient space.
(Bug#20847)
MySQL Cluster:
(Disk Data): mysqldump did not back up
tablespace or log file group information for Disk Data tables
correctly. (Specifically, UNDO_BUFFER_SIZE
and INITIAL_SIZE values were misreported.)
Trying to restore from such a backup would produce error 1296
(Got error 1504 'Out of logbuffer memory' from
NDB).
(Bug#20809)
MySQL Cluster: When attempting to restart the cluster following a data import, the cluster failed during Phase 4 of the restart with Error 2334: Job buffer congestion. (Bug#20774)
MySQL Cluster:
REPLACE statements did not work correctly on
an NDB table 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)
MySQL Cluster:
The server did not honor the value set for
ndb_cache_check_time in the
my.cnf file.
(Bug#20708)
MySQL Cluster: Truncating a table on one mysqld caused other mysqld processes connected to the cluster to return ERROR 1412 (HY000): Table definition has changed, please retry transaction on subsequent queries. (Bug#20705)
MySQL Cluster:
Using an invalid node ID with the management client
STOP command could cause
ndb_mgm to hang.
(Bug#20575)
MySQL Cluster:
Renaming of table columns was not supported as fast a
ALTER TABLE for NDB tables.
(Bug#20456)
MySQL Cluster: ndb_size.pl and ndb_error_reporter were missing from RPM packages. (Bug#20426)
MySQL Cluster:
Running ndbd
--nowait-nodes=
where id id was the node ID of a node
that was already running would fail with an invalid error
message.
(Bug#20419)
MySQL Cluster: Data nodes added while the cluster was running in single user mode were all assigned node ID 0, which could later cause multiple node failures. Adding nodes while in single user mode is no longer possible. (Bug#20395)
MySQL Cluster:
The ndb_mgm client command ALL
CLUSTERLOG STATISTICS=15 had no effect.
(Bug#20336)
MySQL Cluster: (Disk Data): Running a large nbumber of scans on Disk Data could cause subsequent scans to perform poorly. (Bug#20334)
MySQL Cluster:
(Direct APIs): NdbScanOperation::readTuples()
and NdbIndexScanOperation::readTuples()
ignored the batch parameter.
(Bug#20252)
MySQL Cluster: A node failure during a scan could sometime cause the node to crash when restarting too quickly following the failure. (Bug#20197)
MySQL Cluster:
The failure of a data node when preparing to commit a
transaction (that is, while the node's status was
CS_PREPARE_TO_COMMIT) could cause the failure
of other cluster data nodes.
(Bug#20185)
MySQL Cluster:
SHOW ENGINE NDB STATUS could sometimes return
an incorrect value of 0 for the latest epoch,
which could cause problems with synchronizing the binlog.
(Bug#20142)
MySQL Cluster:
(Disk Data): A data file created on one tablespace could be
dropped using ALTER TABLESPACE ... DROP
DATAFILE on a different tablespace.
(Bug#20053)
MySQL Cluster: An internal formatting error caused some management client error messages to be unreadable. (Bug#20016)
MySQL Cluster:
Creating tables with variable-size columns caused
DataMemory to be used but not freed when the
tables were dropped.
(Bug#20007)
MySQL Cluster: Renaming a table in such a way as to move it to a different database failed to move the table's indexes. (Bug#19967)
MySQL Cluster: Running management client commands while mgmd was in the process of disconnecting could cause the management server to fail. (Bug#19932)
MySQL Cluster: Under certain conditions, a starting node could miss transactions, leading to inconsistencies between the primary and backup replicas. (Bug#19929)
MySQL Cluster: An uncommitted row could sometimes be checkpointed and thus incorrectly included in a backup. (Bug#19928)
MySQL Cluster:
In some cases where SELECT COUNT(*) from an
NDB table should have yielded an error,
MAX_INT was returned instead.
(Bug#19914)
MySQL Cluster:
TEXT columns in Cluster tables having both an
explicit primary key and a unique key were not correctly updated
by REPLACE statements.
(Bug#19906)
MySQL Cluster:
The cluster's data nodes failed while trying to load data when
NoOfFrangmentLogFiles was set equal to 1.
(Bug#19894)
MySQL Cluster: Following the restart of a management node, the Cluster management client did not automatically reconnect. (Bug#19873)
MySQL Cluster:
Restoring a backup with ndb_restore failed
when the backup had been taken from a cluster whose
DataMemory had been completely used up.
(Bug#19852)
MySQL Cluster:
Error messages given when trying to make online changes
parameters such as NoOfReplicas thast can
only be changed via a complete shutdown and restart of the
cluster did not indicate the true nature of the problem.
(Bug#19787)
MySQL Cluster:
Under some circumstances, repeated DDL operations on one
mysqld could cause failure of a second
mysqld attached to the same cluster.
(Bug#19770)
MySQL Cluster: ndb_restore did not always make clear that it had recovered successfully from temporary errors while restoring a cluster backup. (Bug#19651)
MySQL 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 of
UniqueHashIndexes could be created.
(Bug#19623)
MySQL Cluster:
LOAD DATA LOCAL failed to ignore duplicate
keys in Cluster tables.
(Bug#19496)
MySQL Cluster: For ndb_mgmd, Valgrind revealed problems with a memory leak and a dependency on an uninitialized variable. (Bug#19318, Bug#20333)
MySQL Cluster:
A DELETE of many rows immediately followed by
an INSERT on the same table could cause the
ndbd process on the backup replica to crash.
(Bug#19293)
MySQL Cluster:
An excessive number of ALTER TABLE operations
could cause the cluster to fail with NDB
error code 773 (Out of string memory, please modify
StringMemory).
(Bug#19275)
MySQL Cluster:
A problem with error handling when
ndb_use_exact_count was enabled could lead to
incorrect values returned from queries using
COUNT(). A warning is now
returned in such cases.
(Bug#19202)
MySQL Cluster:
In rare situations with resource shortages, a crash could result
from insufficient IndexScanOperations.
(Bug#19198)
MySQL Cluster:
Running out of DataMemory could sometimes
crash ndbd and mysqld
processes.
(Bug#19185)
MySQL Cluster:
It was possible to use port numbers greater than 65535 for
ServerPort in the
config.ini file.
(Bug#19164)
MySQL Cluster:
A DELETE FROM table with no
WHERE clause (deleting all rows) running
concurrently with INSERT statements on a
storage engine with row-level locking (such as
NDB) could produce inconsistent results when
using statement-based replication.
(Bug#19066)
MySQL Cluster: ndb_mgm -e show | head would hang after displaying the first 10 lines of output. (Bug#19047)
MySQL Cluster: The error returned by the cluster when too many nodes were defined did not make clear the nature of the problem. (Bug#19045)
MySQL Cluster:
The management client ALL STOP command shut
down mgmd processes (as well as
ndbd processes).
(Bug#18966)
MySQL Cluster:
TRUNCATE TABLE failed to reset the
AUTO_INCREMENT counter.
(Bug#18864)
MySQL Cluster: Restarting a failed node could sometimes crash the cluster. (Bug#18782)
MySQL 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)
MySQL Cluster:
Repeated CREATE - INSERT -
DROP operations 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)
MySQL Cluster:
A CREATE TABLE statement involving foreign
key constraints raised an error rather than being silently
ignored (see Section 11.1.10, “CREATE TABLE Syntax”).
This bug affected Cluster in MySQL 5.1 only. (Bug#18483)
MySQL Cluster: The server failed with a non-descriptive error message when out of data memory. (Bug#18475)
MySQL Cluster:
For NDB and possibly
InnoDB tables, a BEFORE
UPDATE trigger could insert incorrect values.
(Bug#18437)
MySQL Cluster:
The DATA_LENGTH and
AVG_ROW_LENGTH columns of the
INFORMATION_SCHEMA.TABLES table did not
report the size of variable-width column values correctly.
See Section 22.2, “The INFORMATION_SCHEMA TABLES Table”, for more information.
(Bug#18413)
MySQL Cluster:
SELECT ... FOR UPDATE failed to lock the
selected rows.
(Bug#18184)
MySQL Cluster: (Disk Data): Deletes from Disk Data tables used a non-optimal scan to find the rows to be deleted, resulting in poor performance. The fix causes disk order rather than memory order to be used, and can improve performance of Disk Data deletes by up to ~300% in some cases. (Bug#17929)
MySQL Cluster:
perror did not properly report
NDB error codes.
(Bug#16561)
MySQL Cluster:
(Disk Data): The failure of a CREATE
TABLESPACE or CREATE LOGFILE GROUP
statement did not revert all changes made prior to the point of
failure.
(Bug#16341)
MySQL Cluster: A problem with takeover during a system restart caused ordered indexes to be rebuilt incorrectly. This also adversely affected MySQL Cluster Replication. (Bug#15303)
MySQL Cluster: A cluster data node could crash when an ordered index became full before the table containing the index was full. (Bug#14935)
MySQL Cluster:
The management client ALL STATUS command
could sometimes report the status of some data nodes
incorrectly.
(Bug#13985)
MySQL Cluster: New mysqld processes were allowed to connect without a restart of the cluster, causing the cluster to crash. (Bug#13266)
MySQL Cluster: Cluster system status variables were not updated properly. (Bug#11459)
MySQL Cluster: (NDBAPI): Update operations on blobs were not checked for illegal operations.
Read locks with blob update operations are now upgraded from read committed to read shared.
MySQL Cluster:
(Replication): A node failure could send duplicate events,
causing a mysqld replicating tables
containing BLOBs to crash.
MySQL Cluster: The loss of one or more data nodes could sometimes cause ndb_mgmd to use a high amount of CPU (15 percent or more, as opposed to 1 to 2 percent normally).
Partitioning:
Old partition and subpartition files were not always removed
following ALTER TABLE ... REORGANIZE
PARTITION statements.
(Bug#20770)
Disk Data:
On some platforms, ndbd compiled with
gcc 4 would crash when attempting to run
CREATE LOGFILE GROUP.
(Bug#21981)
Disk Data:
INFORMATION_SCHEMA.FILES records for UNDO
files showed incorrect values in the
EXTENT_SIZE, FREE_EXTENTS,
and TOTAL_EXTENTS columns.
(Bug#20073)
Disk Data: Trying to create Disk Data tables when running the cluster in diskless mode caused cluster data nodes to crash.
Disk Data tables are now disabled when running in diskless mode.
Disk Data: An issue with disk allocation could sometimes cause a forced shutdown of the cluster when running a mix of memory and Disk Data tables. (Bug#18780)
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)
Cluster Replication: One or more of the mysqld processes could fail when subjecting a Cluster replication setup with multiple mysqld processes on both the master and slave clusters to high loads. (Bug#19768)
Cluster Replication:
Data definition and data manipulation statements on different
tables were not serialised correctly in the binlog. For example,
there was no guarantee that a CREATE TABLE
statement and an update on a different table would occur in the
same order in the binlog as they did on the cluster being
replicated.
(Bug#18947)
Cluster API:
The storage/ndb directory was missing from
the server binary distribution, making it impossible to compile
NDB API and MGM API applications. This
directory can be found as
/usr/include/storage/ndb after installing
that distribution.
(Bug#21955)
Cluster API:
Invoking the MGM API function
ndb_mgm_listen_event() caused a memory leak.
(Bug#21671)
Cluster API:
The inclusion of my_config.h in
NdbApi.h required anyone wishing to write
NDB API applications against MySQL 5.1 to have a complete copy
of the 5.1 sources.
(Bug#21253)
Cluster API:
The MGM API function ndb_logevent_get_fd()
was not implemented.
(Bug#21129)
Cluster API:
The NdbOperation::getBlobHandle() method,
when called with the name of a nonexistent column, caused a
segmentation fault.
(Bug#21036)
ALTER EVENT statements including only a
COMMENT clause failed with a syntax error on
two platforms: Linux for S/390, and OS X 10.4 for 64-bit PPC.
(Bug#23423)
When event_scheduler was set to
DISABLED, its value was not displayed
correctly by SHOW VARIABLES or
SELECT @@global.event_scheduler.
(Bug#22662)
BIT columns were not replicated properly
under row-based replication.
(Bug#22550)
ALTER EVENT in the body of a stored procedure
led to a crash when the procedure was called. This affected only
those ALTER EVENT statements which changed
the interval of the event.
(Bug#22397)
The optimizer could make an incorrect index choice for indexes with a skewed key distribution. (Bug#22393)
Deleting entries from a large MyISAM index
could cause index corruption when it needed to shrink. Deletes
from an index can happen when a record is deleted, when a key
changes and must be moved, and when a key must be un-inserted
because of a duplicate key. This can also happen in
REPAIR TABLE when a duplicate key is found
and in myisamchk when sorting the records by
an index.
(Bug#22384)
Instance Manager had a race condition involving mysqld PID file removal. (Bug#22379)
yaSSL had a conflicting definition for
socklen_t on hurd-i386 systems.
(Bug#22326)
Conversion of values inserted into a BIT
column could affect adjacent columns.
(Bug#22271)
Some Linux-x86_64-icc packages (of previous releases) mistakenly contained 32-bit binaries. Only ICC builds are affected, not gcc builds. Solaris and FreeBSD x86_64 builds are not affected. (Bug#22238)
mysql_com.h unnecessarily referred to the
ulong type.
(Bug#22227)
The source distribution would not build on Windows due to a
spurious dependency on ib_config.h.
(Bug#22224)
Execution of a prepared statement that uses an
IN subquery with aggregate functions in the
HAVING clause could cause a server crash.
(Bug#22085)
The CSV storage engine failed to detect some
table corruption.
(Bug#22080)
Using GROUP_CONCAT() on the
result of a subquery in the FROM clause that
itself used GROUP_CONCAT() could
cause a server crash.
(Bug#22015)
Running SHOW MASTER LOGS at the same time as
binary log files were being switched would cause
mysqld to hang.
(Bug#21965)
libmysqlclient defined a symbol
BN_bin2bn which belongs to OpenSSL. This
could break applications that also linked against OpenSSL's
libcrypto library. The fix required
correcting an error in a build script that was failing to add
rename macros for some functions.
(Bug#21930)
character_set_results can be
NULL to signify “no conversion,”
but some code did not check for NULL,
resulting in a server crash.
(Bug#21913)
A misleading error message was displayed when attempting to define a unique key that was not valid for a partitioned table. (Bug#21862)
A query that used GROUP BY and an
ALL or ANY quantified
subquery in a HAVING clause could trigger an
assertion failure.
(Bug#21853)
An InnoDB mutex was not aquired and released
under the same condition, leading to deadlock in some rare
situations involving XA transactions.
(Bug#21833)
A NUL byte within a prepared statement string
caused the rest of the string not to be written to the query
log, allowing logging to be bypassed.
(Bug#21813)
COUNT(*) queries with
ORDER BY and LIMIT could
return the wrong result.
This problem was introduced by the fix for Bug#9676, which
limited the rows stored in a temporary table to the
LIMIT clause. This optimization is not
applicable to non-group queries with aggregate functions. The
current fix disables the optimization in such cases.
Using DROP TABLE with concurrent queries
causes mysqld to crash.
(Bug#21784)
INSERT ... SELECT sometimes generated a
spurious Column count doesn't match value
count error.
(Bug#21774)
UPGRADE was treated as a reserved word,
although it is not.
(Bug#21772)
A function result in a comparison was replaced with a constant by the optimizer under some circumstances when this optimization was invalid. (Bug#21698)
Selecting from INFORMATION_SCHEMA.FILES could
crash the server.
(Bug#21676)
Errors could be generated during the execution of certain prepared statements that ran queries on partitioned tables. (Bug#21658)
The presence of a subquery in the ON clause
of a join in a view definition prevented the
MERGE algorithm from being used for the view
in cases where it should be allowed.
(Bug#21646)
When records are merged from the insert buffer and the page
needs to be reorganized, InnoDB used
incorrect column length information when interpreting the
records of the page. This caused a server crash due to apparent
corruption of secondary indexes in
ROW_FORMAT=COMPACT that contain prefix
indexes of fixed-length columns. Data files should not be
corrupted, but the crash was likely to repeat every time the
server was restarted.
(Bug#21638)
For character sets having a mbmaxlen value of
2, any ALTER TABLE statement changed
TEXT columns to
MEDIUMTEXT.
(Bug#21620)
mysql displayed an empty string for
NULL values.
(Bug#21618)
Selecting from a MERGE table could result in
a server crash if the underlying tables had fewer indexes than
the MERGE table itself.
(Bug#21617, Bug#22937)
A loaded storage engine plugin did not load after a server restart. (Bug#21610)
For INSERT ... ON DUPLICATE KEY UPDATE, use
of
VALUES(
within the col_name)UPDATE clause sometimes was
handled incorrectly.
(Bug#21555)
Subqueries with aggregate functions but no
FROM clause could return incorrect results.
(Bug#21540)
mysqldump incorrectly tried to use
LOCK TABLES for tables in the
INFORMATION_SCHEMA database.
(Bug#21527)
The server could crash for the second execution of a function
containing a SELECT statement that uses an
aggregating IN subquery.
(Bug#21493)
Memory overruns could occur for certain kinds of subqueries. (Bug#21477)
A DATE can be represented as an integer (such
as 20060101) or as a string (such as
'2006.01.01'). When a DATE
(or TIME) column is compared in one
SELECT against both representations, constant
propagation by the optimizer led to comparison of
DATE as a string against
DATE as an integer. This could result in
integer comparisons such as 2006 against
20060101, erroneously producing a false
result.
(Bug#21475)
For row-based replication, log rotation could occur at an improper time. (Bug#21474)
myisam_ftdump produced bad counts for common words. (Bug#21459)
Adding ORDER BY to a SELECT
DISTINCT( query could
produce incorrect results.
(Bug#21456)expr)
The URL into the online manual that is printed in the stack trace message by the server was out of date. (Bug#21449)
Database and table names have a maximum length of 64 characters (even if they contain multi-byte characters), but were truncated to 64 bytes.
An additional fix was made in MySQL 5.1.18.
With max_sp_recursion set to 0, a stored
procedure that executed a SHOW CREATE
PROCEDURE statement for itself triggered a recursion
limit exceeded error, though the statement involves no
recursion.
(Bug#21416)
After FLUSH TABLES WITH READ LOCK followed by
UNLOCK TABLES, attempts to drop or alter a
stored routine failed with an error that the routine did not
exist, and attempts to execute the routine failed with a lock
conflict error.
(Bug#21414)
On 64-bit Windows, a missing table generated error 1017, not the correct value of 1146. (Bug#21396)
Table aliases in multiple-table DELETE
statements sometimes were not resolved.
(Bug#21392)
The optimizer sometimes produced an incorrect row-count estimate
after elimination of const tables. This
resulted in choosing extremely inefficient execution plans in
same cases when distribution of data in joins were skewed.
(Bug#21390)
For multiple-table UPDATE statements, storage
engines were not notified of duplicate-key errors.
(Bug#21381)
Using relative paths for DATA DIRECTORY or
INDEX DIRECTORY with a partitioned table
generated a warning rather than an error, and caused
“junk” files to be created in the server's data
directory.
(Bug#21350)
Using EXPLAIN PARTITIONS with a query on a
table whose partitioning expression was based on the value of a
DATE column could sometimes cause the server
to crash.
(Bug#21339)
The feature of being able to recover a temporary table named
#sql_ in
id InnoDB by creating a table named
rsql_
was broken by the introduction of the new identifier encoding in
MySQL 5.1.6
(Bug#21313)id_recover_innodb_tmp_table
It was possible for a stored routine with a
non-latin1 name to cause a stack overrun.
(Bug#21311)
A query result could be sorted improperly when using
ORDER BY for the second table in a join.
(Bug#21302)
Query results could be incorrect if the WHERE
clause contained t., where
key_part
NOT IN (val_list)val_list is a list of more than 1000
constants.
(Bug#21282)
Queries that used the index_merge and
sort_union methods to access an
InnoDB table could produce inaccurate
results. This issue was introduced in MySQL 5.1.10 when a new
handler and bitmap interface was implemented.
(Bug#21277)
For user-defined functions created with CREATE
FUNCTION, the DEFINER clause is not
legal, but no error was generated.
(Bug#21269)
The SELECT privilege was required for an
insert on a view, instead of the INSERT
privilege.
(Bug#21261)
This regression was introduced by Bug#20989
mysql_config --libmysqld-libs did not produce
any SSL options necessary for linking
libmysqld with SSL support enabled.
(Bug#21239)
Subqueries on INFORMATION_SCHEMA tables could
erroneously return an empty result.
(Bug#21231)
mysql_upgrade created temporary files in a possibly insecure way. (Bug#21224)
When DROP DATABASE or SHOW OPEN
TABLES was issued while concurrently in another
connection issuing DROP TABLE,
RENAME TABLE, CREATE TABLE
LIKE or any other statement that required a name lock,
the server crashed.
(Bug#21216, Bug#19403)
The --master-data option for
mysqldump requires certain privileges, but
mysqldump generated a truncated dump file
without producing an appropriate error message or exit status if
the invoking user did not have those privileges.
(Bug#21215)
Using ALTER TABLE ... REORGANIZE PARTITIONS
to reduce the number of subpartitions to 1 caused the server to
crash.
(Bug#21210)
In the package of pre-built time zone tables that is available
for download at timezones.html, the tables now
explicitly use the utf8 character set so that
they work the same way regardless of the system character set
value.
(Bug#21208)
Under heavy load (executing more than 1024 simultaneous complex queries), a problem in the code that handles internal temporary tables could lead to writing beyond allocated space and memory corruption.
Use of more than 1024 simultaneous cursors server wide also could lead to memory corruption. This applies to both stored procedure cursors and C API cursors. (Bug#21206)
When run with the --use-threads option,
mysqlimport returned a random exit code.
(Bug#21188)
A subquery that uses an index for both the
WHERE and ORDER BY clauses
produced an empty result.
(Bug#21180)
Running SHOW TABLE STATUS on any
InnoDB table having at least one record could
crash the server. Note that this was not due to any issue in the
InnoDB storage engine, but rather with
AUTO_INCREMENT handling in the partitioning
code — however, the table did not have to have an
AUTO_INCREMENT column for the bug to
manifest.
(Bug#21173)
Some prepared statements caused a server crash when executed a second time. (Bug#21166)
The optimizer assumed that if (a=x AND b=x)
is true, (a=x AND b=x) AND a=b is also true.
But that is not always so if a and
b have different data types.
(Bug#21159)
Some ALTER TABLE statements affecting a
table's subpartitioning could hang.
(Bug#21143)
Certain malformed INSERT statements could
crash the mysql client.
(Bug#21142)
SHOW INNODB STATUS contained some duplicate
output.
(Bug#21113)
InnoDB was slow with more than 100,000
.idb files.
(Bug#21112)
Creating a TEMPORARY table with the same name
as an existing table that was locked by another client could
result in a lock conflict for DROP TEMPORARY
TABLE because the server unnecessarily tried to
acquire a name lock.
(Bug#21096)
Performing an INSERT on a view that was
defined using a SELECT that specified a
collation and a column alias caused the server to crash .
(Bug#21086)
Incorrect results could be obtained from re-execution of a
parametrized prepared statement or a stored routine with a
SELECT that uses LEFT JOIN
with a second table having only one row.
(Bug#21081)
ALTER VIEW did not retain existing values of
attributes that had been originally specified but were not
changed in the ALTER VIEW statement.
(Bug#21080)
The myisam_stats_method variable was
mishandled when set from an option file or on the command line.
(Bug#21054)
With query_cache_type set to 0,
RESET QUERY CACHE was very slow and other
threads were blocked during the operation. Now a cache reset is
faster and non-blocking.
(Bug#21051)
mysql crashed for very long arguments to the
connect command.
(Bug#21042)
When creating a table using CREATE...SELECT
and a stored procedure, there would be a mismatch between the
binary log and transaction cache which would cause a server
crash.
(Bug#21039)
A query using WHERE did not
return consistent results on successive invocations. The
column =
constant OR
column IS NULLcolumn in each part of the
WHERE clause could be either the same column,
or two different columns, for the effect to be observed.
(Bug#21019)
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)
Performance during an import on a table with a trigger that called a stored procedure was severely degraded. (Bug#21013)
mysql_upgrade produced a malformed
upgrade_defaults file by overwriting the
[client] group header with a
password option. This prevented
mysqlcheck from running successfully when
invoked by mysql_upgrade.
(Bug#21011)
A query of the form shown here caused the server to crash:
SELECT * FROM t1 NATURAL JOIN (
t2 JOIN (
t3 NATURAL JOIN t4,
t5 NATURAL JOIN t6
)
ON (t3.id3 = t2.id3 AND t5.id5 = t2.id5)
);
A SELECT that used a subquery in the
FROM clause that did not select from a table
failed when the subquery was used in a join.
(Bug#21002)
REPLACE ... SELECT for a view required the
INSERT privilege for tables other than the
table being modified.
(Bug#20989)
STR_TO_DATE() sometimes would
return NULL if the %D
format specifier was not the last specifier in the format
string.
(Bug#20987)
A query using WHERE NOT
( yielded a
different result from the same query using the same
column < ANY
(subquery))column and
subquery with WHERE
(.
(Bug#20975)column > ANY
(subquery))
Under certain circumstances,
AVG(
returned a value but
key_val)MAX(
returned an empty set due to incorrect application of
key_val)MIN()/MAX() optimization.
(Bug#20954)
In mixed-format binary logging mode, stored functions, triggers,
and views that use functions in their body that require
row-based logging did not replicate reliably because the logging
did not switch from statement-based to row-based format. For
example, INSERT INTO t SELECT FROM v, where
v is a view that selects
UUID() could cause problems.
This limitation has been removed.
(Bug#20930)
Closing of temporary tables failed if binary logging was not enabled. (Bug#20919)
Use of zero-length variable names caused a server crash. (Bug#20908)
Building mysql on Windows with CMake 2.4
would fail to create libmysqld correctly.
(Bug#20907)
Creating a partitioned table that used the
InnoDB storage engine and then restarting
mysqld with --skip-innodb
caused MySQL to crash.
(Bug#20871)
For certain queries, the server incorrectly resolved a reference to an aggregate function and crashed. (Bug#20868)
If the binary logging format was changed between the times when a locked table was modified and when it was unlocked, the binary log contents were incorrect. (Bug#20863)
It was possible to provide the
ExtractValue() function with
input containing “tags” that were not valid XML;
for example, it was possible to use tag names beginning with a
digit, which are disallowed by the W3C's XML 1.0 specification.
Such cases caused the function to return “junk”
output rather than an error message signalling the user as to
the true nature of the problem.
(Bug#20854)
InnoDB (Partitioning): Updating an
InnoDB table using HASH
partitioning with a composite primary key would cause the server
to hang.
(Bug#20852)
A race condition during slave server shutdown caused an assert failure. (Bug#20850)
mysqldump did not add version-specific
comments around WITH PARSER and
TABLESPACE ... STORAGE DISK clauses for
CREATE TABLE statements, causing the dump
file to fail when loaded into older servers.
(Bug#20841)
For multiple INSERT DELAYED statements
executed in a batch by the delayed-insert handler thread, not
all rows were written to the binary log.
(Bug#20821)
The ExtractValue() function did
not accept XML tag names containing a period
(.) character.
(Bug#20795)
Using aggregate functions in subqueries yielded incorrect
results under certain circumstances due to incorrect application
of
MIN()/MAX()
optimization.
(Bug#20792)
On Windows, inserting into a MERGE table
after renaming an underlying MyISAM table
caused a server crash.
(Bug#20789)
Within stored routines, some error messages were printed incorrectly. A non-null-terminated string was passed to a message-printing routine that expected a null-terminated string. (Bug#20778)
Merging multiple partitions having subpartitions into a single
partition with subpartitions, or splitting a single partition
having subpartitions into multiple partitions with
subpartitions, could sometimes crash the server. These issues
were associated with a failure reported in the
partition_range test.
(Bug#20767, Bug#20893, Bug#20766, Bug#21357)
Searches against a ZEROFILL column of a
partitioned table could fail when the
ZEROFILL column was part of the table's
partitioning key.
(Bug#20733)
If a column definition contained a character set declaration,
but a DEFAULT value began with an introducer,
the introducer character set was used as the column character
set.
(Bug#20695)
An UPDATE that referred to a key column in
the WHERE clause and activated a trigger that
modified the column resulted in a loop.
(Bug#20670)
Issuing a SHOW CREATE FUNCTION or
SHOW CREATE PROCEDURE statement without
sufficient privileges could crash the mysql
client.
(Bug#20664)
With mixed-format binary logging, INSERT
DELAYED statements were logged using statement-based
logging, and they did not replicate properly for statements that
used values such as UUID(),
RAND(), or user-defined
variables that require row-based logging. To correct this, the
DELAYED handler thread how switches to
row-based logging if the logging format is mixed.
(Bug#20633, Bug#20649)
INSERT DELAYED did not honor SET
INSERT_ID or the auto_increment_*
system variables.
(Bug#20627, Bug#20830)
A buffer overwrite error in Instance Manager caused a crash. (Bug#20622)
Loading a plugin caused any an existing plugin with the same name to be lost. (Bug#20615)
A query selecting records from a single partition of a
partitioned table and using ORDER BY
(where
ic DESCic represents an indexed column)
could cause errors or crash the server.
(Bug#20583)
If the auto_increment_offset setting causes
MySQL to generate a value larger than the column's maximum
possible value, the INSERT statement is
accepted in strict SQL mode, whereas but should fail with an
error.
(Bug#20573)
In a view defined with SQL SECURITY DEFINER,
the CURRENT_USER() function
returned the invoker, not the definer.
(Bug#20570)
The fill_help_tables.sql file did not
contain a SET NAMES 'utf8' statement to
indicate its encoding. This caused problems for some settings of
the MySQL character set such as big5.
(Bug#20551)
Scheduled events that invoked stored procedures executing DDL operations on partitioned tables could crash the server. (Bug#20548)
Users who had the SHOW VIEW privilege for a
view and privileges on one of the view's base tables could
not see records in INFORMATION_SCHEMA tables
relating to the base table.
(Bug#20543)
The fill_help_tables.sql file did not load
properly if the ANSI_QUOTES SQL mode was
enabled.
(Bug#20542)
The MD5(),
SHA1(), and
ENCRYPT() functions should
return a binary string, but the result sometimes was converted
to the character set of the argument.
MAKE_SET() and
EXPORT_SET() now use the correct
character set for their default separators, resulting in
consistent result strings which can be coerced according to
normal character set rules.
(Bug#20536)
With the auto_increment_increment system
variable set larger than 1, if the next generated
AUTO_INCREMENT value would be larger than the
column's maximum value, the value would be clipped down to that
maximum value and inserted, even if the resulting value would
not be in the generated sequence. This could cause problems for
master-master replication. Now the server clips the value down
to the previous value in the sequence, which correctly produces
a duplicate-key error if that value already exists in the
column.
(Bug#20524)
In mixed binary logging mode, a temporary switch from
statement-based logging to row-based logging occurs when storing
a row that uses a function such as
UUID() into a temporary table.
However, temporary table changes are not written to the binary
log under row-based logging, so the row does not exist on the
slave. A subsequent select from the temporary table to a
non-temporary table using statement-based logging works
correctly on the master, but not on the slave where the row does
not exist. The fix for this is that replication does not switch
back from row-based logging to statement-based logging until
there are no temporary tables for the session.
(Bug#20499)
If a partitioned InnoDB table contained an
AUTO_INCREMENT column, a
SHOW statement could cause an assertion
failure with more than one connection.
(Bug#20493)
Using EXPLAIN PARTITIONS with a
UNION query could crash the server. This
could occur whether or not the query actually used any
partitioned tables.
(Bug#20484)
Creation of a view as a join of views or tables could fail if the views or tables are in different databases. (Bug#20482)
SELECT statements using GROUP
BY against a view could have missing columns in the
output when there was a trigger defined on one of the base
tables for the view.
(Bug#20466)
CREATE PROCEDURE, CREATE
FUNTION, CREATE TRIGGER, and
CREATE VIEW statements containing multi-line
comments (/* ... */) could not be replicated.
(Bug#20438)
For connections that required a SUBJECT
value, a check was performed to verify that the value was
correct, but the connection was not refused if not.
(Bug#20411)
mysql_upgrade was missing from binary MySQL distributions. (Bug#20403, Bug#18516, Bug#20556)
Some user-level errors were being written to the server's error log, which is for server errors. (Bug#20402)
Using ALTER TABLE ... ENGINE =
, where
x x was not a storage engine supported
by the server, would cause mysqld to crash.
(Bug#20397)
User names have a maximum length of 16 characters (even if they contain multi-byte characters), but were being truncated to 16 bytes. (Bug#20393)
Some queries using ORDER BY ... DESC on
subpartitioned tables could crash the server.
(Bug#20389)
mysqlslap did not enable the
CLIENT_MULTI_RESULTS flag when connecting,
which is necessary for executing stored procedures.
(Bug#20365)
Queries using an indexed column as the argument for the
MIN() and
MAX() functions following an
ALTER TABLE .. DISABLE KEYS statement
returned Got error 124 from storage
engine until ALTER TABLE ... ENABLE
KEYS was run on the table.
(Bug#20357)
When a statement used a stored function that inserted into an
AUTO_INCREMENT column, the generated
AUTO_INCREMENT value was not written into the
binary log, so a different value could in some cases be inserted
on the slave.
(Bug#20341)
Partitions were represented internally as the wrong data type,
which led in some cases to failures of queries such as
SELECT COUNT(*) FROM INFORMATION_SCHEMA.PARTITIONS
WHERE PARTITION_NAME =
'.
(Bug#20340)partition_name'
A stored procedure that used
LAST_INSERT_ID() did not
replicate properly using statement-based binary logging.
(Bug#20339)
PROCEDURE ANALYSE() returned incorrect values
of M
FLOAT( and
M,
D)DOUBLE(.
(Bug#20305)M,
D)
Defining a table partitioned by LIST with a
single PARTITION ... VALUES IN (NULL) clause
could lead to server crashes, particularly with queries having
WHERE conditions comparing the partitioning
key with a constant.
(Bug#20268, Bug#19801)
When using row based replication, a CREATE
TABLE...SELECT statement would be replicated, even if
the table creation failed on the master (for example, due to a
duplicate key failure).
(Bug#20265)
Partition pruning could cause incorrect results from queries,
such missing rows, when the partitioning expression relied on a
BIGINT UNSIGNED column.
(Bug#20257)
For a MyISAM table locked with LOCK
TABLES ...WRITE, queries optimized using the
index_merge method did not show rows inserted
with the lock in place.
(Bug#20256)
mysqldump produced a malformed dump file when dumping multiple databases that contained views. (Bug#20221)
Running InnoDB with many concurrent threads
could cause memory corruption and a seg fault due to a bug
introduced in MySQL 5.1.11.
(Bug#20213)
SUBSTRING() results sometimes
were stored improperly into a temporary table when multi-byte
character sets were used.
(Bug#20204)
The thread for INSERT DELAYED rows was
maintaining a separate AUTO_INCREMENT
counter, resulting in incorrect values being assigned if
DELAYED and non-DELAYED
inserts were mixed.
(Bug#20195)
If a table on a slave server had a higher
AUTO_INCREMENT counter than the corresponding
master table (even though all rows of the two tables were
identical), in some cases REPLACE or
INSERT ... ON DUPLICATE KEY UPDATE would not
replicate properly using statement-based logging. (Different
values would be inserted on the master and slave.)
(Bug#20188)
The --default-storage-engine server option did
not work.
(Bug#20168)
For a table having LINEAR HASH subpartitions,
the LINEAR keyword did not appear in the
SUBPARTITION_METHOD column of the
INFORMATION_SCHEMA.PARTITIONS table.
(Bug#20161)
For a DATE parameter sent via a
MYSQL_TIME data structure,
mysql_stmt_execute() zeroed the
hour, minute, and second members of the structure rather than
treating them as read-only.
(Bug#20152)
perror crashed on Solaris due to
NULL return value of
strerror() system call.
(Bug#20145)
FLUSH TABLES followed by a LOCK
TABLES statement to lock a log table and a non-log
table caused an infinite loop and high CPU use. Now
FLUSH TABLES ignores log tables. To flush the
log tables, use FLUSH LOGS instead.
(Bug#20139)
On Linux, libmysqlclient when compiled with
yaSSL using the icc compiler had a spurious
dependency on C++ libraries.
(Bug#20119)
For an ENUM column that used the
ucs2 character set, using ALTER
TABLE to modify the column definition caused the
default value to be lost.
(Bug#20108)
For mysql, escaping with backslash sometimes did not work. (Bug#20103)
Queries on tables that were partitioned by
KEY and had a VARCHAR
column as the partitioning key produced an empty result set.
(Bug#20086)
A number of dependency issues in the RPM
bench and test packages
caused installation of these packages to fail.
(Bug#20078)
Use of MIN() or
MAX() with GROUP
BY on a ucs2 column could cause a
server crash.
(Bug#20076)
mysqld --flush failed to flush
MyISAM table changes to disk following an
UPDATE statement for which no updated column
had an index.
(Bug#20060)
In MySQL 5.1.11, the --with-openssl and
--with-yassl options were replaced by
--with-ssl. But no message was issued if the
old options were given. Now configure
produces a message indicating that the new option should be used
and exits.
(Bug#20002)
When a statement is executed that does not generate any rows, an extra table map event and associated binrows event would be generated and written to the binary log. (Bug#19995)
Join conditions using index prefixes on utf8
columns of InnoDB tables incorrectly ignored
rows where the length of the actual value was greater than the
length of the index prefix.
(Bug#19960)
AUTHORS and CONTRIBUTORS
were not treated as reserved words.
(Bug#19939)
The query command for
mysqltest did not work.
(Bug#19890)
Shutting down a slave in a replication scenario where temporary tables are in use would cause the slave to produce a core dump. (Bug#19881)
Identifiers with embedded escape characters were not handled
correctly by some SHOW statements due to some
old code that was doing some extra unescaping.
(Bug#19874)
When executing a SELECT with ORDER
BY on a view that is constructed from a
SELECT statement containing a stored
function, the stored function was evaluated too many times.
(Bug#19862)
Using SELECT on a corrupt
MyISAM table using the dynamic record format
could cause a server crash.
(Bug#19835)
Using cursors with READ COMMITTED isolation
level could cause InnoDB to crash.
(Bug#19834)
CREATE DATABASE, RENAME
DATABASE, and DROP DATABASE could
deadlock in cases where there was a global read lock.
(Bug#19815)
The yaSSL library bundled with libmysqlclient
had some conflicts with OpenSSL. Now macros are used to rename
the conflicting symbols to have a prefix of
ya.
(Bug#19810)
The WITH CHECK OPTION was not enforced when a
REPLACE statement was executed against a
view.
(Bug#19789)
Multiple-table updates with FEDERATED tables
could cause a server crash.
(Bug#19773)
On 64-bit systems, use of the cp1250
character set with a primary key column in a
LIKE clause caused a server crash for
patterns having letters in the range 128..255.
(Bug#19741)
make install tried to build files that should already have been built by make all, causing a failure if installation was performed using a different account than the one used for the initial build. (Bug#19738)
InnoDB unlocked its data directory before
committing a transaction, potentially resulting in
non-recoverable tables if a server crash occurred before the
commit.
(Bug#19727)
An issue with yaSSL prevented Connector/J clients from connecting to the server using a certificate. (Bug#19705)
For a MyISAM table with a
FULLTEXT index, compression with
myisampack or a check with
myisamchk after compression resulted in table
corruption.
(Bug#19702)
The EGNINE clause was displayed in the output
of SHOW CREATE TABLE for partitioned tables
when the SQL mode included no_table_options.
(Bug#19695)
A cast problem caused incorrect results for prepared statements that returned float values when MySQL was compiled with gcc 4.0. (Bug#19694)
EXPLAIN PARTITIONS would produce illegible
output in the partitions column if the length
of text to be displayed in that column was too long. This could
occur when very many partitions were defined for the table,
partitions were given very long names, or due to a combination
of the two.
(Bug#19684)
The mysql_list_fields() C API
function returned the incorrect table name for views.
(Bug#19671)
If a query had a condition of the form
, which participated in equality propagation and also
was used for tableX.key
=
tableY.key
ref access, then early
ref-access NULL filtering
was not peformed for the condition. This could make query
execution slower.
(Bug#19649)
Re-execution of a prepared multiple-table
DELETE statement that involves a trigger or
stored function can result in a server crash.
(Bug#19634)
The effect of a stored function or trigger that caused
AUTO_INCREMENT values to be generated for
multiple tables was not logged properly if statement-based
logging was used. Only the first table's value was logged,
causing replication to fail. Under mixed logging format, this is
dealt with by switching to row-based logging for the function or
trigger. For statement-based logging, this remains a problem.
(Bug#19630)
File size specifications for InnoDB data files were case sensitive. (Bug#19609)
CHECK TABLE on a MyISAM
table briefly cleared its AUTO_INCREMENT
value, while holding only a read lock. Concurrent inserts to
that table could use the wrong AUTO_INCREMENT
value. CHECK TABLE no longer modifies the
AUTO_INCREMENT value.
(Bug#19604)
Some yaSSL public function names conflicted with those from
OpenSSL, causing conflicts for applications that linked against
both OpenSSL and a version of libmysqlclient
that was built with yaSSL support. The yaSSL public functions
now are renamed to avoid this conflict.
(Bug#19575)
In the INFORMATION_SCHEMA.FILES table, the
INITIAL_SIZE,
MAXIMUM_SIZE, and
AUTOEXTEND_SIZE columns incorrectly were
being stored as VARCHAR rather than
BIGINT. .
(Bug#19544)
InnoDB failed to increment the
handler_read_prev counter.
(Bug#19542)
Portions of statements related to partitioning were not
surrounded by version-specific comments by
mysqldump, breaking backward compatibility
for dump files.
(Bug#19488)
For row-based replication, the BINLOG command
did not lock tables properly, causing a crash for some table
types.
(Bug#19459)
Column names supplied for a view created on a master server could be lost on a slave server. (Bug#19419)
Repeated DROP TABLE statements in a stored
procedure could sometimes cause the server to crash.
(Bug#19399)
Renaming a database to itself caused a server crash. (Bug#19392)
Race conditions on certain platforms could cause the Instance Manager to fail to initialize. (Bug#19391)
When not running in strict mode, the server failed to convert
the invalid years portion of a DATE or
DATETIME value to '0000'
when inserting it into a table.
This fix was reverted in MySQL 5.1.18.
See also Bug#25301
Use of the --no-pager option caused
mysql to crash.
(Bug#19363)
Multiple calls to a stored procedure that altered a partitioned
MyISAM table would cause the server to crash.
(Bug#19309)
ALTER TABLE ... COALESCE PARTITION did not
delete the files associated with the partitions that were
removed.
(Bug#19305)
Adding an index to a partitioned table that had been created
using AUTO_INCREMENT = caused the value
AUTO_INCREMENT value to
be reset.
(Bug#19281)
Multiple-table DELETE statements containing a
subquery that selected from one of the tables being modified
caused a server crash.
(Bug#19225)
The final parenthesis of a CREATE INDEX
statement occurring in a stored procedure was omitted from the
binary log when the stored procedure was called.
(Bug#19207)
An ALTER TABLE operation 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)
SSL connections using yaSSL on OpenBSD could fail. (Bug#19191)
The dropping of a temporary table whose name contained a
backtick ('`') character was not correctly
written to the binary log, which also caused it not to be
replicated correctly.
(Bug#19188)
ALTER TABLE ... REBUILD PARTITION could cause
the server to hang or crash.
(Bug#19122)
With row-based replication, replicating a statement to a slave where the table had additional columns relat