title: execute *.sql file with python MySQLdb
body: <p>How can execute sql script stored in *.sql file using MySQLdb python driver. I was trying</p>
  
  <pre>
  <code>
  cursor.execute(file(PATH_TO_FILE).read())
  </code>
  </pre> 
  
  <p>but this doesn't work because <b>cursor.execute</b> can run only one sql command at once. My sql script contains several sql statements instead. Also I was trying</p>
  
  <pre><code>
  cursor.execute('source %s'%PATH_TO_FILE)
  </code></pre>
  
  <p>but also with no success.</p>