一、事件操作:
(1)查看事件启动状态
show variables like 'event_scheduler';
select @@event_scheduler;
(2)启动事件
set global event_scheduler=on;
set global event_scheduler=1;
二、查看mysql进程运行状态
(1)查看进程
show processlist
(2)查看sql的查询效率
explain select surname,first_name form a,b where a.id=b.id