Building the Connection URL

Use the connection URL to supply connection information to the data store that you are accessing. The following is the format of the connection URL for the Simba Trino JDBC Connector, where [Host] is the DNS or IP address of the server and [Port] is the number of the TCP port to connect to:

jdbc:trino://[Host]:[Port];

You can specify additional settings such as any of the connection properties supported by the connector. For a list of configuration options, see Connector Configuration Options.

The example file paths use primarily Windows examples in which backslashes are prefaced with the appropriate Java escape character, for example: c:\\temp. Linux and macOS users should replace these with Unix-style paths, for example: /tmp.

The following is the format of a connection URL that specifies some optional settings:

jdbc:trino://[Host]:[Port];[Property1]=[Value];

For example, to connect to a Trino server using the user name "simba", you would use the following connection URL:

jdbc:trino://192.168.203.141:8080;User=simba;

Important:

  • Properties are case-sensitive.
  • Do not duplicate properties in the connection URL.