Error
Error Code:
1125
MariaDB Error 1125: Function Already Exists
Description
This error indicates an attempt to create a User-Defined Function (UDF) with a name that is already in use by another UDF within the MariaDB server. It prevents the creation of duplicate functions, ensuring unique identification of server-level routines.
Error Message
Function '%s' already exists
Known Causes
3 known causesAttempting to Create Duplicate UDF
This error occurs when a `CREATE FUNCTION` statement is executed for a User-Defined Function (UDF) whose name is already in use within the current MariaDB server instance.
Redeploying Without Dropping
When updating or redeploying an existing User-Defined Function, the `CREATE FUNCTION` statement will fail if the function was not explicitly removed using `DROP FUNCTION` beforehand.
Conflicting Naming Conventions
Poor naming practices or lack of awareness of existing UDFs can lead to accidental attempts to reuse a function name that is already defined globally on the server.
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