MySQL 8.0+ · RDS · Aurora · Percona · MariaDB

Heavy MySQL reports,from minutes to seconds.

DBTrail keeps a near real time copy of your MySQL tables, built for reports. Your application and your BI tools connect to DBTrail instead of MySQL: reports run on the copy, and everything else still runs on your MySQL.

  • Same SQL and drivers
  • No changes to your MySQL
  • Runs on your machines

Who it is for

If your app has one of these problems, DBTrail is for you.

  • Reports take minutes

    Month-end totals, rankings, exports. On DBTrail they come back in seconds, and your MySQL stays free for the app.

  • Deep pages bring the app down

    Page 500 of a list makes MySQL read every row before it. DBTrail answers it from the copy, and the app stays fast.

  • History queries hurt the app

    Account statements, order history, activity over years. The ones that read years of rows run on DBTrail, away from the database your app writes to.

  • Dashboards slow everyone down

    Live dashboards read from a copy kept near real time, so they show today's numbers without loading your MySQL.

  • Analysts run queries on production

    Point the BI tool at DBTrail. Their heavy queries run there, not on your production MySQL.

  • Someone deleted the wrong rows

    DBTrail keeps every change. See the rows as they were, and get the SQL that puts them back.

Works with

  • MySQL 8.0 · 8.4 · 9.7
  • Percona Server
  • Amazon RDS for MySQL
  • Aurora MySQL
  • MariaDB
  • and anything else that writes a MySQL binlog

How it works

DBTrail looks at each query. Quick ones run on your MySQL, heavy reports on the copy.

Port 3309 Your application connects here, as to MySQL.
Kept current DBTrail reads the changes from your MySQL the way a replica does, so nothing is installed on it.

The result

Our slowest report went from 225 seconds to 7.9.

Quick lookups stay on your MySQL, where they are already fast. All the numbers

MySQL replica225 s
DBTrail7.9 s
6.5×
faster on average, over 14 real reports
0
plugins, triggers or tables added to your MySQL
Same
SQL, drivers and BI tools you use today

History

DBTrail also keeps every change, so you can undo a bad one.

DBTrail keeps the before and after of every row it captures. See a row as it was yesterday, or get the SQL that puts back the rows a bad UPDATE or DELETE touched. You review it and run it.

Undo a wrong change
-- the row as it was this morning
SELECT * FROM _flashback.orders
  AS OF '2026-11-07 09:00:00'
WHERE id = 4827;

-- the SQL that puts it back
UPDATE orders SET status = 'paid'
WHERE id = 4827;

Ask Claude

You can also ask Claude what changed.

Connect Claude, or any MCP client, and ask in plain words: what was deleted and when, how a row looked on Monday, the SQL that puts it back. It sees what the web interface shows you, with the same redactions. Its tools only read, and it never runs SQL on your MySQL.

Connect Claude

Limits

What to know before you rely on it.

Near real time
A query that must see a write made a second ago belongs on your MySQL.
Lookups stay on your MySQL
A query by key takes 4 ms on MySQL and about 100 ms on the copy, so routing leaves it there.
It is not a failover replica
Writes always go to your MySQL, and nothing fails over to DBTrail. Keep your replicas and your backups.
It runs on your machines
DBTrail keeps its history in a small database of its own, which the install runs for you. Both are yours to operate: disk, backups and upgrades.
Some schema changes re-read a table
Adding or dropping a column, or a TRUNCATE, makes DBTrail read that table again, with a short lock.
Change history needs S3 to last
Without S3, the history of changes is kept for 48 hours. The copy itself stays.

All of it: Limitations

For the engineers

Where each statement goes, and how the copy stays current.

Transactions go to your MySQL, analytics to DBTrail.

DBTrail looks at each statement on the connection and sends it to one side. You don't mark your queries. Details and measurements: routing.

One connectioncopy near real time
  • UPDATE orders SET status = 'paid' WHERE id = 4827your MySQLa write
  • SELECT warehouse, sum(amount) FROM order_lines GROUP BY 1DBTrailreads the whole table
  • SELECT * FROM customers WHERE id = 42your MySQLa lookup by key
  • SELECT year(created_at), count(*) FROM orders GROUP BY 1DBTrailreads most of the table
  • SELECT qty FROM stock WHERE sku = 'A-17' FOR UPDATEyour MySQLinside a transaction
  • SELECT * FROM events ORDER BY id LIMIT 20 OFFSET 100000DBTraila deep page

Routing is automatic

Writes, transactions and lookups by key go to your MySQL; reads over large parts of a table go to the columnar copy.

No ETL

DBTrail follows your binlog the way a replica does, so there is no pipeline to build or nightly batch to wait for.

Your drivers and tools

Your application, your BI tools and the mysql client connect to DBTrail as they connect to MySQL, and send the same SQL.

MySQL, MariaDB, RDS, Aurora

Percona Server too, and anything that writes a MySQL binlog. It runs on your machines, on x86 or ARM, and it is open source.