title: How to drop a mysql database from a script using ~/.my.cnf?
body: <p>I need to drop a mysql database directlly from a script.</p>
  
  <p>I create the file ~/.my.cnf and chmod 600.</p>
  
  <p><code>[client]
  user = "**************"
  password = "*********"
  safe-updates</code></p>
  
  <p>My script includes this : </p>
  
  <p><code>CMD4="echo 'DROP DATABASE db_test;' | mysql"</code></p>
  
  <p><code>curl -fs -- "$URL" | grep -q -- "$WORD1" &amp;&amp; $CMD4</code></p>
  
  <p>I can´t execute the command I just get this output: 
  'DROP DATABASE db_test;' | mysql</p>
  
  <p>The database is not dropped.
  What´s wrong with it?</p>
  
  <p>Thanks</p>