`

MYSQL 5.6新特性介绍

 
阅读更多
官方参考:
http://dev.mysql.com/doc/refman/5.6/en/mysql-nutshell.html
一、大的方面变动:

1、新增字典表,InnoDB buffer pool 相关(评:可深入了解)
Several new InnoDB-related INFORMATION_SCHEMA tables provide information about the InnoDB buffer pool, metadata about tables, indexes, and foreign keys from the InnoDB data dictionary, and low-level information about performance metrics that complements the information from the Performance Schema tables.

2、执行计划优化  (评:可持续关注)
Optimizer statistics for InnoDB tables can now persist across server restarts, for improved plan stability. You can also control the amount of sampling done for InnoDB indexes, to make the optimizer statistics more accurate and improve the query execution plan.

3、多表打开优化
InnoDB now limits the memory used to hold table information when many tables are opened

4、内部优化
InnoDB has several internal performance enhancements, including reducing contention by splitting the kernel mutex, moving flushing operations from the main thread to a separate thread, enabling multiple purge threads, and reducing contention for the buffer pool on large-memory systems.

5、死锁写入log
Information about all InnoDB deadlocks can be written to the MySQL server error log, to help diagnose application issues.

二、分区表方面(注:越来越接近ORACLE分区表了)

1、分区交换 (评:想用的功能)
It is now possible to exchange a partition of a partitioned table or a subpartition of a subpartitioned table with a nonpartitioned table

2、在SELECT等dml中指定查询的分区
Explicit selection of one or more partitions or subpartitions is now supported for queries, as well as for many data modification statements, that act on partitioned tables. For example, assume a table t with some integer column c has 4 partitions named p0, p1, p2, and p3. Then the query SELECT * FROM t PARTITION (p0, p1) WHERE c < 5 returns only those rows from partitions p0 and p1 for which c is less than 5.
三、性能方面

(评:看能得到哪些数据,用以监控分析)

Performance Schema.  The Performance Schema includes several new features:
Instrumentation for table input and output. Instrumented operations include row-level accesses to persistent base tables or temporary tables. Operations that affect rows are fetch, insert, update, and delete.
关注:
Event filtering by table, based on schema and/or table names.
关注:
Event filtering by thread. More information is collected for threads.
关注:
Summary tables for table and index I/O, and for table locks.
关注:
Instrumentation for statements and stages within statements.

Configuration of instruments and consumers at server startup, which previously was possible only at runtime.
四、复制方面

Replication and logging.  These replication enhancements were added:

MySQL row-based replication now supports row image control. By logging only those columns required for uniquely identifying and executing changes on each row (as opposed to all columns) for each row change, it is possible to save disk space, network resources, and memory usage. You can determine whether full or minimal rows are logged by setting the binlog_row_image server system variable to one of the values minimal (log required columns only), full (log all columns), or noblob (log all columns except for unneeded BLOB or TEXT columns). See System variables used with the binary log, for more information.
(评:关注怎么设置,减少log量,减少同步压力)

复制校验
中文解释:http://www.zhaokunyao.com/archives/2387
1、校验
Binary logs written and read by the MySQL Server are now crash-safe, because only complete events (or transactions) are logged or read back. By default, the server logs the length of the event as well as the event itself and uses this information to verify that the event was written correctly. You can also cause the server to write checksums for the events using CRC32 checksums by setting the binlog_checksum system variable. To cause the server to read checksums from the binary log, use the master_verify_checksum system variable. The --slave-sql-verify-checksum system variable causes the slave SQL thread to read checksums from the relay log.

2、不是很了解
MySQL now supports logging of master connection information and of slave relay log information to tables as well as files. Use of these tables can be controlled independently, by the --master-info-repository and --relay-log-info-repository server options. Setting --master-info-repository to TABLE causes connection information to be logged in the slave_master_info table; setting --relay-log-info-repository to TABLE causes relay log information to be logged to the slave_relay_log_info table. Both of these tables are created automatically, in the mysql system database.

3、备份
mysqlbinlog now has the capability to back up a binary log in its original binary format. When invoked with the --read-from-remote-server and --raw options, mysqlbinlog connects to a server, requests the log files, and writes output files in the same format as the originals. See Section 4.6.7.3, “Using mysqlbinlog to Back Up Binary Log Files”.

4、延时复制(评:用以数据恢复,历史数据情况)
MySQL now supports delayed replication such that a slave server deliberately lags behind the master by at least a specified amount of time. The default delay is 0 seconds. Use the new MASTER_DELAY option for CHANGE MASTER TO to set the delay.

5\并行执行SLAVE同步
MySQL Replication now supports parallel execution of transactions with multi-threading on the slave.

6、binlog位置参数
The log_bin_basename system variable has been added. This variable contains the complete filename and path to the binary log file
五、优化器

1、explain(评:可以在select以外语句执行)
The EXPLAIN statement now provides execution plan information for DELETE, INSERT, REPLACE, and UPDATE statements. Previously, EXPLAIN provided information only for SELECT statements.

2、优化器增加可选
mysql> SELECT @@optimizer_switch\G

engine_condition_pushdown={on|off}
index_merge={on|off}
index_merge_intersection={on|off}
index_merge_sort_union={on|off}
index_merge_union={on|off}
engine_condition_pushdown={on|off}
index_condition_pushdown={on|off}
mrr={on|off}
mrr_cost_based={on|off}

3、Pushdown Optimization
参考:
http://hidba.org/?p=320


4\ trace SQL (评:更加细致,可以了解下)
参考:http://forge.mysql.com/wiki/MySQL_Internals_Optimizer_tracing

The optimizer now has a tracing capability, primarily for use by developers. The interface is provided by a set of optimizer_trace_xxx system variables and the INFORMATION_SCHEMA.OPTIMIZER_TRACE table
分享到:
评论

相关推荐

    mysql 5.6 新特性-innodb

    mysql 5.6 新特性 innodb

    mysql 5.6 新特性

    5.6新特性mysql

    mysql5.6手册英文版本

    该手册是关于mysql5.6的英文原版。

    MySQL 5.6新特性深入剖析——InnoDB引擎1

    简介MySQL 5.6版本,为MySQL最新的一个大版本,相对于MySQL 5.1/5.5,无论是MySQL Server层面,还是InnoDB Engine层

    MySQL5.6-Replicate架构图(高清)

    MySQL5.6 Replicate 架构图,高清,值得收藏。 ( MySQL 5.6 的新特性之一,是加入了全局事务 ID (Global Transaction ID) 来强化数据库的主备一致性,故障恢复,以及容错能力。官方文档:...

    MySQL5.6用户手册-英文版

    这个是MySQL官方最新的用户手册,对5.6版本的新特性进行详细的说明。目前还没有中文版。

    mysql5.6的新特性

    注意的 ppt 网易DBA 王洪权 读索引 2.检查索引的条件 3.读整行记录 4.检查where条件,过滤数据

    MySQL 5.6 GTID新特性实践

    GTID(Global Transaction ID)是对于一个已提交事务的编号,并且是一个全局唯一的编号。下文给大家介绍MySQL 5.6 GTID新特性实践,感兴趣的朋友一起看看吧

    MySQL5.6基于GTID的主从复制

    MySQL 5.6 的新特性之一,是加入了全局事务 ID (GTID) 来强化数据库的主备一致性,故障恢复,以及容错能力。 什么是GTID? 官方文档:http://dev.mysql.com/doc/refman/5.6/en/replication-gtids.html在这篇文档里,...

    生产库自动化MySQL5.6安装部署详细教程

    本脚本默认启用5.6部分新特性 innodb_buffer_pool_dump_at_shutdown=1 它dump的不是数据,是Id号 innodb_buffer_pool_load_at_startup=1 开启这个两个参数当数据库重启后把这些热数据重新加载回去 只有正常关库才会...

    MySQL内幕揭秘:探索MySQL调优指南,解锁MySQL的强大功能

    2012年:MySQL 5.6发布,带来了全文搜索、NoSQL接口和多线程复制等新特性。 2013年:MySQL 5.7发布,加入了JSON数据类型、有效地调整排序缓存和更好的性能优化等。 2018年:MySQL 8.0发布,提供窗口函数、变量范围和...

    MySQL数据库基础与实例教程 中文PPT版 4.25MB.rar

    本书使用量身定制的案例全面讲解MySQL基础知识以及MySQL5.6新特性,InnoDB全文检索、触发器、存储过程、函数、事务、锁等概念,全部融入该案例。 本书尽量将抽象问题形象化、图形化,复杂问题简单化。即便读者没有...

    mysql-connector-java-5.1.25.zip

    此版本增强了对MySQL 5.6的支持,并提供了一些新的特性,如多语句执行和可插拔式身份验证。此外,MySQL Connector/J 5.1.25还包括了许多重要的错误修复和性能优化,使得它更加可靠和高效。如果你是Java程序员,使用...

    深入学习MySQL事务:ACID特性的实现原理

    本文主要介绍了MySQL事务的基础知识,它的原子性,持久性,隔离性,一致性等方面内容。本文来自搜狐,由火龙果软件Anna编辑...作为一个关系型数据库,MySQL支持事务,本文介绍基于MySQL5.6。首先回顾一下MySQL事务的基

    Centos7 安装 Mysql8教程

    Mysql8新特性: Mysql从5.x版本直接跳跃到8.x,我个人是这么看的: MySQL 5.5 -&gt; MySQL 5 MySQL 5.6 -&gt; MySQL 6 MySQL 5.7 -&gt; MySQL 7 MySQL 8.0 -&gt; MySQL 8 当然也有可能是Mysql6、7内部难产了-_-,自从被Oracle...

    MySql 5.1 参考手册.chm

    1.6.1. MySQL 5.1的新特性 1.7. MySQL信息源 1.7.1. MySQL邮件列表 1.7.2. IRC(在线聊天系统)上的MySQL社区支持 1.7.3. MySQL论坛上的MySQL社区支持 1.8. MySQL标准的兼容性 1.8.1. MySQL遵从的标准是什么 1.8.2. ...

    Linux平台MySQL启动关闭方式总结

    MySQL的启动方法有很多种,下面对比、总结这几种方法的一些差异和特性,下面实验的版本为MySQL 5.6。如有疏漏或不足,敬请指点一二。  1:使用mysqld启动、关闭MySQL服务  mysqld是MySQL的守护进程,我们可以用...

    MySQL中文手册MySQL中文手册

    5.6. 一般安全问题 5.6.1. 通用安全指南 5.6.2. 使MySQL在攻击者面前保持安全 5.6.3. Mysqld安全相关启动选项 5.6.4. LOAD DATA LOCAL安全问题 5.7. MySQL访问权限系统 5.7.1. 权限系统的作用 5.7.2. 权限系统工作...

    MySQL 5.1中文手冊

    1.6.1. MySQL 5.1的新特性 1.7. MySQL信息源 1.7.1. MySQL邮件列表 1.7.2. IRC(在线聊天系统)上的MySQL社区支持 1.7.3. MySQL论坛上的MySQL社区支持 1.8. MySQL标准的兼容性 1.8.1. MySQL遵从的标准是什么 1.8.2. ...

Global site tag (gtag.js) - Google Analytics