# Connection errors

> Fix refused or timed-out connections, TLS and certificate errors, wrong passwords and "too many connections".

Source: https://docs.phluit.com/products/managed-databases/connection-errors/

| What you see | Why, and what to do |
| --- | --- |
| Connection refused or timed out | Your address isn't on the [trusted sources](/products/managed-databases/trusted-sources/), or the database is paused because of an open invoice. Also check the host and the port on the **Connect** tab. |
| PostgreSQL `SSL required` / MySQL `ERROR 3159 … insecure transport` | Turn TLS on: `sslmode=verify-ca` or `--ssl-mode=VERIFY_CA`, with the CA certificate. |
| `certificate verify failed` or host name mismatch | Use `verify-ca` with the CA certificate from the **Connect** tab, not `verify-full` or `VERIFY_IDENTITY`. |
| SASL / `Access denied` | The password is wrong. Copy it again from the **Connect** tab, or [reset it](/products/managed-databases/reset-the-password/). |
| `too many connections` | The plan's limit is reached. On PostgreSQL, use the [connection pool](/products/managed-databases/connection-pool/) in transaction mode; on either engine, close idle connections or [move to a bigger plan](/products/managed-databases/change-plan-or-storage/). |

Still stuck? [Open a ticket](https://portal.phluit.com/tickets/create) with your database's name and the exact error.
