Skip navigation links

MySQL Forums :: Events (Job Scheduler) :: How to read .txt in Event scheduler?


Advanced Search

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 Views Written By Posted
How to read .txt in Event scheduler? 5337 A Pole 05/18/2011 08:51AM
Re: How to read .txt in Event scheduler? 2446 Devart Team 05/19/2011 12:51AM
Re: How to read .txt in Event scheduler? 2157 stephen bond 06/30/2011 01:12PM
Re: How to read .txt in Event scheduler? 2304 Devart Team 07/01/2011 01:20AM
Re: How to read .txt in Event scheduler? 1995 stephen bond 07/01/2011 11:11AM
Re: How to read .txt in Event scheduler? 1927 Duncan Cox 08/11/2011 01:35AM


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.