Skip to content

Connection failed

A refused connection usually points to the server address or listener; an authentication error points to the database login.

Database and network errors include:

connection refused
No route to host
timeout expired
password authentication failed for user
Access denied for user
no pg_hba.conf entry for host

TableAI shows the server’s error when the server supplies one. Use database error codes to find its details.

  1. Compare Driver, Host, Port, Database, and User with the intended server.
  2. Connect to the required VPN, if applicable.
  3. Click Test in the connection form.
  4. Follow SSH tunnel errors or TLS and certificate errors if the failure names either one.

For a SQLite file, start with file access.

Start the database service if it is stopped. For Docker, inspect running containers in Terminal:

Terminal window
docker ps

Use the published host port in TableAI. For example, 127.0.0.1:5433->5432/tcp means host 127.0.0.1 and port 5433.

If available, use pg_isready for PostgreSQL or mysqladmin ping for MySQL to test the same host and port. A successful check against another endpoint does not verify this connection.

For access from another computer, check PostgreSQL listen_addresses or MySQL bind-address. Permit only the required clients through the firewall.

On macOS 15 and later, denying Local Network permission can cause timeouts or No route to host for local-network servers.

  1. Open System Settings › Privacy & Security › Local Network.
  2. Turn on TableAI.
  3. Retry the connection.

This permission is unnecessary for localhost, 127.0.0.1, or internet hosts. Docker ports published on localhost also need no permission.

Cloud endpoint or network access is incorrect

Section titled “Cloud endpoint or network access is incorrect”

Check the endpoint against the connection details supplied by your database service:

  • Public access or a route through the required private network.
  • Firewall rules and allowed client IP addresses.
  • Direct connection versus pooler host and port.
  • The required TLS mode.

Use the guide for your setup: PostgreSQL, MySQL, MariaDB, Redshift, or SQL Server.

Check database credentials separately from SSH credentials. A password reset requires an update to the saved connection.

For PostgreSQL no pg_hba.conf entry for host, ask the server owner to check the access rule for your client, database, user, and TLS mode. For a connection-limit error, follow PostgreSQL 53300.

For a company server, give the administrator the host, port, database, user, exact error, and failure time through an approved channel. Never send passwords or connection URLs.

Review connection setup or collect a support report.