OtterMind/Chat2DB · error · BusinessException

mysql.account.scopeRequired

mysql.account.scopeRequired

Error message

mysql.account.scopeRequired

What it means

Error "mysql.account.scopeRequired" 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/PrivilegeScopeEnum.java:12

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

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

public enum PrivilegeScopeEnum {
    GLOBAL,
    DATABASE,
    TABLE;

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

View on GitHub (pinned to 5ee1e990e7)

Solutions

  1. Specify a privilege scope (global, database, or table) for the grant/revoke request.

When it happens

Trigger: A MySQL privilege operation was requested without a scope.

Common situations: See trigger scenarios.


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