Segfault from MySQLdb

Edward C. Jones edcjones at erols.com
Mon Oct 14 15:29:13 EDT 2002


I am having all sorts of trouble with MySQL 3.23.52 and "LOAD DATA LOCAL 
INFILE". I get the well-known error message 1148: "The used command is 
not allowed with this MySQL version". In one attempt to fix this, I 
wrote the following piece of code in Python:

conn = MySQLdb.connect(passwd="xxxxxxxx",
      read_default_file="/etc/mysql/my.cnf")

The program segfaulted at this line.

self.conn = MySQLdb.connect(passwd=settings.PASSWORD,
      read_default_file="/etc/mysql/my.cnf")
      read_default_group="mysql")

also segfaults.

What is wrong?




More information about the Python-list mailing list