Python MySQLdb错误210,异常代码为0

Python MySQLdb错误210,异常代码为0,python,bash,mysql-python,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脚本创

我使用以下脚本:

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。我以为我打开了太多的连接。但我在使用后关闭了它们。

这是正确的错误代码吗?Mysql错误代码长度为4位。这是错误2013,最后一位包含在csv文件中。很抱歉我解决了这个问题,通过使用一个脚本一次获取整个登录数据,将其保存在一个文本文件中,并在每个实例中读取相应的数据。