Note that there are some explanatory texts on larger screens.

plurals
  1. POwhy this mysql event can't get run?
    primarykey
    data
    text
    <pre><code>mysql&gt; show create event online_event; +--------------+-----------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+----------------------+--------------------+ | Event | sql_mode | time_zone | Create Event | character_set_client | collation_connection | Database Collation | +--------------+-----------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+----------------------+--------------------+ | online_event | STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER | SYSTEM | CREATE EVENT `online_event` ON SCHEDULE EVERY 1 SECOND STARTS '2009-06-03 06:54:16' ON COMPLETION NOT PRESERVE ENABLE DO DELETE FROM online where webserver_id is null and jabber_server_id is null | utf8 | utf8_general_ci | utf8_general_ci | +--------------+-----------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+----------------------+--------------------+ 1 row in set (0.00 sec) mysql&gt; </code></pre> <p>It's created this way:</p> <pre><code>CREATE EVENT online_event ON SCHEDULE EVERY 1 SECOND DO DELETE FROM online where webserver_id is null and jabber_server_id is null; </code></pre> <p>and after quite a period,I found:</p> <pre><code>mysql&gt; select *from online; +----+------------+---------------------+--------------+------------------+ | id | account_id | since | webserver_id | jabber_server_id | +----+------------+---------------------+--------------+------------------+ | 1 | 30 | 2009-06-03 06:24:38 | NULL | NULL | +----+------------+---------------------+--------------+------------------+ 1 row in set (0.00 sec) </code></pre> <p>So I find that the event is not run at all.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload