MySQL Forums
Forum List  »  General

Re: Has anyone used "event" in mysql
Posted by: Barry Galbraith
Date: November 03, 2010 08:27PM

Is the event scheduler thread running?

mysql> show variables like '%event%';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| event_scheduler | ON    |
+-----------------+-------+
1 row in set (0.00 sec)

If it's off, you can start it like this.

mysql> show variables like '%event%';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| event_scheduler | OFF   |
+-----------------+-------+
1 row in set (0.00 sec)

mysql> set global event_scheduler=1;
Query OK, 0 rows affected (0.00 sec)

mysql> show variables like '%event%';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| event_scheduler | ON    |
+-----------------+-------+
1 row in set (0.00 sec)

You can set the event scheduler to start with the server by setting this option in my.ini.

# Start Event Scheduler
event_scheduler=ON

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
Re: Has anyone used "event" in mysql
November 03, 2010 08:27PM


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.