Traceback (most recent call last): File "/data/www/njl/app.py", line 3379, in get cur.execute("select qhname,sname,sid,qr,tel,qq,tl,kw,ds,sheng,skin,tpl,uclass,upath,pinyin,hideclass,zhen,comscope,address from shang where sid = "+ sid +" limit 1") File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute self.errorhandler(self, exc, value) File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler raise errorclass, errorvalue OperationalError: (2006, 'MySQL server has gone away')