Explainer
Where point history goes when an edge historian is set to MySQL
Short answer
Point history goes wherever the historian path sends it, not to MySQL just because MySQL is connected: with the MangoTSDB module installed, samples land in that module's own store while only point definitions sit in MySQL. Remove the module after the database conversion and new samples go to the relational tables instead, and a point writes anything at all only when its logging type produces a qualifying sample.

On this page
- Does connecting Mango to MySQL put point history in MySQL?
- Where does each kind of data live once MySQL is the database?
- What does the MangoTSDB module decide about where samples go?
- What makes a point write a history record at all?
- How many records does one hour of logging actually produce?
- How do I prove the whole path on a single point?
- What happens to the history you already have when the path changes?
- Questions asked
A working MySQL connection proves exactly one thing: Mango can reach a relational database. It does not prove that point history is stored there. In this architecture the relational database holds configuration — point definitions, user accounts, schedules — while time-series samples go wherever the historian path sends them. That path is set by one module and by each point's logging settings, and both must line up before a sample lands in MySQL. This article walks the whole path: what the database conversion changes, what the MangoTSDB module decides, what makes a point record at all, and how you prove the result on one point before touching the rest.
Does connecting Mango to MySQL put point history in MySQL? #
No. The connection only moves Mango's relational data — point definitions, user accounts, event handlers — to MySQL; where the time-series samples go is decided separately, by which historian module is installed and by each point's logging settings.
Three different goals hide behind one phrase, and mixing them is why a finished conversion seems to achieve nothing:
- Running Mango's relational database on MySQL is a database conversion.
- Writing point history into MySQL is a storage-path change that also depends on the historian module.
- Keeping the current historian and adding a copy of the history in an external database is an export job.
Prove the connection before touching storage. Read the configured database destination and the startup diagnostics on the Mango host itself: a MySQL service that answers from another computer proves nothing about the account, privileges or schema Mango needs. If Mango still runs on its original built-in database, stop and plan the vendor's documented database-conversion procedure for the installed release first. The connection settings and privilege requirements live in that documentation and are release-specific, so they are not restated here.
Where does each kind of data live once MySQL is the database? #
With MySQL active as the relational database, configuration lives in MySQL tables and point history lives in the time-series store the installed historian module owns — so you can query point definitions in MySQL while their samples never appear there.
Reading the module list and the database configuration together tells you which of three situations you are in:
| What you observe | What it means | What to check next |
|---|---|---|
| MySQL active, MangoTSDB module installed | Point history goes to the module's own time-series store, not to MySQL | The historian configuration and the module-removal procedure |
| MySQL active, MangoTSDB module removed | New samples are written through the relational database, which is MySQL | Point acquisition and logging settings |
| Another relational database active | Removing the module would not route history to MySQL | The database conversion, before anything else |
Other edge historians draw the same line between configuration and samples, which is why it pays to know where the Ignition Edge tag historian writes its data before hunting for records in a relational store.
What does the MangoTSDB module decide about where samples go? #
Everything at the storage level: with the module installed, time-series values go to the module's own store, and removing it makes Mango write history through its relational database — which is MySQL only after the database conversion has been done.
In the arrangement the vendor documents, the module owns the time-series path while it is installed: logged values accumulate in the store it manages, and the relational database never sees them. Take the module out and Mango falls back to writing history through its relational database. That fallback lands in MySQL only when the conversion is already complete; otherwise you have moved the samples from one unwanted place to another.
Removal is a controlled operation, not a troubleshooting step. Follow the release-specific removal procedure, including any documented shutdown or restart, and never uninstall the module to fix one point that refuses to log — that symptom lives in the point's settings, not in the module.
What makes a point write a history record at all? #
Two switches in series: the point must be enabled and receiving fresh values, and its logging configuration must be on, with a logging type that qualifies a sample — change-based logging waits for a change bigger than the deadband, interval-based logging waits for the interval to elapse.
A live value on a graphics screen proves acquisition only. A point can update every second on screen and still never write a history record, because logging is a separate switch with its own rules. Under change-based logging the stored value holds until an incoming value differs from it by more than the configured deadband; under interval logging a record appears each time the configured period elapses, moving or not.
A steady value under change-based logging can therefore stay unlogged indefinitely, and that is correct behavior, not a database fault — the same family of settings behind tag historian not logging zero: deadband and max time decide. Read the logging-type selection, the deadband and the interval on the point's configuration page in your installed release; do not assume setting names or defaults from another release or another product.
How many records does one hour of logging actually produce? #
It depends only on the logging type: the same point can produce zero records or 120 records in an hour, and the arithmetic below shows both outcomes from example settings you would read off the point's configuration page.
Take an example tank-pressure point whose last stored sample is 4.2 bar, logged on change with a deadband of 0.5 bar. A new sample qualifies only at 4.2 + 0.5 = 4.7 bar or above, or at 4.2 - 0.5 = 3.7 bar or below. The signal wanders between 4.1 and 4.4 bar for the whole hour: the largest moves away from the stored value are 4.2 - 4.1 = 0.1 bar low and 4.4 - 4.2 = 0.2 bar high, both inside the deadband. Records stored in 3600 seconds: 0.
Switch the same point to interval logging with a 30-second period, an example value again. Records in the hour: 3600 s ÷ 30 s = 120. Same process, same wiring, same database — the logging type alone decided between no rows and 120 rows. Period settings decide row counts the same way in every historian, and a system where Ignition tag history records only every 10 seconds traces back to its sampling setup by the same logic, not to the storage.
How do I prove the whole path on a single point? #
Pick one noncritical point with a known input, confirm its live value and timestamp are fresh, read its logging type and threshold, then produce a qualifying event and look for the new sample in the point's history display.
Work through the checks in this order:
- Use a controlled process input or a test point — never force a production output just to manufacture a record.
- Confirm the point is enabled and its value and timestamp update. If acquisition is stale, repair the data source or communications first; no storage change will help.
- Read the logging configuration on the point: logging enabled, logging type, deadband or interval.
- Create one qualifying event: drive the input past the deadband, or let one full interval pass.
- Find the new sample with value and timestamp in the point's history display, then confirm it in the destination the module state implies.
What happens to the history you already have when the path changes? #
Nothing moves: removing the module changes the destination of future writes only, so the history already written stays in the time-series store that owns it until you migrate it deliberately under a documented procedure.
Treat the transfer of retained history as its own task, started after the new path is proven on a test point. If production reporting depends on the old history, leave the working storage arrangement intact until the conversion and the migration plan are both ready; restoring a known-good configuration is the fallback, and moving the storage is the permanent change.
The decision for each case:
- You only want Mango's configuration database on MySQL: complete the documented conversion and leave the historian module and point settings as they are.
- You want new point history in MySQL: convert first, remove the MangoTSDB module by the release procedure, verify one point end to end, then migrate retained history as a separate job.
- You want the current historian kept and a SQL copy as well: keep the module installed and build the copy as an export, not a storage change.
Questions asked
Can I keep the time-series module and still get point history into MySQL?
Yes. Treat it as an export job, not a storage change: keep the historian module installed and use a supported integration path, either the software's own data export features or a flow that reads stored history and inserts rows on a schedule. Verify the copy against a known tag, value and timestamp before anyone builds reports on it.
Should I insert the missing history rows into the tables myself?
No. The schema and its relationships belong to the application, and a hand-written row can conflict with how the software reads its own history, so it is not a repair. Restore the gap from backup or accept it, then fix the logging configuration that produced it.
Why did resaving the point or restarting the service not create any history?
Because neither action is a qualifying logging event. Change-based logging records only when the value moves beyond the configured deadband; interval logging records only when the interval elapses. A steady value can sit unlogged for hours while a screen shows it live, and that is correct behavior, not a database fault.
What should I record before removing the MangoTSDB module?
Record the active database, the module state, representative point logging settings and how far back retained history must reach. Back up the configuration and every affected data store, and confirm the rollback path first: restoring a known-good configuration is the recovery if the new path does not verify.

