默认mysql查询时间只显示小数点后两位
select * from mylock;

设置profiling属性

再次select后
show profiles

显示各个查询过程耗费时间
show profile;

官网文档:https://dev.mysql.com/doc/refman/8.0/en/show-profile.html
mysql性能监控
阅读 263
2022-09-25
默认mysql查询时间只显示小数点后两位
select * from mylock;

设置profiling属性

再次select后
show profiles

显示各个查询过程耗费时间
show profile;

官网文档:https://dev.mysql.com/doc/refman/8.0/en/show-profile.html
相关推荐
精彩评论(0)