{"record":{"id":"e68f56d6a3d444b1","repo":"OtterMind/Chat2DB","slug":"mysql-account-privilegeunsupported","errorCode":"mysql.account.privilegeUnsupported","errorMessage":"mysql.account.privilegeUnsupported","messagePattern":"mysql\\.account\\.privilegeUnsupported","errorType":"error_code","errorClass":"BusinessException","httpStatus":null,"severity":"error","filePath":"chat2db-community-server/chat2db-community-plugins/chat2db-community-mysql/src/main/java/ai/chat2db/plugin/mysql/enums/account/MysqlPrivilege.java","lineNumber":39,"sourceCode":"    TRIGGER(\"TRIGGER\"),\n    EVENT(\"EVENT\"),\n    CREATE_TEMPORARY_TABLES(\"CREATE TEMPORARY TABLES\");\n\n    private final String sqlName;\n\n    MysqlPrivilege(String sqlName) {\n        this.sqlName = sqlName;\n    }\n\n    public static List<String> names() {\n        return Arrays.stream(values()).map(Enum::name).toList();\n    }\n\n    public static String sqlName(String value) {\n        try {\n            return MysqlPrivilege.valueOf(value.trim().toUpperCase(Locale.ROOT)).sqlName;\n        } catch (IllegalArgumentException | NullPointerException e) {\n            throw new BusinessException(\"mysql.account.privilegeUnsupported\");\n        }\n    }\n}\n","sourceCodeStart":21,"sourceCodeEnd":43,"githubUrl":"https://github.com/OtterMind/Chat2DB/blob/5ee1e990e73fbcae1969dc554be254fedb3ab888/chat2db-community-server/chat2db-community-plugins/chat2db-community-mysql/src/main/java/ai/chat2db/plugin/mysql/enums/account/MysqlPrivilege.java#L21-L43","documentation":"Error \"mysql.account.privilegeUnsupported\" thrown in OtterMind/Chat2DB.","triggerScenarios":"A privilege string was passed that is not a recognized MySQL privilege.","commonSituations":"See trigger scenarios.","solutions":["Use one of the privileges enumerated in MysqlPrivilege.","Check for typos or unsupported privilege names in the request."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ee1e990e73fbcae1969dc554be254fedb3ab888","analyzedAt":"2026-08-14T07:05:03.077Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}