Connect to Neon PostgreSQL from Mac
Select the Neon branch, database, and role before copying connection details. Different branches can contain different versions of your data.
Before you start
Section titled “Before you start”You need access to a Neon project and the password for the selected database role. Choose whether to connect directly or through Neon’s connection pooler.
Find your connection details
Section titled “Find your connection details”Open your project’s connection dialog and select the branch, compute, database, and role. Copy the host, port, database name, user, and password from that selection. See Neon’s GUI connection guide.
A pooled hostname includes -pooler; a direct hostname does not.
Keep all fields from the same connection choice.
See Neon’s endpoint comparison.
Connect to Neon PostgreSQL from Mac
Section titled “Connect to Neon PostgreSQL from Mac”- Create a PostgreSQL connection using connection basics.
- Give it a Name that identifies the branch.
- Enter the selected endpoint and database credentials.
- Configure SSL Mode from the project’s connection requirements.
- Click Test.
- Click Save & Connect after a successful test.
SSL and endpoint choice
Section titled “SSL and endpoint choice”Use the hostname supplied by Neon when configuring SSL/TLS. For pooler behavior and session requirements, consult Neon’s connection pooling guide.
If it does not connect
Section titled “If it does not connect”password authentication failed for usertimeout expiredFor authentication, check the selected role’s password and that the endpoint belongs to the intended project. For a timeout, check the endpoint state and project access restrictions. If the connection succeeds but tables differ from expectations, check the branch and database first.
See 28P01 or connection failed.
Related
Section titled “Related”Continue with browse and search, or return to the PostgreSQL overview.