简体   繁体   English

通过重启修复加载数据文件中的MySQL错误?

[英]MySQL error with load data infile fixed by reboot?

I've got an Ubuntu server where there's a task to import a csv file. 我有一个Ubuntu服务器,其中有一个导入csv文件的任务。 Generally everything runs smoothly but every once in a while I get an error: 通常情况下,一切运行都很平稳,但偶尔也会出现错误:

Mysql::Error: 
The used command is not allowed with this MySQL version: 
\n LOAD DATA LOCAL INFILE

I don't think the error is accurate as the same import script runs most of the time. 我不认为该错误是准确的,因为大多数时间都运行相同的导入脚本。 Rebooting the server and rerunning the script "fixes" the issue. 重新启动服务器并重新运行脚本可以“修复”问题。 Still, that doesn't seem like a long-term solution. 不过,这似乎不是一个长期解决方案。 What else could be causing this? 还有什么可能导致这种情况?

what version of mysql do you have ? 您有什么版本的mysql?

http://dev.mysql.com/doc/refman/5.0/en/load-data.html http://dev.mysql.com/doc/refman/5.0/en/load-data.html

try reading this thread, it may be helpful. 尝试阅读此线程,可能会有所帮助。 The guy seemds to have similar problem solved. 这家伙似乎也解决了类似的问题。

http://forums.digitalpoint.com/showthread.php?t=65260 http://forums.digitalpoint.com/showthread.php?t=65260

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM