title: sql statement in a bash script "command not found"
body: <p>I've got a bash script that runs a series of sql statements:</p>
  
  <pre><code>#!/bin/bash
  
  mysql -u root -p &lt;&lt; QUERY_INPUT
  
  CREATE DATABASE dba_first;
  CREATE DATABASE dba_second;
  CREATE DATABASE dba_third;
  
  GRANT ALL PRIVILEGES ON `dba%`.* TO `dbuser`@`localhost`;
  
  QUERY_INPUT
  </code></pre>
  
  <p>When I run the script, I get: <code>./quick.sh: line 20: dba%: command not found</code></p>
  
  <p>Any suggestions please?</p>