我正在使用PyMySQL-0.5.0并在将数据从文件加载到远程MySQL实例时遇到了一个模糊的错误/异常。在执行“loaddatalocalinfile…”语句时,我看到一个异常,它说:The used command is not allowed with this MySQL version。在
如果PyMySQL支持此操作(和/或其他版本支持此操作),有任何线索吗
附言:
1)错误详细信息:2012-05-17 11:05:24,524 - 8988 - DEBUG - Loading table table_2012_05_16
from file: /path/to/data/file_2012-05-16
2012-05-17 11:05:24,524 - 8988 - DEBUG - Executing update: load data local
infile '/path/to/data/file_2012-05-16' into table table_2012_05_16(@dummy, c1,
c2, c3, c4, c5, c6, c7);
2012-05-17 11:05:24,528 - 8988 - ERROR - Exception while executing update:
- (1148, u'The used command is not allowed
with this MySQL version')
3)如果我使用mysql客户机,这个数据加载可以正常工作(例如,IMHO不应该有任何障碍—权限、权限、您拥有的东西—来加载):
^{pr2}$