MySQL Events
- Which value of event_scheduler enables checking status but not changing it at runtime?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
In MySQL, if the event_scheduler is set to ‘DISABLED’ at startup, its status cannot be changed but can be checked at runtime. The events can be created but they will not execute.
- Which statement is used to check the status of the event scheduler at runtime?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
In MySQL, in order to check the status of the event scheduler at runtime, the statement: SHOW VARIABLES LIKE ‘event_scheduler’; is used. The event_scheduler is a system variable.
- Which of the following lines is used to turn on the event scheduler?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The line ‘event_scheduler = ON’ is put in the option file that the server reads. The event scheduler does not run by default. It must be turned on if events are to used in the database.
- The event scheduler does not run by default.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The event scheduler does not run by default, so you it must be turned on if events are to be used. An event is a stored program that is associated with a schedule to perform database operations.
- Which of these is a stored program associated with a schedule?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The MySQL version 5.1.6 and above has an event scheduler. It enables to perform time activated database operations. An event is a stored program that is associated with a schedule.