{"record":{"id":"d8d0458c390b6ab5","repo":"apache/shardingsphere","slug":"unsupported-command-s","errorCode":null,"errorMessage":"Unsupported command: %s","messagePattern":"Unsupported command: (.+?)","errorType":"exception","errorClass":"UnsupportedCommandException","httpStatus":null,"severity":"error","filePath":"proxy/frontend/dialect/mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/generic/MySQLUnsupportedCommandExecutor.java","lineNumber":38,"sourceCode":"import lombok.RequiredArgsConstructor;\nimport org.apache.shardingsphere.database.protocol.mysql.packet.command.MySQLCommandPacketType;\nimport org.apache.shardingsphere.database.protocol.packet.DatabasePacket;\nimport org.apache.shardingsphere.proxy.frontend.command.executor.CommandExecutor;\nimport org.apache.shardingsphere.proxy.frontend.exception.UnsupportedCommandException;\n\nimport java.util.Collection;\n\n/**\n * Unsupported command packet executor for MySQL.\n */\n@RequiredArgsConstructor\npublic final class MySQLUnsupportedCommandExecutor implements CommandExecutor {\n    \n    private final MySQLCommandPacketType type;\n    \n    @Override\n    public Collection<DatabasePacket> execute() {\n        throw new UnsupportedCommandException(type.toString());\n    }\n}\n","sourceCodeStart":20,"sourceCodeEnd":41,"githubUrl":"https://github.com/apache/shardingsphere/blob/e952770a215630a3659c75d64369168cd3e26b82/proxy/frontend/dialect/mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/generic/MySQLUnsupportedCommandExecutor.java#L20-L41","documentation":"Error \"Unsupported command: %s\" thrown in apache/shardingsphere.","triggerScenarios":"The client sends a MySQL command packet type that the proxy does not implement.","commonSituations":"Drivers issuing commands such as COM_CHANGE_USER, COM_RESET_CONNECTION or binlog commands against the proxy.","solutions":["Use only MySQL commands supported by ShardingSphere-Proxy (query, prepare, execute, ping, quit, etc.).","Run administrative or vendor-specific commands directly against the backend database.","Upgrade ShardingSphere if the command is supported in a newer version."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e952770a215630a3659c75d64369168cd3e26b82","analyzedAt":"2026-08-14T13:54:53.392Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}