MySQL Events


  1. The default definer of an event is the user who _______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Unless the event has been altered, the default definer of an event is the user who created the event. In this case, the definer is the one who called the last ‘ALTER EVENT’ statement.


  1. To create or drop events for a database, which privilege should be granted?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In MySQL, all events belong to some database, so the EVENT privilege must be granted for that database in order to both create or drop the events for it. An event is a stored program.



  1. Which clause specifies periodic execution at fixed intervals?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The ‘EVERY n interval’ clause specifies the periodic execution at fixed intervals. The interval values are like those used for the DATE_ADD() function, such as HOUR, DAY or MONTH.


  1. Which log does the event scheduler log to?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In MySQL, the event scheduler writes to the error log of the server, which can be checked for information about what the scheduler is doing. It logs the events as it runs them.



  1. If the scheduler is stopped, no events run.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    In MySQL, if the event scheduler is stopped, no events are run. It is also possible to leave the scheduler running but disable the individual events. This can be done with ‘DISABLED’.