0

Any one use MySQLdb and encounter read timeout issue and how to resolve it?

Check the MySQLdb project, saw a patch already applied, but no document mentioned this, how to enable this option?

4

1 回答 1

1

尝试

   import MySQLdb
   db=MySQLdb.connect(...other options...,read_timeout=60)

其中 60 是读取超时的秒数。

于 2013-07-02T03:49:18.673 回答