MySQL Events


  1. Which value of event_scheduler enables checking status but not changing it at runtime?











  1. 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.


  1. Which statement is used to check the status of the event scheduler at runtime?











  1. 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.



  1. Which of the following lines is used to turn on the event scheduler?











  1. 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.


  1. The event scheduler does not run by default.











  1. 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.



  1. Which of these is a stored program associated with a schedule?











  1. 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.