[Zope] Close Database Connection /Newbie Question

Philipp Giere p.giere@hzd.hessen.de
Thu, 09 May 2002 14:00:36 +0200


Hello!

Could someone please help me? 

In a little python-product I  open a connection to Mysql like that:

db = self.ZMySQL_Connection()
With db.query("SQL") i send requests to the database.

It works fine.
But after a while I get an error "too many connections". Seems logical
for me, because I don't close the connection. But how do I close it?
Something like db.close() doesn't work. 

Thanks in advance 

Philipp