How to access query history database
Overview
All executed queries are stored in an internal H2 database.
H2 doesnāt support multiple active connections to the same embedded database. To avoid conflicts with the running system, make a copy of the internal database and connect to that copy:
Accessing the database
-
Create the target folder inside the container.
-
Copy the database folder.
-
Connect to the
H2 Embedded V.2
driver:-
Set the path to
${workspace}/sample/qmdb/qmdb
. -
Default login and password aren't required unless changed in the Query manager database configuration.
Info
The
H2 Embedded V.2
driver might be disabled by default. To enable it, see Server configuration and administration. -
-
Open the
QM_QUERY
table to view the Query History.