Database issue. Cannot connect

Questions and discussion about PokerTracker 4 for Windows

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Database issue. Cannot connect

Postby Drezayzel » Tue Nov 18, 2025 8:25 pm

I receive the following error upon startup of PT4.

Unable to login to database (potgres). Reason: Connection to server at "localhost" (::1), port 5432 failed. Connection refused. Is the server running on that host and accepting TCP/IP connections?



If I ignore this message and continue to use PT4, I am met with attempts to access a database. The error returns as follows: Unable to connect to PostgreSQL database. This server is not responding to connection attempts. Please restart PostgreSQL and PokerTracker, then try again

I hope the answer isn't in the faq... please help if possible.
Drezayzel
 
Posts: 5
Joined: Mon Nov 10, 2025 6:28 pm

Re: Database issue. Cannot connect

Postby Drezayzel » Tue Nov 18, 2025 8:43 pm

I think I've found instructions to fix this issue somewhere in the forums. will try all that now
Drezayzel
 
Posts: 5
Joined: Mon Nov 10, 2025 6:28 pm

Re: Database issue. Cannot connect

Postby Drezayzel » Tue Nov 18, 2025 9:58 pm

I try to create a new databas since the active one lists N/A as the size so clearly is worthless.

I now have an error about trailing junk after numeric literal


This is getting fairly frustrating.....
Drezayzel
 
Posts: 5
Joined: Mon Nov 10, 2025 6:28 pm

Re: Database issue. Cannot connect

Postby Drezayzel » Tue Nov 18, 2025 10:29 pm

now when i launch pt4, i am taken to the select database screen.

therein lies another error, connecting to the default database.

when i try to create a new one, i get the error above.

please help
Drezayzel
 
Posts: 5
Joined: Mon Nov 10, 2025 6:28 pm

Re: Database issue. Cannot connect

Postby Flag_Hippo » Wed Nov 19, 2025 7:12 am

Drezayzel wrote:I try to create a new databas since the active one lists N/A as the size so clearly is worthless.

I now have an error about trailing junk after numeric literal

The trailing junk error only happens in newer versions of PostgreSQL that are not supported by PokerTracker 4. Please uninstall the version(s) of PostgreSQL you currently have installed:

Guide: Uninstalling PostgreSQL

and then manually download and install PostgreSQL v16:

Guide: Installing PostgreSQL
Flag_Hippo
Moderator
 
Posts: 17040
Joined: Tue Jan 31, 2012 7:50 am

Re: Database issue. Cannot connect

Postby Drezayzel » Wed Nov 19, 2025 11:54 am

Thank you for the help. PT4 now loads as desired.
Drezayzel
 
Posts: 5
Joined: Mon Nov 10, 2025 6:28 pm

Re: Database issue. Cannot connect

Postby Flag_Hippo » Thu Nov 20, 2025 7:29 am

Pleased to hear it :)
Flag_Hippo
Moderator
 
Posts: 17040
Joined: Tue Jan 31, 2012 7:50 am


Return to PokerTracker 4

Who is online

Users browsing this forum: No registered users and 10 guests