(1, 2, 1, 'gamma', 2)

Note: the latest Python they have is 2.3. That's what I use.

"Adrian Holovaty" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

On 9/2/05, Eugene Lazutkin <[EMAIL PROTECTED]> wrote:
> I host my Django app on Dreamhost. They provide MySQL. I am getting a 
> weird
> MySQL-related error on regular basis: "OperationalError: (2013, 'Lost
> connection to MySQL server during query')".
> [..]
> Can it be Django's problem? One possibility is Django sets some timeout
> property on MySQL connection, which is too small. Or default timeout is 
> too
> small. Maybe some code should check that connection is alive and
> re-establish it, if it is dead.

Hey Eugene,

Django doesn't do any sort of timeout, so I suspect it's an error with
MySQLdb, the Python MySQL bindings. Which version of MySQLdb is
Dreamhost using? To find that out, do this:

"""
import MySQLdb
print MySQLdb.version_info
"""

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org



Reply via email to