MySQL Partitioning

Abstract

This is the MySQL Partitioning extract from the MySQL 5.6 Reference Manual.

For legal information, see the Legal Notices.

For help with using MySQL, please visit either the MySQL Forums or MySQL Mailing Lists, where you can discuss your issues with other MySQL users.

For additional documentation on MySQL products, including translations of the documentation into other languages, and downloadable versions in variety of formats, including HTML and PDF formats, see the MySQL Documentation Library.

Licensing information—MySQL 5.6.  This product may include third-party software, used under license. If you are using a Commercial release of MySQL 5.6, see this document for licensing information, including licensing information relating to third-party software that may be included in this Commercial release. If you are using a Community release of MySQL 5.6, see this document for licensing information, including licensing information relating to third-party software that may be included in this Community release.

Licensing information—MySQL Cluster.  This product may include third-party software, used under license. If you are using a Commercial release of MySQL Cluster NDB 7.3 or NDB 7.4, see this document for licensing information, including licensing information relating to third-party software that may be included in this Commercial release. If you are using a Community release of MySQL Cluster NDB 7.3 or NDB 7.4, see this document for licensing information, including licensing information relating to third-party software that may be included in this Community release.

Document generated on: 2016-08-15 (revision: 48549)


Table of Contents

Preface and Legal Notices
1 Partitioning
2 Overview of Partitioning in MySQL
3 Partitioning Types
3.1 RANGE Partitioning
3.2 LIST Partitioning
3.3 COLUMNS Partitioning
3.3.1 RANGE COLUMNS partitioning
3.3.2 LIST COLUMNS partitioning
3.4 HASH Partitioning
3.4.1 LINEAR HASH Partitioning
3.5 KEY Partitioning
3.6 Subpartitioning
3.7 How MySQL Partitioning Handles NULL
4 Partition Management
4.1 Management of RANGE and LIST Partitions
4.2 Management of HASH and KEY Partitions
4.3 Exchanging Partitions and Subpartitions with Tables
4.4 Maintenance of Partitions
4.5 Obtaining Information About Partitions
5 Partition Pruning
6 Restrictions and Limitations on Partitioning
6.1 Partitioning Keys, Primary Keys, and Unique Keys
6.2 Partitioning Limitations Relating to Storage Engines
6.3 Partitioning Limitations Relating to Functions
6.4 Partitioning and Locking