Summary
This article describes how to directly access the built-in database.
Please note that the performance and reliability of the built-in database is very limited, and it is especially prone to failure if the amount of data is large. We do not recommend using the built-in database in production or heavily used test environments.
Solution
5.x and up
-
Shut down the CloudBees CD (CloudBees Flow) server. The database must be disconnected from the CloudBees CD (CloudBees Flow) server while you connect to it, or you will run into this error:
` Database lock acquisition failure: lockFile` -
Launch HSQL Database Manager, located at this path:
/server/wars/commander-server.war/WEB-INF/lib/hsqldb.jar
-
Use the following connection configuration to connect to the database.
driver: HSQLDB Database Engine In-Memory driver: org.hsqldb.jdbcDriver URL: jdbc:hsqldb:/commander User: sa Password: sa
-
Connect to the database. You can now directly view tables and run SQL statements on the database through the interface.
4.2.x
-
Stop ElectricCommander. If it’s still running, the databse lock will prevent you from accessing it.
-
Go to to the Commander installation directory and start the database web UI console:
jre/bin/java -jar server/lib/h2.jar -web -webAllowOthers
Options used:
-web: launch the database’s web UI console
-webAllowOthers: allow access to the database’s web UI console from remote hosts
-
Type
https://localhost:8082
in the browser address bar to access the built-in database’s web UI console. -
Use the following parameters when asked to log in:
driver: HSQLDB Database Engine In-Memory driver: org.hsqldb.jdbcDriver URL: jdbc:hsqldb:/commander User: sa Password: sa
-
Click Connect. The interface that appears in your browser allows you to look at the tables and/or create SQL statements.