Home > Database > Mysql Tutorial > How can we enable and disable specific MySQL events?

How can we enable and disable specific MySQL events?

王林
Release: 2023-08-24 23:21:02
forward
1404 people have browsed it

How can we enable and disable specific MySQL events?

By using the ALTER EVENT statement and the ENABLE and DISABLE keywords, we can enable and disable events. To illustrate this, we have the following example:

Example

mysql> ALTER EVENT hello DISABLE;
Query OK, 0 rows affected (0.00 sec)
Copy after login

The above query will disable the event named 'Hello', the following query will enable it.

mysql> ALTER EVENT hello ENABLE;
Query OK, 0 rows affected (0.00 sec)
Copy after login

The above is the detailed content of How can we enable and disable specific MySQL events?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template