How to set up a Trino connection in Dbeaver

Lucas Fonseca
2 min readJan 12, 2021

Since Dbveaver does not have yet a native driver for Trino, we need to create a custom one for connecting to our databases (the community is implementing it on this PR).

For this tutorial, I am using Dbeaver version 7.3.2 and Trino jar version 351.

Creating a new driver

1 - Open the driver manager at menu Database > Driver Manager

2 - Click on the New button to add a custom connection. It will open the box below.

3 - Fill in the necessary fields:

  • Give it a name in the Driver Name field, I called mine “Trino Custom”.
  • The Driver Type field is just for categorization in the drivers' list, I suggest the “Generic”.
  • In Class Name type: io.trino.jdbc.TrinoDriver

The other fields are not required, you may fill them according to your needs.

4 - Add the Trino JAR. You can download it here on the official documentation page. Once downloaded to your machine, add it by clicking on the Add file button.

Your Driver box should look like this:

5 - Now click on the OK button to save it.

Testing

Create a new connection using your new Driver:

If your connection parameters are ok, you should see the success message:

References

--

--

Lucas Fonseca

Data Engineer@Inventa.shop. Data and Gin lover, always curious, amateur musician, and Gym rat.