title: Query MySql database in Docker
body: <p>I have a docker container with mariadb, and have created a database <code>my_db</code> in it (through an external script in a different container). How can I run SQL queries on <code>my_db</code> now from the command line? I just want to do</p>
  
  <p><code>select * from my_table</code></p>
  
  <p>from the terminal that is running the container.</p>