On this page
SHOW SESSIONS
Lists the activity log files of past sessions, with their connections, to find the one to open.
Syntax
SHOW SESSIONS [<date> | <from> <to> | <ID>]
Arguments
| Argument | Required | Values | Default |
|---|---|---|---|
<date> | No | Sessions started that day, written yyyy-mm-dd | The 50 most recent sessions |
<from> <to> | No | Sessions started in that period, both days included | |
<ID> | No | Sessions whose Session ID starts with it, or whose Instance ID is it; one session is shown in detail |
Examples
SHOW SESSIONS;
SHOW SESSIONS 2026-10-23;
SHOW SESSIONS 2026-10-01 2026-10-31;
SHOW SESSIONS 9c82f174;
Details
Lists the activity log files of past sessions, newest first, so that you can find the one to open. BroadSQL writes one activity log file per session (from a successful master password to LOGOUT or EXIT), in the activity log folder, when the activity log is on.
- Without argument: the most recent sessions, at most 50.
<date>: the sessions started that day;<from> <to>: the sessions started in that period (dates asyyyy-mm-dd).<ID>: the sessions whose Session ID starts with it, or whose Instance ID is it. A single session found is shown in detail, with its file.
Each row gives when the session started and ended, its Session ID, the Instance ID of the installation that wrote it, and the connections it opened with their Environment. A session without an end is still running, or BroadSQL stopped without being able to record it. Only the names of the files and their session lines are read: the files are listed, never changed.
Related
- Command activity log
- Settings, the Logging settings
- LOGOUT
Last modified in release development.
Found something wrong or unclear on this page? Tell us, with the page address.