Common SQL Errors

MySQL Error 1572: ER_PARTITION_MERGE_ERROR - How to Fix Engine cannot be used in partitioned tables

Galaxy Team
August 7, 2025

<p>The server blocks partitioned table operations because the chosen storage engine does not support partitioning.</p>

Sign up for the latest in common SQL errors from the Galaxy Team!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

What is MySQL error code 1572?

<p>MySQL Error 1572 ER_PARTITION_MERGE_ERROR arises when you try to create or modify a partitioned table with an engine that lacks partition support. Convert the table to InnoDB or remove the PARTITION clause to resolve the issue.</p>

Error Highlights

Typical Error Message

Engine cannot be used in partitioned tables

Error Type

Storage Engine Compatibility Error

Language

MySQL

Symbol

ER_PARTITION_MERGE_ERROR

Error Code

1572

SQL State

HY000

Explanation

Table of Contents

What does MySQL Error 1572 ER_PARTITION_MERGE_ERROR mean?

MySQL throws the ER_PARTITION_MERGE_ERROR (Error 1572, SQLSTATE HY000) with message 'Engine cannot be used in partitioned tables' when a CREATE TABLE, ALTER TABLE, or MERGE operation uses a storage engine that lacks native partitioning support.

When does this error appear?

The error appears during DDL containing a PARTITION clause or partition merge on a table defined with an unsupported engine such as MyISAM, MEMORY, or FEDERATED.

Why does MySQL block unsupported engines?

Partition management relies on internal engine features. Engines without the partition handler cannot guarantee data integrity across partitions, so MySQL enforces this restriction at execution time.

Which MySQL versions are affected?

All partition-capable MySQL versions enforce this rule. MySQL 8.0 limits partitioned tables to InnoDB and NDB; earlier releases permitted MyISAM but later removed support.

Is data at risk?

No data loss occurs. The statement fails atomically, and the table remains unchanged until you migrate it to a compatible engine or drop partitioning.

Common Causes

Using MyISAM with PARTITION clause

MyISAM tables do not support partitioning, so any CREATE TABLE ... ENGINE=MyISAM PARTITION BY ... fails with Error 1572.

Altering an existing MyISAM table to add partitions

Running ALTER TABLE t1 PARTITION BY HASH(id) on a MyISAM table triggers the error because the engine remains incompatible.

Merging partitions on a MEMORY table

A MERGE or EXCHANGE PARTITION command fails for MEMORY tables because the engine cannot manage partition metadata.

Third-party plugin engine without partition handler

Custom engines compiled without the partition handler interface raise the same error when used in partition definitions.

Related Errors

ER_CHECK_NO_SUCH_TABLE

Raised when partition EXCHANGE references a non-existent table.

ER_NOT_SUPPORTED_YET

Appears when a feature such as multi-column list partitioning is not supported in the current MySQL version.

ER_PARTITION_FUNC_NOT_ALLOWED

Thrown when the partitioning function uses a disallowed expression.

ER_PARTITION_ENGINE_DEPRECATED_FOR_TABLE

Warns that the chosen engine will soon lose partitioning support.

FAQs

Can I enable partitioning for MyISAM in MySQL 8.0?

No. MySQL 8.0 removed partitioning support from MyISAM. Convert the table to InnoDB instead.

Does switching engines affect indexes?

Yes. Engine conversion rebuilds the table. Confirm that all indexes, foreign keys, and constraints are recreated in the new engine.

Is there downtime when converting large tables?

ALTER TABLE ... ENGINE=InnoDB locks the table for the duration. Use pt-online-schema-change or MySQL 8.0 instant ALTER to minimise downtime.

How does Galaxy help avoid this error?

Galaxy highlights incompatible engine-partition combinations during code completion and lets teams share corrected DDL in an endorsed Collection.

Start Querying with the Modern SQL Editor Today!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

Check out some other errors

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie Logo
Bauhealth Logo
Truvideo Logo