3375
MySQLERRORNotableInnoDB / TablespacesHIGH confidence

Invalid tablespace name

Production Risk

Low — DDL fails; no tablespace is created.

How to reproduce
trigger — this will error
trigger — this will error
CREATE TABLESPACE 'invalid name!' ADD DATAFILE 'ts.ibd';

expected output

ERROR 3375 (HY000): Invalid tablespace name.

Fix

Use a valid tablespace name

Use a valid tablespace name
CREATE TABLESPACE my_tablespace ADD DATAFILE 'my_tablespace.ibd';

Why this works

Simple alphanumeric names with underscores satisfy all MySQL naming constraints.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 3375 ER_WRONG_TABLESPACE_NAME

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

← All MySQL errors