查询mysql日志以及slow sql

查看mysql语句运行时间的2种方法html

show profilesmysql

timestampdiff来查看测试时间sql

http://blog.51yip.com/mysql/968.html测试


开启log日志spa

show variables like "%log%";日志

set glabel general_log=1htm


找查询比较缓慢的sqlmysql自带了 mysql-slow.logblog

相关文章
相关标签/搜索