title: 'Error:The used command is not allowed with this MySQL version' by mysqldb
body: <p>I try use LOAD DATA LOCAL INFILE statement by mysqldb in python.
  I obtain follwing error.
  OperationalError: (1148, 'The used command is not allowed with this MySQL version')</p>
  <p>and I set the  option in mysql my.cnf file :</p>
  <blockquote>
  <p>[mysqldump]
  quick</p>
  <p>quote-names</p>
  <p>max_allowed_packet      = 16M</p>
  <p>[mysql]</p>
  <p>no-auto-rehash # faster start of mysql but no tab completition</p>
  <p>local-infile=1</p>
  <p>[isamchk]</p>
  <p>key_buffer              = 16M</p>
  </blockquote>
  <p>but still not working :-(</p>
  <p>Maybe I can use some statement in MySQLdb connect function like:</p>
  <blockquote>
  <p>mysql --local-infile=1 -u username -p</p>
  </blockquote>
  <p>Thanks for help
  Martin</p>