You can use the ij tool to connect to a Derby database.
You must include the /bin directory in your PATH environment variable to run
ij.
You can run ij by typing the following command:
ij
The ij script executes the ij program and sets up environment
variables like CLASSPATH.
To create a database with ij, type the following command:
ij> connect 'jdbc:derby:testdb;create=true';
This command creates a database called testdb in the current directory, populates the system tables, and connects to the database. You can then execute any SQL statements from
the ij command line.
When you are ready to leave ij, type:
ij> exit;
See the Derby Tools and Utilities Guide for
more information on running ij.