Skip to content

Commit 9221020

Browse files
authored
Merge pull request #31 from metabase/presto-mac
2 parents dd6e5b3 + 0c129b1 commit 9221020

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@ Rather than use Docker, you can run Presto with Postgres with the following step
7979
- Follow [these
8080
steps](https://prestodb.io/docs/current/installation/deploy-brew.html#deploy-presto-on-an-apple-silicon-mac-using-homebrew)
8181
to install presto using homebrew
82-
- Add a properties file for postgresql in `/usr/local/Cellar/prestodb/<version>/libexec/etc/catalog`, called `postgresql.properties` with the following contents:
82+
- Add a properties file for postgresql in `/usr/local/Cellar/prestodb/<version>/libexec/etc/catalog`, called
83+
`test_data.properties` (`test_data` is the catalog name) with the following contents:
8384
```
8485
connector.name=postgresql
85-
connection-url=jdbc:postgresql://localhost:5432/test-data
86+
connection-url=jdbc:postgresql://localhost:5432/test_data
8687
connection-user=<mb-postgresql-test-user>
8788
connection-password=<mb-postgresql-test-password>
8889
```
90+
- To run the presto-jdbc driver tests, you'll need to create a database `test_data` on the postgres server that <mb-postgresql-test-user> has all privileges to, and create a schema in the database named "default".
8991
- Start the presto server with `/usr/local/opt/prestodb/bin/presto-server run`
9092

9193
Alternatively, Luis has created a [Link](https://github.com/paoliniluis/metabase-presto-and-trino) for testing Presto and Trino with Docker that might work too.

0 commit comments

Comments
 (0)