Bug #44546 | Set Long Query Time on DB-by-DB basis | ||
---|---|---|---|
Submitted: | 29 Apr 2009 16:57 | Modified: | 29 Apr 2009 17:20 |
Reporter: | Aaron Macks | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S4 (Feature request) |
Version: | 5.1 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[29 Apr 2009 16:57]
Aaron Macks
[29 Apr 2009 17:20]
Valeriy Kravchuk
Thank you for the feature request.
[4 May 2009 8:27]
Sergei Golubchik
as a workaround you can use init_connect to set long_query_time per user: SET GLOBAL init_connect='SET SESSION long_query_time=IF(USER()=="slow_user", 50, 1)'; Note that supporting long_query_time per database isn't simple as a query can span many databases (select * from db1.t1, db2.t2;)