[DB-SIG] Help on MySQL exception

Andy Dustman andy@dustman.net
11 Jun 2002 15:32:18 -0400


On Tue, 2002-06-11 at 07:05, Ralf Juengling wrote:

> I'm a dbms novice and recently wrote a small python program which feeds
> data into a mySQL server. Now this program is occasionally stopped by
> an mysql exception for no apparent reason: "mySQL server has gone away"
> (see below).

You'll probably have to look at the MySQL server logs to find out what
went wrong. What versions of MySQL (client libraries and server) are you
using, and what version of MySQLdb?

>>> import MySQLdb
>>> db=MySQLdb.connect(...)
>>> MySQLdb.version_info
(0, 9, 2, 'gamma', 1)
>>> MySQLdb._mysql.get_client_info()
'3.23.49'
>>> db.get_server_info()
'3.23.49-Max'
>>> 


-- 
Andy Dustman         PGP: 0x930B8AB6
    @       .net     http://dustman.net/andy
"Cogito, ergo sum." -- Rene Descartes
"I yam what I yam and that's all what I yam." -- Popeye