Error
Error Code:
1088
MariaDB Error 1088: Duplicate Records Encountered
Description
This error signals that an operation, commonly an `ALTER TABLE` statement, failed because it encountered existing duplicate values in columns intended for a `UNIQUE` constraint. It indicates the database's inability to enforce new uniqueness rules due to pre-existing data integrity violations.
Error Message
Records: %ld Duplicates: %ld
Known Causes
3 known causesAttempted Unique Constraint Violation
Applying a `UNIQUE KEY` or `PRIMARY KEY` to columns that already contain non-unique data causes the `ALTER TABLE` operation to fail.
Data Import Conflicts
Importing new data via `INSERT` or `LOAD DATA` operations introduces duplicate values into columns protected by existing unique constraints.
Schema Migration Inconsistencies
Executing schema migrations that enforce new unique constraints on tables containing pre-existing data that violates these rules.
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