title: Syntax error in mysql backup script
body: <p>i am using a script in my macbook pro to backup Mysql databases of  my development apps, and its working fine.
  But i tried to use it in my ubuntu server test and gave this error :
  <strong>Syntax error: "(" unexpected (expecting "done")</strong></p>
  
  <p>On this line of code:</p>
  
  <pre><code>table_types=($($MYSQL -u $DB_USER -p$DB_PASS -e 
  "show table status from $DB" | awk '{ if ($2 == "MyISAM" || $2 == "InnoDB") print $1,$2}'))
  </code></pre>
  
  <p>Can someone help me?</p>