Tabby SQL › Guides

Guide

Connect to PostgreSQL from a Mac

Updated 2 December 2026

Short answer: install Tabby SQL, choose New connection, pick PostgreSQL, paste your connection URL (or fill in host, port 5432, database, user and password), set SSL to Require for cloud databases, press Test, then Save & connect.

Before you start

You need four things from wherever your database lives: the host, the port (5432 unless told otherwise), the database name and a user and password. Many hosts give you all of them as one connection URL that looks like this:

postgres://user:password@host:5432/database?sslmode=require

Connect, step by step

  1. Install Tabby SQL from the Mac App Store. It is free and needs no account.
  2. Choose New connection and pick PostgreSQL.
  3. Paste the connection URL into the Connection URL field. Tabby fills in the host, port, database, user and password for you. No URL? Type the fields in by hand.
  4. Set SSL. Choose Require for a cloud database, Off for a server on your own Mac. If your URL has sslmode=require, this is already set.
  5. Press Test. Tabby connects, tells you how long it took and how many tables it found, or shows the server's error.
  6. Press Save & connect. The password goes into your Keychain, and your tables appear in the sidebar.
New connection
The New connection sheet in Tabby SQL with PostgreSQL selected and the fields filled in from a pasted connection URL

If it doesn't connect

"Connection refused"

Nothing is listening at that host and port. Check that the server is running (Postgres.app shows it in the menu bar; docker ps lists containers), and that the port matches the one you published.

"password authentication failed"

The user or password is wrong, or the user doesn't exist on that server. Copy them again from your host's dashboard. Passwords with @, # or / are fine in a pasted URL.

"no pg_hba.conf entry … no encryption" or an SSL error

The server only accepts encrypted connections. Set SSL to Require and test again.

It times out

A firewall is in the way. Cloud hosts often only allow listed IP addresses; add yours in the host's network settings. Company databases may need a VPN.

It works on the Mac but not on iPhone

For a server on your Wi-Fi, allow local network access in Settings › Privacy & Security › Local Network › Tabby SQL. localhost on an iPhone means the phone itself, so use your Mac's network address instead.

Once you're in

Open any table to page, filter and sort its rows, open a query tab to write SQL, or ask Tabby a question in plain English and get the query written for you.

Questions

What is the default PostgreSQL port?

5432. If you run more than one server, or map a Docker container to another port, use that port instead.

Do I need SSL to connect to PostgreSQL?

Cloud hosts such as Supabase, Neon, Amazon RDS and Heroku usually require it, so set SSL to Require. A server on your own Mac usually has SSL off. Adding ?sslmode=require to a pasted URL turns it on for you.

Can I paste a JDBC URL?

Yes. Tabby SQL accepts jdbc:postgresql://host:5432/db as well as postgres:// and postgresql:// URLs.

Does the same work for MySQL and MariaDB?

Yes. Pick MySQL instead of PostgreSQL, or paste a mysql:// or mariadb:// URL. The default MySQL port is 3306.

Try Tabby SQL, free

PostgreSQL, MySQL, MariaDB and SQLite on Mac, iPhone and iPad. No account, no ads, no tracking.

Download on theApp Store