forked from corda/corda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Node adminstration documentation rewrite (corda#3484)
* Slight rewrite of Node administation to reflect some dev/prod differnces, and clear up some options.
- Loading branch information
Showing
3 changed files
with
52 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Database access when running H2 | ||
=============================== | ||
When running a node using the H2 database, the node can be configured to expose its internal database over socket which | ||
can be browsed using any tool that can use JDBC drivers. | ||
The JDBC URL is printed during node startup to the log and will typically look like this: | ||
|
||
``jdbc:h2:tcp://localhost:31339/node`` | ||
|
||
The username and password can be altered in the :doc:`corda-configuration-file` but default to username "sa" and a blank | ||
password. | ||
|
||
Any database browsing tool that supports JDBC can be used, but if you have IntelliJ Ultimate edition then there is | ||
a tool integrated with your IDE. Just open the database window and add an H2 data source with the above details. | ||
You will now be able to browse the tables and row data within them. | ||
|
||
By default the node will expose its database on the localhost network interface. This behaviour can be | ||
overridden by specifying the full network address (interface and port), using the new h2Settings | ||
syntax in the node configuration: | ||
|
||
.. sourcecode:: groovy | ||
h2Settings { | ||
address: "localhost:12345" | ||
} | ||
|
||
The configuration above will restrict the H2 service to run on localhost. If remote access is required, the address | ||
can be changed to 0.0.0.0. However it is recommended to change the default username and password | ||
before doing so. |