EMS logo

Products Navigation

choose your database tool

Our Partnership Status

Microsoft Certified Partner
Oracle Certified Partner
Embarcadero Technology Partner

SQL Industry News

MySQL News

MySQL 5.1.6-alpha released.

MySQL 5.1.6, a new version of the popular Open Source Database Management System, has been released. The Community Edition is now available in source and binary form for a number of platforms from our download pages and mirror sites.

Note that not all mirror sites may be up to date at this point in time - if you can't find this version on some mirror, please try again later or choose another download site.

This is a new alpha development release, adding new features and fixing recently discovered bugs.

NOTE: This Alpha release, as any other pre-production release, should not be installed on ``production'' level systems or systems with critical data.

Please refer to our bug database for more details about the individual bugs fixed in this version.

Changes in release 5.1.6:

Functionality added or changed:

  • Packaging changes: MySQL 5.1.6 introduces some changes to distribution packaging:
    • Distributions include both a mysqld optimized server and mysqld-debug debugging server. There is no separate debug distribution.
    • There is no longer a mysqld-max server.
    • Server binaries are no longer stripped, except for RPM distributions.
    • Binary distributions for Unix and Unix-like systems no longer include safe_mysqld as a link to mysqld_safe. safe_mysqld has been deprecated since MySQL 4.0 and is now removed.
  • Events: MySQL 5.1.6 introduces the Events Scheduler, which allows one to schedule SQL statements for execution at predetermined times. Events can be transient (one-time-only) or recurrent at regular intervals, and may execute queries and statements permitted in stored routines, including compound statements.
    • The CREATE EVENT statement creates events. Users must have the EVENT privilege to create events.
    • Events can be altered after creation (with ALTER EVENT) and dropped when no longer needed (with DROP EVENT).
    • For more information, see dev.mysql.com/doc/refman/5.1/en/events.html.
  • INCOMPATIBLE CHANGE: This release introduced the TRIGGER privilege. Previously, the SUPER privilege was needed to create or drop triggers. Now those operations require the TRIGGER privilege. This is a security improvement because you no longer need to grant users the SUPER privilege to enable them to create triggers. However, the requirement that the account named in a trigger's DEFINER clause must have the SUPER privilege has changed to a requirement for the TRIGGER privilege. After upgrading, be sure to update your grant tables as described in Section 5.5, "mysql_fix_privilege_tables --- Upgrade MySQL System Tables." This process will assign the TRIGGER privilege to all accounts that had the SUPER privilege. (After updating, you might also consider whether any of those accounts no longer need SUPER.) If you fail to update the grant tables, triggers may fail when activated.
  • INCOMPATIBLE CHANGE: Due to a change in the naming scheme for partitioning and subpartitioning files, it is not possible for the server to read partitioned tables created in previous MySQL versions. A suggested workaround is (1) to create a non- partitioned table with the same table schema using a standard CREATE TABLE statement (that is, with no partitioning clauses) and then (2) to issue a SELECT INTO to copy the data into the non-partitioned table before the upgrade; following the upgrade, you can partition the new table using ALTER TABLE ... PARTITION BY .... Alternatively, you can dump the table using mysqldump prior to upgrading and reload it afterwards with LOAD DATA. In either case, you should drop the pre-5.1.6 partitioned tables before upgrading to 5.1.6 or later.
  • Important: If any partitioned tables that were created prior to MySQL 5.1.6 are present following an upgrade to MySQL 5.1.6 or later, it is also not possible to read from the INFORMATION_SCHEMA.PARTITIONS table, nor will you be able to drop those tables or the database or databases in which they are located. In this event, you must: (1) shut down mysqld; (2) manually delete the table, partition, and (if any) subpartition files; and then (3) restart the MySQL Server.
  • INCOMPATIBLE CHANGE: Words with apostrophes are now matched in a FULLTEXT search against non-apostrophe words (for example, a search for Jerry will match against the term Jerry's). Users upgrading to this version must issue REPAIR TABLE statements for tables containing FULLTEXT indexes.
  • Partition pruning. A new optimization now ensures searches of partitioned tables use only those partitions relevant to the search. The optimization also affects INSERT and UPDATE operations on partitioned tables, making those operations faster on partitioned table than in earlier versions of MySQL.
  • Replication between MySQL Clusters is now supported. It is now also possible to replicate between a MySQL Cluster and a non-cluster database. See Section 16.7, "MySQL Cluster Replication."
  • The mysqldump utility now supports an option for dumping tablespaces. Use "-Y" or "--all-tablespaces" to enable this functionality.
  • Partition support is not an "engine", but it was included in the output of SHOW ENGINES. Now it is not. The have_partition_engine was renamed to have_partitioning.
  • ANALYZE TABLE is now supported for partitioned tables.
  • Support for OPTIMIZE, CHECK, and REPAIR of partitioned tables has been added.
  • The slow query and general logs can now be queried in table form, using the CSV engine; that is, it's now possible to SELECT FROM mysql.slow_log and SELECT FROM mysql.general_log.
  • Added the --log-output option for controlling whether log files or log tables are used.
  • Added the character_set_filesystem system variable.
  • Added the event_scheduler system variable.
  • Added the ndb_extra_logging system variable.
  • Added the FILES table to INFORMATION_SCHEMA.
  • Added the EVENTS table to INFORMATION_SCHEMA.
  • The ARCHIVE storage engine supports the AUTO_INCREMENT column attribute and the AUTO_INCREMENT table option. Section 14.8, "The ARCHIVE Storage Engine."
  • Fixed a crash when fulltext search parser plugin returned more words than half of the length (in bytes) of the query string.
  • Significant optimizations of partition management has been performed for non-NDB partitioned tables. This relates to ALTER TABLE DROP PARTITION, ALTER TABLE ADD PARTITION, ALTER TABLE REORGANIZE PARTITION.
    • Now adding a new partition to RANGE/LIST partitioned can be done without touching other partitions and the same with DROP PARTITION and REORGANIZE will only reorganize those partitions necessary to reorganize.
  • The ALTER TABLE REORGANIZE PARTITION has been changed, previously the syntax used the keyword REORGANISE.
  • A number of new partition commands have been added:

Source: dev.mysql.com