Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么我的Mysql事件不能运行_Mysql_Mysql Event - Fatal编程技术网

为什么我的Mysql事件不能运行

为什么我的Mysql事件不能运行,mysql,mysql-event,Mysql,Mysql Event,我在mysql上创建了一个事件 我有一个事件,但没有在01:00:00运行。如果我将时间更改为14:00:00或任何其他时间,它工作正常。我将时间更改为14:00:00,它运行正常,但在计划的12小时后没有重新运行。这是代码 DELIMITER // CREATE EVENT trending_calculation ON SCHEDULE EVERY 12 HOUR STARTS '2014-09-27 01:0

我在mysql上创建了一个事件

我有一个事件,但没有在01:00:00运行。如果我将时间更改为14:00:00或任何其他时间,它工作正常。我将时间更改为14:00:00,它运行正常,但在计划的12小时后没有重新运行。这是代码

           DELIMITER //
          CREATE EVENT trending_calculation
          ON SCHEDULE EVERY 12 HOUR
          STARTS '2014-09-27 01:00:00'
          DO
          BEGIN
          call business_trending1;
          call business_trending2;
          call business_trending_update3;
          call business_trending4;
          call business_trending5;
          END;//
          Delimiter ;
我做错什么了吗。 我的全局事件调度程序为ON。
请提供建议和帮助

因此,我将代码直接从记事本复制到命令行上,我猜是复制了一些eof字符或其他内容。 在我将代码保存为sql文件并运行该文件的那一刻,它就工作了