mysql查看正在執行的sql語句

有2個方法:mysql 一、使用processlist,可是有個弊端,就是隻能查看正在執行的sql語句,對應歷史記錄,查看不到。好處是不用設置,不會保存。web -- use information_schema; -- show processlist; 或者: -- select * from information_schema.`PROCESSLIST` where info is not
相關文章
相關標籤/搜索