3376
MySQLERRORNotableInnoDB / TablespacesHIGH confidence

Tablespace encryption not supported by the storage engine

Production Risk

Low — DDL fails; no table is created.

How to reproduce
trigger — this will error
trigger — this will error
CREATE TABLE t (id INT) ENGINE=MyISAM ENCRYPTION='Y';

expected output

ERROR 3376 (HY000): Tablespace encryption is not supported by the storage engine.

Fix

Switch to InnoDB for encrypted tables

Switch to InnoDB for encrypted tables
CREATE TABLE t (id INT) ENGINE=InnoDB ENCRYPTION='Y';

Why this works

InnoDB is the only MySQL engine supporting transparent tablespace encryption.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 3376 ER_TABLESPACE_ENCRYPTION_NOT_SUPPORTED_BY_ENGINE

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MySQL errors