3377
MySQLERRORNotableInnoDB / TablespacesHIGH confidence

Tablespace cannot be encrypted

Production Risk

Low — DDL fails; no change to the tablespace.

How to reproduce
trigger — this will error
trigger — this will error
ALTER TABLESPACE innodb_system ENCRYPTION='Y';

expected output

ERROR 3377 (HY000): This tablespace cannot be encrypted.

Fix

Enable system tablespace encryption at startup

Enable system tablespace encryption at startup
-- Add to my.cnf: innodb_sys_tablespace_encrypt=ON

Why this works

System tablespace encryption is a server startup option, not a runtime DDL operation.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 3377 ER_TABLESPACE_CANNOT_BE_ENCRYPTED

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

← All MySQL errors