title: Execute queries on AWS RDS MySQL database instance via SSH
body: <p>I have a scenario where I cannot directly access the application database even though I know the host/port/password/user (due to some security groups which I can't change). I can, however, connect to the application instance via ssh:
  <a href="https://i.stack.imgur.com/C30jM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C30jM.png" alt="enter image description here"></a></p>
  
  <p>Now I wanted to somehow execute mysql commands on the database instance. I can't seem to understand how.</p>