title: Shell - one line query
body: <p>I need to execute a mysql query in one line using bash.</p>
  
  <p>It should be something like this:</p>
  
  <pre><code>mysql database --user='root' --password='my-password' &lt; query.file
  </code></pre>
  
  <p>But instead of the <code>&lt; query.file</code> it would like to use a raw query like this:</p>
  
  <pre><code>mysql database --user='root' --password='my-password' &lt; UPDATE `database` SET `field1` = '1' WHERE `id` = 1111;
  </code></pre>
  
  <p>Is that possible?</p>