MySQL Forums
Forum List  »  Events (Job Scheduler)

scheduled batch command
Posted by: Anthony Thomas
Date: July 10, 2012 06:44AM

I'm trying to run a scheduled batch command of the form:

mysql> create event e_test on schedule every 1 day do source /var/www/home/test.sql;

This gives me:

ERROR 1064 (42000): You have an error in your SQL syntax ..


mysql> source /var/www/home/test.sql;

works perfectly fine.

I tried running with '\. /var/www/home/test.sql' instead of 'source /var/www/home/test.sql' but that gives me:

Failed to open file '/var/www/home/test.sql;', error: 2

Any ideas would be appreciated.

(running mysql 5.1.49-3 (Debian) )

Options: ReplyQuote

Written By
scheduled batch command
July 10, 2012 06:44AM
July 10, 2012 11:24AM

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.