
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Enable and Disable a Particular MySQL Event
With the help of ALTER EVENT statement along with the ENABLE and DISABLE keyword, we can ENABLE and DISABLE the event. To illustrate it we are having the following example −
Example
mysql> ALTER EVENT hello DISABLE; Query OK, 0 rows affected (0.00 sec)
The above query will DISABLE the event named ‘Hello’ and the query below will enable it.
mysql> ALTER EVENT hello ENABLE; Query OK, 0 rows affected (0.00 sec)
Advertisements