3298
MariaDBERRORNotableSchema / DDLHIGH confidence
Logfile group not found
Production Risk
Low — DDL fails; no tablespace is created.
How to reproduce
trigger — this will error
trigger — this will error
CREATE TABLESPACE ts1 ADD DATAFILE 'ts1.ibd' USE LOGFILE GROUP nonexistent_lg;
expected output
ERROR 3298 (HY000): Logfile group 'nonexistent_lg' not found.
Fix
Create the logfile group
Create the logfile group
CREATE LOGFILE GROUP lg1 ADD UNDOFILE 'undo1.log' INITIAL_SIZE=10M ENGINE=NDB; CREATE TABLESPACE ts1 ADD DATAFILE 'ts1.ibd' USE LOGFILE GROUP lg1;
Why this works
The logfile group must exist before it can be referenced by a tablespace.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3298 ER_LOGFILE_GROUP_NOT_FOUND
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev