3378
MySQLERRORNotableInnoDB / TablespacesHIGH confidence
Tablespace cannot be decrypted
Production Risk
Medium — inability to decrypt may block migrations or schema changes.
How to reproduce
trigger — this will error
trigger — this will error
ALTER TABLESPACE ts1 ENCRYPTION='N';
expected output
ERROR 3378 (HY000): This tablespace cannot be decrypted.
Fix
Check default_table_encryption setting
Check default_table_encryption setting
SHOW VARIABLES LIKE 'default_table_encryption'; SET GLOBAL default_table_encryption = OFF;
Why this works
Disabling the global encryption default allows individual tablespaces to be decrypted.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3378 ER_TABLESPACE_CANNOT_BE_DECRYPTED
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev