#i want to connect my prisma db with dbbeaver.
4 messages · Page 1 of 1 (latest)
You opted for speed from this bot. Let's conjure up an answer right now!
Yes, it's possible to connect Prisma Postgres to DBeaver! You can do it using the @prisma/ppg-tunnel package. Here's how:
Step 1: Start the tunnel
Make sure your DATABASE_URL is set in your .env file, then run:
npx @prisma/ppg-tunnel --host 127.0.0.1 --port 52604
Keep this process running while you use DBeaver. Note the port number from the output. [viewing data guide]
Step 2: Connect in DBeaver
- Open DBeaver and click New Database Connection (or File > New).
- Select PostgreSQL as the database type.
- Select the URL option in the "Connect by" section.
- Enter the URL in this format:
Replacejdbc:postgresql://localhost:52604/postgres?sslmode=disable52604with your actual port number. - No username or password is needed — authentication is handled by the tunnel.
- Click Test Connection, and if successful, click Finish. [DBeaver guide]
Note: The TCP tunnel approach is deprecated in favor of direct TCP connections. Starting from Prisma 6.9, you can generate a standard TCP connection string directly from the Prisma Console and use it in DBeaver without needing the tunnel. [direct connections]
✅ Great, thanks for letting us know that this solved your question!