The Poker Tracker Database, Explained
The database is the engine behind every poker tracker. How it stores hands, why 'unable to connect' errors happen, and how to keep it fast and safe.
On this page · 6 sections
Behind every poker tracker sits a database — usually a local PostgreSQL server running quietly on your own machine — and it’s where every hand you import actually lives. The tracker you click on is just the front end; the database is the engine that stores your hands and answers the questions your reports ask. Understanding that split explains most of what confuses players, especially the dreaded “unable to connect to database” error.
How the pieces fit together
When you install a desktop tracker, you typically install two things at once, even if it feels like one:
- A database server — most often PostgreSQL — that runs as a background service and manages your stored hands.
- The tracker application — the window you interact with, which connects to that server.
Your tracking software reads hand-history files your poker client writes, parses them, and inserts each hand into database tables. When you build a report, the tracker sends a query to the database, which does the heavy lifting and returns the numbers. The tracker never stores hands itself — it always goes through the database.
What actually lives in there
The database holds far more structure than a folder of text files:
| Stored data | Powers |
|---|---|
| Every hand, action by action | Replays and hand review |
| Per-player aggregates | HUD stats and opponent profiles |
| Your results, tagged by position and stakes | Win-rate and leak reports |
| Session and tournament metadata | Bankroll and results tracking |
Because it’s a real database, you can slice it any way you like — which is the whole point of finding leaks in your database. A flat file couldn’t answer “show my river call frequency from the big blind” in a fraction of a second; an indexed database can.
Why “unable to connect” happens
This error confuses people because the tracker opens fine but then can’t find its data. That’s the tell: the tracker (the client) is running, but the database (the server) isn’t answering. The usual causes, in order of likelihood:
- The database service stopped. A reboot, a crash, or an update left the PostgreSQL service not running. Nothing to connect to.
- Wrong connection details. The host (usually
localhost), port, username, or password in the tracker’s settings don’t match the server. - A firewall or antivirus is blocking it. Security software sometimes blocks the local port the database listens on.
- The database moved or the version mismatched after an upgrade.
Fixing a connection error
Work from the most common cause outward:
- Restart the machine. This alone revives a stopped database service surprisingly often.
- Confirm the database service is running in your system’s services list; start it manually if it’s stopped.
- Check the connection settings in the tracker — host, port, user, password — against what the database expects.
- Whitelist the tracker and database in your firewall/antivirus so the local connection isn’t blocked.
- Reinstall or repair the database component as a last resort, restoring from a backup afterward.
Keeping it fast and portable
Two habits keep a database healthy as it grows past hundreds of thousands of hands:
- Back up regularly. A database dump is your insurance and your moving van at once — restoring a dump is the safe way to move to a new PC or recover from a crash. Don’t copy raw database files by hand; that path corrupts easily.
- Prune and maintain. Very large databases slow down. Archiving old or low-value hands and running the tracker’s maintenance routine keeps queries snappy.
Your database is the most valuable asset in your poker toolkit — a complete, queryable record of your play, and the foundation any bankroll discipline is built on. Treat it like one.
The bottom line
A poker tracker is a front end talking to a database server, and keeping that relationship straight explains almost everything — including why connection errors are nearly always a stopped or misconfigured database rather than a broken tracker. Back up often, restart before you panic, and check the service is running. Learn what all that stored data is for in finding leaks in your database, see how hands get in there in tracking software explained, and browse the rest of the kit in the tools & software hub.
Frequently asked
Where does a poker tracker store its data?
Most desktop trackers run a local database server — commonly PostgreSQL — on your own machine, and store your hands in that. The tracker application connects to the database, reads and writes hands there, and queries it for stats and reports.
Why does my poker tracker say 'unable to connect to database'?
Almost always because the database server isn't running. The tracker is the client; the database is a separate service. If that service is stopped, blocked by a firewall, or configured with the wrong password or port, the tracker can't reach it and shows a connection error.
How do I fix a poker tracker database connection error?
Check that the database service is running and start it if not, confirm the host, port, username, and password in the tracker's settings, and make sure a firewall or antivirus isn't blocking the local connection. Restarting the machine often revives a stopped service.
Can I move my poker tracker database to another computer?
Yes. Use the tracker's backup or export feature to create a database dump, install the same tracker and database version on the new machine, then restore the dump. Copying raw database files directly is fragile and best avoided.