Error
Error Code:
1464
MariaDB Error 1464: Unsupported Spatial Index Type
Description
This error occurs when attempting to create a `SPATIAL` index on a table that uses a storage engine which does not support this specific index type. `SPATIAL` indexes are specialized for geometric data, and not all MariaDB engines provide this functionality. It typically arises during `CREATE TABLE` or `ALTER TABLE` statements.
Error Message
The used table type doesn't support SPATIAL indexes
Known Causes
3 known causesUnsupported Storage Engine
The table's chosen storage engine, such as older versions of MyISAM, does not support `SPATIAL` indexes.
MariaDB Version Incompatibility
The specific MariaDB version being used, or the engine version within it, may not include support for `SPATIAL` indexes.
Temporary Table or View
Attempting to apply a `SPATIAL` index to a temporary table or a view, which inherently lack this capability.
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