How to Fix MySQL Error 3802 (ER_PAGE_TRACKING_NOT_STARTED)

Published
Length
3 min read

Luis Felipe Dias

All posts

You get mysql error 3802 when a tool tries to read or stop page tracking before it starts. To fix it, you must start the page tracking service in the database before running backup tasks. This failure uses the symbol ER_PAGE_TRACKING_NOT_STARTED and SQLSTATE HY000. The engine returns a clear message stating that page tracking is not started yet. Backup tools rely on this feature to find changed data blocks fast. When the tracking state is off, incremental backup jobs fail right away. What cau

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You get mysql error 3802 when a tool tries to read or stop page tracking before it starts. To fix it, you must start the page tracking service in the database before running backup tasks.

This failure uses the symbol ER_PAGE_TRACKING_NOT_STARTED and SQLSTATE HY000. The engine returns a clear message stating that page tracking is not started yet. Backup tools rely on this feature to find changed data blocks fast. When the tracking state is off, incremental backup jobs fail right away.

What causes mysql error 3802 in your database

The database engine tracks modified pages to speed up incremental backups. Without page tracking, a backup tool must scan every data file on disk. When you turn tracking on, the engine logs page changes in memory and on disk.

Error 3802 happens when a client calls a tracking action out of order. A backup script might ask for changed pages when tracking was never turned on. Another script might try to stop or purge tracking data that does not exist.

Database restarts are a common trigger for this state change. If the server reboots and your startup rules do not start page tracking, the state resets. The next backup job assumes tracking is still active and hits error 3802.

Failover events in a cluster also cause this issue. A replica node takes over as the primary writer during an outage. If the replica did not have page tracking turned on, backup tools will fail on the new primary.

How to diagnose and fix the failure in production

Start by checking the current state of the backup component on the target server. Log in with a read role that can inspect plugin and component status tables. Confirm that the backup component or plugin is loaded in the engine.

Next, check the operational logs from your backup runner. Look for the exact moment the runner requested the start or stop action. Often, a failed previous job stopped page tracking as part of its cleanup step.

MySQL Access Governance + Data Lineage Tracking: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix the problem, run the start command for page tracking using an admin role. Do not grant full superuser rights to the daily backup account just to fix this. Instead, grant only the specific backup admin role required to manage tracking states.

After you start page tracking, you must take a new full backup first. The engine cannot track pages changed before the start command ran. Once the full backup finishes, incremental jobs can read the page tracking data without errors.

Preventing tracking state drift across clusters

You can stop this error from returning by checking your startup rules. Make sure every node in your cluster loads the backup component at boot time. Keep the setup identical across the primary server and all standby replicas.

Review your backup scripts to see how they handle errors. A script should check if tracking is active before it asks for changed page lists. If tracking is off, the script should start it and trigger a full backup.

Limit who can stop or purge page tracking data in production. If an engineer stops tracking during a test, automated backups will break later that night. Use strict role rules so only the backup runner can change tracking states. Good access controls also let you mask sensitive fields like emails or card numbers in query results.

Check MySQL queries and results on the wire

MySQL grants control who logs in. They do not check single queries or mask sensitive columns once a session starts. With hoop.dev, you run an open-source proxy, a sidecar for your MySQL, inline in the MySQL wire protocol. On every query an AI agent or human runs against production MySQL, RDS, or Aurora, hoop.dev decides to pass, mask, block, or hold it for review.

Multi-statement batches and prepared queries are split and checked one by one by hoop.dev guardrails, which refuse banned queries with a native MySQL error or hold risky ones for approval. On the response path, hoop.dev data masking rewrites string values in returned rows in memory, and every decision is logged. See the MIT-licensed project on GitHub.

Frequently asked questions

What does ER_PAGE_TRACKING_NOT_STARTED mean in plain terms?

It means a user or backup tool asked the database to stop, purge, or read page tracking data while the tracking feature was turned off.

Can I run an incremental backup right after starting page tracking?

No, because the database missed any page changes that happened while tracking was off. You must run a full backup right after starting page tracking to set a clean baseline.

Why did page tracking stop working after a server failover?

Page tracking state is local to each database instance. If you promote a replica that never had page tracking started, backup jobs will fail with error 3802 until you start tracking on the new node.

The query runs. The emails stay hidden.