Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support statement query timeout #331

Open
ysn2233 opened this issue Jul 7, 2022 · 1 comment
Open

support statement query timeout #331

ysn2233 opened this issue Jul 7, 2022 · 1 comment

Comments

@ysn2233
Copy link

ysn2233 commented Jul 7, 2022

JDBC implementation:
schedule a timer thread to send "KILL QUERY" command to mysql server when the statement executed over a timeout

@rusher
Copy link

rusher commented Mar 19, 2024

You can either set a global query timeout for your connection using set @@max_statement_time=XX (be carefull, value for MariaDB are in seconds, and MySQL in milliseconds)
if you are using MariaDB, you can set that per command, prefixing commands with SET STATEMENT max_statement_time=XX FOR <command>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants