Graph Database Server Commands and Controls

To run the Graph Database server you, must run the executable named tgdb. This executable is placed within the bin folder.

Note: A single server instance starts a single database.

The command to run tgdb is: tgdb [cmd] [options] -c|--config <config filename>

Commands can be any one of the following:

Command Format Description
-i, --initdb Initialize a Database. When running this, specify initdb.conf as the config file.

For example: tgdb -i -c <initdb configuration file>

-s, --server Start a Database. When running this, specify tgdb.conf as the config file.

For example: tgdb -s -c <tgdb configuration file>

Options can be any one of the following:

Options Format Description
-f, --force Force creation. This deletes all the data in the directory specified by the conf file. The option can only be used with the -i option. It is valid only for the initdb command.

For example: tgdb -f -i -c <initdb.conf>

-Y, --accept-license Accepts End User License Agreement (EULA) without a prompt. Valid for all commands.
-h, --help Help

To run a new database instance, you must first initialize the database before running it.

After configuring the conf files appropriately, run the following commands:

Command Description
tgdb -i -f -c <initdb conf file> Forcefully initializes a new database instance with the configurations in the conf file.
tgdb -s -c <tgdb conf file> Starts the server with the targeted new database, specified in the tgdb conf file.
Note: The first time you run initdb you will be prompted to accept the License Agreement.