MySQLdb错误210,异常代码为0

时间:2011-05-04 20:56:25

标签: python bash mysql-python

我使用以下脚本:

try:
     conn = MySQLdb.connect (host = "localhost",user = "testuser",
                             passwd = "testpass", db = "test")
except MySQLdb.Error, e:
     print "Error %d: %s" % (e.args[0], e.args[1])
     sys.exit (1)

当我使用bash脚本创建此代码的多个实例时,我得到错误210,异常代码为0。我以为我打开了太多连接。但我在使用后关闭了它们。

0 个答案:

没有答案