tags:

views:

254

answers:

2

Hi everyone,

I am just starting out with the MySQLdb module for python, and upon running some SELECT and UPDATE queries, the following gets output:

Exception _mysql_exceptions.OperationalError: (2013, 'Lost connection to MySQL server during query') in bound method Cursor.del of MySQLdb.cursors.Cursor object at 0x8c0188c ignored

The exception is apparently getting caught (and "ignored") by MySQLdb itself, so I guess this is not a major issue. Also, the SELECTs generate results and the table gets modified by UPDATE.

But, since I am just getting my feet wet with this, I want to ask: does this message suggest I am doing something wrong? Or have you seen these warnings before in harmless situations?

Thanks for any insight,

lara

A: 

Ha! Just realized I was trying to use the cursor after having closed the connection! In any case, it was nice writing! : )

l

laramichaels
A: 

Sorry for the confusion, I am still getting this message after all.

Has anyone seen this? Do you know what I am doing wrong?

Thanks! -l

laramichaels