# Command Line (H2 Console)

A CopyStorm/Restore [Tracker Database](/copystorm-restore/reference/tracker-database-tab.md) can be opened, viewed, and manipulated independently of CopyStorm/Restore using the [H2 Console](https://www.h2database.com/html/main.html). The H2 Console is a web based tool built into the H2 which supports all of the regular SQL commands associated with any relational database. The launch script for the H2 Console is located in the same directory as CopyStorm/Restore and called:

* `h2console.bat` (windows)
* `sh h2console.sh` (Linux and Mac)

Note: IT IS IMPORTANT to start the H2 Console using this script if you intend to modify a tracker database using SQL. Otherwise your modifications will failed because required database triggers will not be found (the triggers are implemented in Java and loaded using the *h2console* command provided by Capstorm).

## How to Load a Tracker Database into the Console

There are several key things to understand before launching the H2 Console.

* If your tracker database is named MyTracker123 (on the CopyStorm/Restore General Parameters tab) then the H2 path to your tracker database is:
  * `jdbc:h2:~/.capstorm/copyStormRestoreSets/MyTracker123`
* The default user name for a tracker database is: `root`
* The default password for a tracker database is: `capstorm`
* CopyStorm/Restore cannot be using your tracker database at the same time as the H2 Console.

The following screen shots show the sequence of logging into a H2 database and running a query.

![](/files/eqgl9TsKGCFBglXMddgD)

Once H2 credentials are entered, click on the *Connect* button to login and launch the H2 query tool.

![](/files/p94iEz9XqzXwWVQ5Vx7J)

For additional help see:

* [H2 Tutorials](http://www.h2database.com/html/tutorial.html)

{% file src="/files/ysgUxyzd5nYje7K8dSWM" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.capstorm.com/copystorm-restore/reference/command-line-h2-console.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
