-
Sorry for a very basic question, but search doesn't give any clear answers. I want to try Trino running locally. I created the basic configs from the set up tutorial. But when I try to create schema I get a message about catalog, but I don't know how to create catalog.
How should I proceed? Thanks you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
To create a catalog you need to place a properties file in Please also see https://trino.io/docs/current/overview/concepts.html#catalog to understand what catalog means in Trino. Here is the most simple way to provide catalog with TPCH connector https://trino.io/docs/current/connector/tpch.html#configuration After the above you can use one of the below to set the catalog:
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much for this fast and complete answer! It all works now for me. |
Beta Was this translation helpful? Give feedback.
To create a catalog you need to place a properties file in
etc/catalog
directory and restart the Trino service.Please also see https://trino.io/docs/current/overview/concepts.html#catalog to understand what catalog means in Trino.
Here is the most simple way to provide catalog with TPCH connector https://trino.io/docs/current/connector/tpch.html#configuration
After the above you can use one of the below to set the catalog:
--catalog
in the Trino CLI (https://trino.io/docs/current/installation/cli.html)jdbc:trino://host:port/catalog
(https://trino.io/docs/current/installation/jdbc.html)USE <catalog>.<schema>
; (https://trino.io/docs/current/sql/use.htm)