我正在使用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}$