????MySQL?????????
????1. ????????????
??????????????????г???long_query_time????SQL??? ??????????????SQL?? ???????????ЩSQL???????.
????2. ??ο?????????
???????????????mysql????????????????????.???????????:
?????????????????log_slow_queries???OFF?? ??????????п????????.
???????????????????? ????????:
????Linux?????mysql?????????my.ini?? ??mysqld?·???????????????????(???:??????[mysqld]?μ??·?????)
????log-slow-queries: ????MYSQL???????????洢???? ?????????????д????
????Windows?????д·?????磺log-slow-queries="C:/Program Files/MySQL/MySQL Server 5.5/log/mysql-slow.log"
????long_query_time: ????????. (????? MSYQL???????????????????2????SQL??? ??????????? ?????С????5-10?????? ?????????????????????);
???????ú??????????????MYSQL????