# MySQL "Show Slave Status" Command From Ignition

**URL:** <https://forum.inductiveautomation.com/t/mysql-show-slave-status-command-from-ignition/11702>\
**Category:** Ignition\
**Created:** [May 19, 2016, 7:46pm UTC](https://forum.inductiveautomation.com/t/mysql-show-slave-status-command-from-ignition/11702 "2016-05-19T19:46:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Reed.Schmidt](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@David.Reed.Schmidt](https://forum.inductiveautomation.com/u/David.Reed.Schmidt)\
**Post date:** [May 19, 2016, 7:46pm UTC](https://forum.inductiveautomation.com/t/mysql-show-slave-status-command-from-ignition/11702/1 "2016-05-19T19:46:55Z")

</div>

How can I run the following MySQL command from Ignition: “Show Slave Status;”

This works fine from the MySQL workbench and I used it extensively while setting up the replication slave. The command returns a bunch of handy items and I’d like to place them as tags for use in Ignition.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [May 19, 2016, 7:59pm UTC](https://forum.inductiveautomation.com/t/mysql-show-slave-status-command-from-ignition/11702/2 "2016-05-19T19:59:45Z")

</div>

Just like any other query.

`query = "Show Slave Status"
result = system.db.runPrepQuery(query,[])
event.source.parent.getComponent('Power Table 1').data = result`
