OtterMind/Chat2DB · error · BusinessException

mysql.account.actionRequired

mysql.account.actionRequired

Error message

mysql.account.actionRequired

What it means

Error "mysql.account.actionRequired" thrown in OtterMind/Chat2DB.

Source

Thrown at chat2db-community-server/chat2db-community-domain/chat2db-community-domain-api/src/main/java/ai/chat2db/community/domain/api/enums/plugin/AccountActionTypeEnum.java:16

package ai.chat2db.community.domain.api.enums.plugin;

import ai.chat2db.community.tools.exception.BusinessException;

public enum AccountActionTypeEnum {
    CREATE_USER,
    ALTER_PASSWORD,
    LOCK_ACCOUNT,
    UNLOCK_ACCOUNT,
    DROP_USER,
    GRANT_PRIVILEGE,
    REVOKE_PRIVILEGE;

    public static AccountActionTypeEnum from(String value) {
        if (value == null) {
            throw new BusinessException("mysql.account.actionRequired");
        }
        try {
            return valueOf(value);
        } catch (IllegalArgumentException e) {
            throw new BusinessException("mysql.account.actionUnsupported", null, e);
        }
    }
}

View on GitHub (pinned to 5ee1e990e7)

Solutions

  1. Pass an explicit account action (create, alter, drop, grant, revoke, etc.) in the request.
  2. Check the client call site to ensure actionType is always populated.

When it happens

Trigger: A MySQL account-management request arrived without an action type.

Common situations: See trigger scenarios.


AI-assisted analysis of OtterMind/Chat2DB@5ee1e990e7 (2026-08-14). Data as JSON: /api/errors/f0ac6b6d26751eed. Report an issue: GitHub.