python mysqldb - mysql server gone away - can't reconnect
- by david.barkhuizen
When attempting to import a bunch of data into mysql tables using python and mysqldb, I run into the following error '2006 - mySQL Server has gone away', and then I am unable to reconnect again within the script.
I am iniitially re-using a connection object across transactions ( delineated by conn.commit() ), then when I first encounter this…