connector-x icon indicating copy to clipboard operation
connector-x copied to clipboard

How to set timeout for MySQL

Open akbarnotopb opened this issue 1 year ago • 1 comments

Try Discussion?

Halo, as the title stated, how to set custom mysql timeout? Im having error when my source database is slow . The error said connection timeout, yet i can't find any parameter to set it. Do i set it inside the connection uri ? or what?

Thanks in advance.

akbarnotopb avatar Jul 03 '23 06:07 akbarnotopb

It just causes connectorx to hang indefinitely If I use the timeout URI query parameter. For instance:

f"mysql://{u}:{p}@{h}:{p}?connect-timeout=500"

more here: https://dev.mysql.com/doc/refman/8.0/en/connecting-using-uri-or-key-value-pairs.html

So how else should we set a timeout?

evbo avatar Feb 24 '24 17:02 evbo