Set a Max Execution Time in Your MYSQL Query
![](https://thisbailiwick.com/wordpress/wp-content/uploads/2021/08/Screenshot-of-TablePlus-8-12-21-1-33-56-PM-1024x244.png)
Sometimes I need to run a long query. Or sometimes when running one using TablePlus and it is taking a long time the kill process doesn’t always work. You can set a timeout with this syntax in your select /*+ MAX_EXECUTION_TIME(2000) */. The time is in milliseconds. This is a part of the mysql optimizer … Continued