mysql 远程load data,PyMySQL将(文件)数据加载到远程MySQL实例时发生错误/异常
我正在使用PyMySQL-0.5.0并在將數(shù)據(jù)從文件加載到遠(yuǎn)程MySQL實(shí)例時(shí)遇到了一個(gè)模糊的錯(cuò)誤/異常。在執(zhí)行“l(fā)oaddatalocalinfile…”語(yǔ)句時(shí),我看到一個(gè)異常,它說(shuō):The used command is not allowed with this MySQL version。在
如果PyMySQL支持此操作(和/或其他版本支持此操作),有任何線(xiàn)索嗎
附言:
1)錯(cuò)誤詳細(xì)信息: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客戶(hù)機(jī),這個(gè)數(shù)據(jù)加載可以正常工作(例如,IMHO不應(yīng)該有任何障礙—權(quán)限、權(quán)限、您擁有的東西—來(lái)加載):
^{pr2}$
總結(jié)
以上是生活随笔為你收集整理的mysql 远程load data,PyMySQL将(文件)数据加载到远程MySQL实例时发生错误/异常的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 我是老板剧情介绍
- 下一篇: dnf辅助装备镶嵌我要给未开封得三重镶嵌