DBeaver uses MariaDB Connector/J, and the driver disconnects after completing the query.
We are trying to use a MariaDB feature that depends on the session, so we need to run the query and keep the session alive for another query later to gather the performance profiles.
We have a workaround:
- highlight the SQL statements for running, then
- run them by "Execute script",
Alt + X.
However, we wonder how to keep DBeaver holding on to the same session and not disconnecting after each query.