Newsletter Subscription | Glossary | Contact Us
Sample data
Home > All Categories > MySQL > Announcements > What's New in MySQL 5.1
Question Title What's New in MySQL 5.1
Authored by: Thomas Darwin
Viewed: 473 times so far

The following features have been added to MySQL 5.1.

  • Partitioning.  This capability enables distributing portions of individual tables across a filesystem, according to rules which can be set when the table is created. In effect, different portions of a table are stored as separate tables in different locations, but from the user point of view, the partitioned table is still a single table. Syntactically, this implements a number of new extensions to the CREATE TABLE, ALTER TABLE, and EXPLAIN ... SELECT statements. As of MySQL 5.1.6, queries against partitioned tables can take advantage of partition pruning. In some cases, this can result in query execution that is an order of magnitude faster than the same query against a non-partitioned version of the same table. See Chapter 16, Partitioning, for further information on this functionality. (Author: Mikael Ronström)

  • Row-based replication.  Replication capabilities in MySQL originally were based on propagation of SQL statements from master to slave. This is called statement-based replication. As of MySQL 5.1.5, another basis for replication is available. This is called row-based replication. Instead of sending SQL statements to the slave, the master writes events to its binary log that indicate how individual table rows are effected. As of MySQL 5.1.8, a third option is available: mixed. This will use statement-based replication by default, and only switch to row-based replication in particular cases. See Section 14.1.2, “Replication Formats”. (Authors: Lars Thalmann, Guilhem Bichot, Mats Kindahl)

  • Plugin API.  MySQL 5.1 adds support for a very flexible plugin API that enables loading and unloading of various components at runtime, without restarting the server. Although the work on this is not finished yet, plugin full-text parsers are a first step in this direction. This allows users to implement their own input filter on the indexed text, enabling full-text search capability on arbitrary data such as PDF files or other document formats. A pre-parser full-text plugin performs the actual parsing and extraction of the text and hands it over to the built-in MySQL full-text search. See Section 27.2, “The MySQL Plugin Interface”. (Author: Sergey Vojtovich)

  • Event scheduler.  MySQL Events are tasks that run according to a schedule. When you create an event, you are creating a named database object containing one or more SQL statements to be executed at one or more regular intervals, beginning and ending at a specific date and time. Conceptually, this is similar to the idea of the Unix crontab (also known as a “ cron job”) or the Windows Task Scheduler. See Chapter 20, Event Scheduler. (Author: Andrey Hristov)

  • Server log tables.  Before MySQL 5.1, the server writes general query log and slow query log entries to log files. As of MySQL 5.1, the server's logging capabilities for these logs are more flexible. Log entries can be written to log files (as before) or to the general_log and slow_log tables in the mysql database. If logging is enabled, either or both destinations can be selected. The --log-output option controls the destination or destinations of log output. See Section 5.2.1, “Selecting General Query and Slow Query Log Output Destinations”. (Author: Petr Chardin)

  • Upgrade program.  The mysql_upgrade program (available as of MySQL 5.1.7) checks all existing tables for incompatibilities with the current version of MySQL Server and repairs them if necessary. This program should be run for each MySQL upgrade. See Section 4.4.7, “ mysql_upgrade — Check Tables for MySQL Upgrade”. (Authors: Alexey Botchkov, Mikael Widenius)

  • MySQL Cluster replication.  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 15.10, “MySQL Cluster Replication”.

  • MySQL Cluster disk data storage.  In MySQL versions previous to 5.1.6, the NDBCluster storage engine was strictly in-memory; beginning with MySQL 5.1.6, it is possible to store Cluster data (but not indexes) on disk. This allows MySQL Cluster to scale upward with fewer hardware (RAM) requirements than previously. In addition, the Disk Data implementation includes a new “ no-steal” restoration algorithm for fast node restarts when storing very large amounts of data (terabyte range). See Section 15.11, “MySQL Cluster Disk Data Tables”.

  • Improved backups for MySQL Cluster.  A fault arising in a single data node during a Cluster backup no longer causes the entire backup to be aborted, as occurred in previous versions of MySQL Cluster.

  • Backup of tablespaces.  The mysqldump utility now supports an option for dumping tablespaces. Use -Y or --all-tablespaces to enable this functionality.

  • Improvements to INFORMATION_SCHEMA MySQL 5.1 provides much more information in its metadata database thasn was available in MySQL 5.0. New tables in the INFORMATION_SCHEMA database include FILES, EVENTS, PARTITIONS, PROCESSLIST, ENGINES, and PLUGINS.

  • XML functions with XPath support.  ExtractValue() returns the content of a fragment of XML matching a given XPath expression. UpdateXML() replaces the element selected from a fragment of XML by an XPath expression supplied by the user with a second XML fragment (also user-supplied), and returns the modified XML. See Section 10.10, “XML Functions”. (Author: Alexander Barkov)

  • Load emulator.  The mysqlslap program is designed to emulate client load for a MySQL server and report the timing of each stage. It works as if multiple clients were accessing the server. See Section 4.5.7, “ mysqlslap — Load Emulation Client”.


    Authors: Patrick Galbraith, Brian Aker
    Source : MySQL AB
Click Here to View all the questions in Announcements category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
User Comments User Comments
There are no user comments for this question. Be the first to post a comment. Click Here
Post Comment Add a Comment
Email Address:
Comment/Message
Verify Code

Post Comment How helpful was this article to you?
Related Questions Related Article
  1. Sun acquires MySQL
  2. Keeping Up - Facebook scaling and replication with MySQL
  3. MySQL Forge 2.0 released
  4. db4free.net now offers MySQL 6.0
  5. Open Source Groups Upbeat, Cautious on Sun-MySQL
  6. MySQL Enterprise Server 5.0.54a
  7. MySQL 5.1 Downloads
  8. Sun Microsystems Announces Agreement to Acquire MySQL, Developer of the World's Most Popular Open Source Database
  9. MySQL Magazine Scoop
  10. The 2008 MySQL Conference & Expo
  11. Virgin Mobile Implements MySQL Enterprise
  12. MySQL AB & Carahsoft to Host a Federal DBA Day on January 24
  13. Enabling Converged Services with MySQL Cluster
  14. Live Webinar: MySQL Performance Tuning Best Practices
  15. MySQL and Sun: A Letter from Mårten Mickos
  16. Sun Microsystems Announces MySQL 5.1
  17. Open-source community sees promise in MySQL deal
  18. A New MySQL Forge is Born
  19. Sun Completes Acquisition of MySQL
  20. Interview with Nokia's Olli Toivanen
  21. 25 years of Open Source
  22. MySQL Jobs
  23. Pursing new ventures with MySQL
  24. Comsys Selects the MySQL Embedded Server for its Voice Over IP Solutions
  25. Testing the new MySQL Forge
  26. New Forge: Missing the bug!
  27. Falcon Storage Engine Beta Now Available
  28. MySQL Server is Open Source, even Backup extensions
  29. Why is MySQL more popular than PostgreSQL?
  30. New Release of MySQL 5.1.25 Release Candidate
  31. Win a Free Ticket to the MySQL Users Conference!
  32. MySQL 5.1 Storage Engine Architecture
  33. New MySQL forums
  34. Try and Buy MySQL on Sun Systems
  35. New Release of MySQL 5.1.24 (Release Candidate)
  36. Materialized Views in MySQL
  37. Web Developer Needed
  38. MySQL Enterprise Server 5.1 is ready
  39. It's official: The future of Sun/MySQL is open...and closed
  40. db4free.net again offers latest MySQL 6.0
  41. MySQL 5 1 Use Case Competition
  42. Donate to help Andrii Nikitin's son Ivan
  43. MySQL Live Webinar Introducing MySQL Products
  44. Ivan Nikitin: Contributions and Medical Status
  45. Live Webinar: MySQL Query Analyzer - Finding and Fixing Problem Queries
  46. Ivan Nikitin has arrived in Germany
  47. New Community release - MySQL 5.0.67
  48. New Release of MySQL 6.0.5
  49. New Release of MySQL 5.1.26
  50. MySQL Jobs
Article Information Additional Information
Article Number: 79
Created: 2008-02-09 7:50 AM
Rating No Rating
 
Article Options Article Options
Print Question Print this Question/Article
Email Question Email this Question/Article to Friend
Export to MS Word Export to MS Word
Bookmark Article
del.icio.us Bookmark del.icio.us Bookmark
Digg It Digg It
Furl It Furl It
Subscribe to Article Subscribe to Article
 
Language Translation Language Translation
 
Search Knowledge Base Search Knowledge Base