title: How to check Slave_IO_Running, Slave_SQL_Running, Seconds_Behind_Master from SHOW SLAVE STATUS on MASTER
body: <p>I'm looking for a way to fetch following information from <a href="https://dev.mysql.com/doc/refman/5.7/en/show-slave-status.html" rel="nofollow noreferrer">SHOW SLAVE SATUS</a> on MASTER server in MySQL 5.6:</p>
  <ul>
  <li><code>Slave_IO_Running</code></li>
  <li><code>Slave_SQL_Running</code></li>
  <li><code>Seconds_Behind_Master</code></li>
  </ul>
  <p>SHOW SLAVE SATUS shows me info only on replica/slave server, where read-only mode is my only possibility, which makes writing procedure unavailable for me.</p>
  <p>I found this <a href="https://stackoverflow.com/questions/7009021/how-to-know-mysql-replication-status-using-a-select-query/58096132#58096132">answers</a> somewhat usefull, unfortunetly relates on querying slave server, which is not my target and are usefull mostly for MySQL above 5.6.</p>