MySQL Forums
Forum List  »  General

How to read .txt in Event scheduler?
Posted by: A Pole
Date: May 18, 2011 08:51AM

I'm trying to schedule a weekly event to read a text file and re-populate my MySQL table. I can use a LOAD DATA INFILE query succefully alone, but get the following error when I place it in an event.

Error Code: 1314
LOAD DATA is not allowed in stored procedures

The same occurs if I try to run the LOAD DATA INFILE from a routine and call the routine fromt the event.

All my research either said it was a permissions issue, or that various functions are not allowed in stored procedures after v5.0.7. I've scoured the forums with out any luck, and the documentation doesn't say what is allow or what isn't. The bug reports I've found, all from 2007 or earlier, just say after v5.0.7 not available, but "should" support in future.

Other info: The file is located in a network folder, not on the local machine. I'm creating the event as the root user on the server, so I would have assumed permissions where not an issue.

So how do I create an automated task to read a .txt file and populate my table with v5.5?

AP

Options: ReplyQuote


Subject
Written By
Posted
How to read .txt in Event scheduler?
May 18, 2011 08:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.