python 与mysql错误,求解决办法

当我用两个客户端向服务器发送数据时发生这样的错误:Mysql connection not available 这个错误怎样解决,求指导。

是不是mysql的连接池满了。看一下mysql的日志

http://blog.csdn.net/money_bear/article/details/14646289

http://stackoverflow.com/questions/27537892/cursor-raise-errors-operationalerrormysql-connection-not-available-operat

 config = {
'user': 'root',
'password': 'password',
'host': '127.0.0.1',
'port': '3306',
'database': 'dbname',
'raise_on_warnings': True,}

cnx = mysql.connector.connect(**config)    
cursor = cnx.cursor()