For windows, go to "my.ini" and add:
[mysqld]
log-slow-queries=G:\wamp2\logs\mysql_slow.loglong_query_time=1 # any query costing more than 1 sec
-----------
restart mysql service
----------
For windows, go to "my.ini" and add:
[mysqld]
log-slow-queries=G:\wamp2\logs\mysql_slow.loglong_query_time=1 # any query costing more than 1 sec
-----------
restart mysql service
----------
转载于:https://my.oschina.net/jsyang888/blog/113791