Administrative Commands

The following table lists the administrative commands:

No. Command Description
1. connect [<dburl> [<username> [<password>]]] Make connection to Graph Database server.
2. disconnect Disconnect from the Graph Database server.
3. info Displays live server information like:
  • server version, up time
  • number of connection on each listener
  • server memory information
  • server transaction information
  • server cache information
  • server database information
4. stop server Stops the Graph Database.
5. dump server stacktrace Request a tread dump on the server console. This is useful to debug server issues like deadlock for instance.
6. checkpoint server Flush server cache to disk. Force data in cache to be written on disk.
7. import [selective ([<nodetypename>]+)] dir=<directory>] Import data from CSV files into the graph database. You can selectively import specific node types with optional "selective" parameter. Imported data is transferred over the network from the Admin console machine to the server machine. The location of the CSV files on the Admin console machine is specified by the "dir" parameter. Default location is: <tgdb-home>/bin/import

See Using the Import feature section for more details.

8. export [selective ([<nodetypename>]+) degree=<degree>] [dir=<directory>] Export data from the graph database to CSV files. You can selectively export specific node types with the "degree" parameter. When "selective" and "degree" parameters are not used, the entire database is exported. Exported data is transferred over the network from server machine to the machine where Admin console is running, in the location specified by the "dir" parameter. Default location is: <tgdb-home>/bin/export

See Using the Export feature section for more details.

9. show connections Lists the connections in the Graph Database server. Shows the users currently connected, how long the users have been connected, and the session ID of the users.
10. kill connection <session_id> Kills a client session, based on session ID, on the Graph Database server.
11. create user <username> passwd=<password> Create a new user in the Graph Database. You can then connect to the Database, with the created user, using the client API.

User name can contain the combination of letters, numbers, and the special characters such as dot (.), dash (-), underscore (_).

Password can contain the combination of letters, numbers, and the special characters such as: ! @ # $ % & * . : ; ?

12. show users List all the users defined in the Database. All the listed users can access the Database.
13. set server loglevel <level> Sets the server log level to one of the following levels:
  • info
  • user1
  • user2
  • user3
  • debug
  • debugmemory
  • debugwire
14. set loglevel <level> Sets the admin log level to one of the following levels:
  • info
  • user1
  • user2
  • user3
  • debug
  • debugmemory
  • debugwire
15. exit Exit from admin.