title: 'RROR 1102 (42000): Incorrect database name 'database name
body: <p>I have a sh script with the following:</p>
  
  <pre><code>#!/bin/sh
  mysqldump -hmy.host.com --user=p387829 --password=pwd --
  all-databases &gt; /backup/mysqlall-`/bin/date +\%Y\%m\%d\%h\%i\%s`.sql
  
  mysqldump -u p387829 -hmy.host.com --password=pwd --add-
  drop-table --no-data usr_p387829_1 | grep ^DROP | mysql -up387829 -
  pPwd -hmy.host.com usr_p387829_1
  
  mysqldump -u p387829 -hmy.host.com --password=pwd 
  usr_p387829_2 | mysql -u p387829 -pPwd -hmy.host.com 
  usr_p387829_1
  </code></pre>
  
  <p>When I execute each command individually in my shell, it works. But when I execute <em>sh script.sh</em></p>
  
  <pre><code>Warning: Using a password on the command line interface can be insecure.
  Warning: Using a password on the command line interface can be insecure.
  Warning: Using a password on the command line interface can be insecure.
  'RROR 1102 (42000): Incorrect database name 'usr_p387829_1
  Warning: Using a password on the command line interface can be insecure.
  Warning: Using a password on the command line interface can be insecure.
  'RROR 1102 (42000): Incorrect database name 'usr_p387829_1
  mysqldump: Got errno 32 on write
  </code></pre>