leondz / cavat

Automatically exported from code.google.com/p/cavat
3 stars 1 forks source link

Improve handling of "server gone away error" #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When CAVaT is left idle for a long period of time, MySQL times out its 
connection, and we see something like:

cavat> corpus list
# Listing available databases for 'corpus use'
! Query failed.
! SQL was:  SHOW DATABASES LIKE "timebank%"
! SQL error:    (2006, 'MySQL server has gone away')
cavat> 

Automatic re-connection, or at least a more user-friendly explanation of the 
error, is required.

Original issue reported on code.google.com by leonderczynski on 3 Mar 2010 at 2:59

GoogleCodeExporter commented 9 years ago
Fixed with reconnect; now requires MySQLdb 1.2.2 and MySQL 5.1.

Original comment by leonderczynski on 19 Mar 2010 at 4:30