# Writing to two databases at the same time

**URL:** <https://forum.inductiveautomation.com/t/writing-to-two-databases-at-the-same-time/78945>\
**Category:** Ignition\
**Created:** [September 10, 2023, 12:58am UTC](https://forum.inductiveautomation.com/t/writing-to-two-databases-at-the-same-time/78945 "2023-09-10T00:58:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandon222](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@brandon222](https://forum.inductiveautomation.com/u/brandon222)\
**Post date:** [September 10, 2023, 12:58am UTC](https://forum.inductiveautomation.com/t/writing-to-two-databases-at-the-same-time/78945/1 "2023-09-10T00:58:39Z")

</div>

Does Ignition have a way to write the same data to two different databases at the same time. Like two different MySQL servers at the same time?

---

<div class="post-metadata">

**Author:** ![lyhkch](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lyhkch/32/9381_2.png) [@lyhkch](https://forum.inductiveautomation.com/u/lyhkch)\
**Post date:** [September 10, 2023, 1:29am UTC](https://forum.inductiveautomation.com/t/writing-to-two-databases-at-the-same-time/78945/2 "2023-09-10T01:29:53Z")

</div>

I think you should make two Connections with MySQL, then use button script or value change script.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 10, 2023, 1:42am UTC](https://forum.inductiveautomation.com/t/writing-to-two-databases-at-the-same-time/78945/3 "2023-09-10T01:42:07Z")

</div>

For the historian, yes. Use the tag history splitter.

Otherwise, no. You would have to write scripts to do so, or have the databases talk to each other to do so.

---

<div class="post-metadata">

**Author:** ![humphrey.daniel](https://avatars.discourse-cdn.com/v4/letter/h/8e8cbc/32.png) [@humphrey.daniel](https://forum.inductiveautomation.com/u/humphrey.daniel)\
**Post date:** [September 10, 2023, 2:50am UTC](https://forum.inductiveautomation.com/t/writing-to-two-databases-at-the-same-time/78945/4 "2023-09-10T02:50:12Z")

</div>

Consider replication  
[https://dev.mysql.com/doc/refman/8.0/en/replication.html](https://dev.mysql.com/doc/refman/8.0/en/replication.html)

---

<div class="post-metadata">

**Author:** ![brandon222](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@brandon222](https://forum.inductiveautomation.com/u/brandon222)\
**Post date:** [September 10, 2023, 5:24am UTC](https://forum.inductiveautomation.com/t/writing-to-two-databases-at-the-same-time/78945/5 "2023-09-10T05:24:28Z")

</div>

Ok this is what I figured sounds good
