开发者

How to profile a mysql db?

开发者 https://www.devze.com 2023-01-18 09:32 出处:网络
I\'m an mssql veteran who\'s received a job that involves tuning a mysql db. with mssql it was simply a matter of firing up the db开发者_如何学JAVA profiler and then crunching up the data it collects.

I'm an mssql veteran who's received a job that involves tuning a mysql db. with mssql it was simply a matter of firing up the db开发者_如何学JAVA profiler and then crunching up the data it collects. I can't seem to find anything similar for mysql.

thanks in advance


You can enable the PROFILER in the mysql query tool and profile individual statements. Also see Using the New MySQL Query Profiler or How to profile a query in MySQL.

You can also use EXPLAIN to get the query optimization plan, but it only works for SELECT queries.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号