`

1.4.1. What's New in MySQL 5.1

阅读更多

1.4.1. What's New in MySQL 5.1

The following features have been added to MySQL 5.1.

  • Partitioning.  This capability enables distributing portions of individual tables across a file system, 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 TABLEALTER 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 18, 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 16.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 22.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 Section 19.4, “Using the 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 themysql database. If logging is enabled, either or both destinations can be selected. The --log-outputoption 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.8, “mysql_upgrade — Check Tables for MySQL Upgrade”. (Authors: Alexey Botchkov, Mikael Widenius)

  • MySQL Cluster.  MySQL Cluster is now released as a separate product, based on MySQL 5.1 but with the addition of the NDBCLUSTER storage engine. Clustering support is no longer available in mainline MySQL 5.1 releases. MySQL Cluster releases are identified by a 3-part NDB version number; currently, the MySQL Cluster NDB 6.2 and MySQL Cluster NDB 6.3 release series are available for production use.

    Some of the changes in MySQL Cluster since MySQL 5.0 are listed here:

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

    • MySQL Cluster disk data storage.  Formerly, the NDBCLUSTER storage engine was strictly in-memory; now, 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 17.11, “MySQL Cluster Disk Data Tables”, for more information.

    • 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.

     

    Many other new features and improvements have been made to the NDBCLUSTER storage engine in MySQL Cluster NDB 6.2 and MySQL Cluster NDB 6.3; for more information about these, see Section 17.14, “MySQL Cluster Development Roadmap”.

  • 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 than was available in MySQL 5.0. New tables in the INFORMATION_SCHEMA database includeFILESEVENTSPARTITIONSPROCESSLISTENGINES, 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 11.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. SeeSection 4.5.7, “mysqlslap — Load Emulation Client”. (Authors: Patrick Galbraith, Brian Aker)

分享到:
评论

相关推荐

    jquery-1.4.1.min.js文件

    jquery-1.4.1.min.js文件

    spring-data-redis-1.4.1.RELEASE

    spring-data-redis-1.4.1.RELEASE

    nacos-server-1.4.1.tar.gz 安装包下载

    2. **解压**:使用解压缩工具(如tar命令)解压文件,通常命令为`tar -zxvf nacos-server-1.4.1.tar.gz`。 3. **运行**:进入解压后的目录,启动Nacos。在Linux和macOS中,可以执行`sh startup.sh -m standalone`...

    最新版windows nacos-server-1.4.1.zip

    在Windows环境中部署Nacos Server 1.4.1,用户需要解压提供的"nacos-server-1.4.1.zip"压缩包,运行启动脚本,然后通过Web界面或API进行操作。确保系统环境已经安装了Java运行环境,因为Nacos是基于Java的。对于初次...

    nacos-server-1.4.1.tar.gz

    Nacos-server-1.4.1.tar.gz 是Nacos的一个特定版本,即1.4.1版本的源码或二进制包,通常用于在Linux环境中部署和运行Nacos服务器。 在深入讲解之前,先了解一些基本概念: 1. **服务发现**:在分布式系统中,服务...

    scikit_learn-1.4.1.post1-cp310-cp310-win_amd64.whl

    该资源为scikit_learn-1.4.1.post1-cp310-cp310-win_amd64.whl,欢迎下载使用哦!

    commons-net-1.4.1.jar

    在这个版本中,我们聚焦于"commons-net-1.4.1.jar",这是一个专注于FTP(文件传输协议)功能的组件。该库为Java开发者提供了丰富的API,以便在他们的应用程序中轻松地集成FTP服务。 FTP是互联网上最古老的协议之一...

    mail-1.4.1.jar

    《Java邮件API详解——以mail-1.4.1.jar为例》 在Java开发中,进行电子邮件的发送是一项常见的任务,而实现这一功能的核心库便是`mail-1.4.1.jar`。这个库提供了全面的邮件处理能力,包括创建、发送、接收以及管理...

    jquery-migrate-1.4.1.min.js

    jquery-migrate-1.4.1.min.js 包含以下文件: jquery-migrate-1.4.1.min.js jquery-migrate-1.4.1.js // 这个是源码哦 截至2017.11.21, jQuery1.x 稳定版本

    xstream-1.4.1.jar

    xstream-1.4.1.jar XML解析

    jasmine_1.4.1.apk.zip

    标题中的“jasmine_1.4.1.apk.zip”表明这是一个使用ZIP格式压缩的文件,其中包含了名为“jasmine_1.4.1.apk”的应用软件。ZIP是一种广泛使用的文件压缩格式,允许用户将多个文件或目录打包成一个单一的可下载单元,...

    axis2-adb-1.4.1.jar

    axis2-adb-1.4.1.jar axis2-adb-1.4.1.jar

    alibaba-nacos-server-1.4.1.tar.gz

    2. **下载与解压**:下载alibaba-nacos-server-1.4.1.tar.gz压缩包,解压到指定目录。 3. **启动与停止**:通过bin目录下的启动脚本(如startup.sh或startup.cmd)启动Nacos Server,使用shutdown.sh或shutdown.cmd...

    apache的FTP包commons-net-1.4.1.jar,jakarta-oro-2.0.8.jar

    Apache的FTP库是Java开发中一个非常实用的工具,它主要包含了两个核心的JAR包:`commons-net-1.4.1.jar`和`jakarta-oro-2.0.8.jar`。这两个包提供了丰富的功能,允许开发者在Java应用中实现FTP(文件传输协议)的...

    JavaCV两个必须jar包:javacpp-1.4.1.jar和javacv-platform-1.4.1.jar

    在JavaCV项目中,有两个非常重要的JAR包:`javacpp-1.4.1.jar`和`javacv-platform-1.4.1.jar`。 `javacpp-1.4.1.jar`是JavaCPP库的核心组件,它的主要作用是为Java程序员提供一个桥梁,使得他们可以直接调用C++库的...

    commons-net-1.4.1.jar功能实现demo

    标题中的"commons-net-1.4.1.jar"是一个Java库,主要用于网络相关的操作,特别是FTP(文件传输协议)的支持。这个库是Apache Commons Net项目的一部分,它提供了一系列的类和方法来帮助开发者处理各种网络协议,包括...

Global site tag (gtag.js) - Google Analytics