怎么查看事件有没有执行mysql
在MySQL中,我们需要查看事件是否执行成功,可以通过以下几种方法:
1. 查看事件执行的日志文件,例如在Linux中可以使用tail命令来查看MySQL日志文件: tail -f /var/log/mysql/mysql.log 2. 在MySQL中执行show events命令来查看事件的状态: show events; 3. 在MySQL中执行查看事件的详细信息: show create event [event name]; 4. 查看事件执行的计划: select * from information_schema.EVENTS; 5. 查看事件的执行时间和状态: select event_name, last_executed, status from information_schema.EVENTS;