Error
Error Code:
1814
MariaDB Error 1814: Tablespace Discarded for Table
Description
Error 1814 indicates that the physical tablespace data file (the .ibd file) for a specific InnoDB table is missing or has been intentionally discarded. This prevents MariaDB from accessing or using the table's data, rendering the table unusable until the tablespace is restored or re-created.
Error Message
Tablespace has been discarded for table '%s'
Known Causes
3 known causesExplicit Tablespace Discard
The `ALTER TABLE ... DISCARD TABLESPACE` command was executed, intentionally removing the physical `.ibd` file for the table.
Manual `.ibd` File Deletion
The table's `.ibd` file was manually deleted from the filesystem outside of MariaDB's control, leading to a mismatch between the data dictionary and the actual files.
Incomplete Restore or Migration
During a database restore, migration, or recovery process, the tablespace file was not correctly imported or linked, leaving the table in a discarded state.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service