MXS-1452: Add support for KILL USER <name>
Added support for killing queries by username. This will kill all connections from that particular user on all servers.
This commit is contained in:
@ -78,16 +78,13 @@ transaction or change the autocommit mode using a prepared statement.
|
||||
|
||||
* Compression is not included in the MySQL server handshake.
|
||||
|
||||
* MariaDB MaxScale will intercept `KILL <thread_id>` statements which are of the
|
||||
form `KILL 3`, `KILL CONNECTION 321` and `KILL QUERY 8`. These queries are not
|
||||
routed to backends because the `<thread_id>` sent by the client does not equal a
|
||||
backend id. MaxScale reacts to a thread kill command by killing the session with
|
||||
the given id if the user and host of the issuing session and the target session
|
||||
match. Query kill command is not supported and results in an error message. For
|
||||
MaxScale to recognize the *KILL* statement, the statement must start right after
|
||||
the command byte, have no comments and have minimal whitespace. These
|
||||
limitations are in place to limit the parsing MaxScale needs to do to every
|
||||
query.
|
||||
* MariaDB MaxScale does not support `KILL QUERY ID <query_id>` type
|
||||
statements. If a query by a query ID is to be killed, it needs to be done
|
||||
directly on the backend databases.
|
||||
|
||||
* The `KILL` commands are executed asynchronously and the results are
|
||||
ignored. Due to this, they will always appear to succeed even if the user is
|
||||
lacking the permissions.
|
||||
|
||||
## Authenticator limitations
|
||||
|
||||
|
Reference in New Issue
Block a user