---
title: Charmhub | Deploy Trino Server using Charmhub - The Open Operator Collection
description: Deploy the latest version of Trino Server as a Kubernetes Operator on
  any cloud.
url: https://charmhub.io/trino-k8s/docs/how-to-connectors
---

# Trino Server

[Business Data](https://charmhub.io/publisher/businessdata "View all packages from Business Data")

* [Business Data](https://charmhub.io/publisher/businessdata "View all packages from Business Data")

Platform:

stable 39

```
juju deploy trino-k8s
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Contacts

##### Maintainers

+ [Commercial Systems](mailto:jaas-crew@lists.canonical.com)

* [Submit a bug](https://github.com/canonical/trino-k8s-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

### [Connecting a data source to Trino](https://charmhub.io/trino-k8s/docs/how-to-connectors#p-26714-connecting-a-data-source-to-trino)

This is done using a `juju action` and configuration values passed as parameters to this action.

```
# Add a catalog:
juju run trino-k8s/0 add-connector conn-name=name conn-config="connector.name=postgresql
connection-url=jdbc:postgresql://host:port/database
connection-user=user
connection-password=password"
```

Note: the fields required can change sigificantly by database type, see supported connectors and their properties files [here](https://trino.io/docs/current/connector.html).

The user provided should have the maximum permissions you would want any user to have. Restrictions to access can be made on this user but no further permissions can be granted.

### [Removing a catalog from Trino](https://charmhub.io/trino-k8s/docs/how-to-connectors#p-26714-removing-a-catalog-from-trino)

To remove a catalog you must provide the full configuration of that catalog. The user and password must match those that the connection was established with. It is not enough for them to have permissions to the catalog. For this reason we recommend creating a distinct `trino` user for this connection.

```
# Remove a catalog:
juju run trino-k8s/0 remove-connector conn-name=name conn-config="connector.name=postgresql
connection-url=jdbc:postgresql://host:port/database
connection-user=user
connection-password=password"
```

### [Connecting catalog clusters](https://charmhub.io/trino-k8s/docs/how-to-connectors#p-26714-connecting-catalog-clusters)

In order to connect clustered database systems to Trino please connect the read-only and read-write endpoints with 2 separate `juju actions`. The read-only database should be appended with `_ro` to distinguish between the two.

```
salesforce #read-write endpoint
salesforce_ro #read-only endpoint
```

## [Contributing](https://charmhub.io/trino-k8s/docs/how-to-connectors#p-26714-contributing)

Please see the [Juju SDK documentation](https://juju.is/docs/sdk) for more information about developing and improving charms and Contributing for developer guidance.

## [License](https://charmhub.io/trino-k8s/docs/how-to-connectors#p-26714-license)

The Charmed Trino K8s Operator is free software, distributed under the Apache Software License, version 2.0. See License for more details.

---
