这是出错的信息
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1042, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/var/www/cunzhe/handler/licai.py", line 3018, in get
template_variables['bankitems'] = self.licai_model.get_bankListStr()
File "/var/www/cunzhe/model/licai.py", line 862, in get_bankListStr
bankitemslist = self.get_bankitems_for_licai_by_bankStr(bankStr)
File "/var/www/cunzhe/model/licai.py", line 870, in get_bankitems_for_licai_by_bankStr
bankitemslist = self.get_bankitems_for_licai_by_bankList(banklist)
File "/var/www/cunzhe/model/licai.py", line 883, in get_bankitems_for_licai_by_bankList
logs = self.where(wheres).table("banklist").select()
File "/var/www/cunzhe/lib/query.py", line 295, in select
return self.db.query(sql) if not cheat else sql
File "/usr/local/lib/python2.7/dist-packages/tornado/database.py", line 118, in query
cursor = self._cursor()
File "/usr/local/lib/python2.7/dist-packages/tornado/database.py", line 203, in _cursor
self._ensure_connected()
File "/usr/local/lib/python2.7/dist-packages/tornado/database.py", line 199, in _ensure_connected
self.reconnect()
File "/usr/local/lib/python2.7/dist-packages/tornado/database.py", line 101, in reconnect
self._db = MySQLdb.connect(**self._db_args)
File "/usr/local/lib/python2.7/dist-packages/MySQL_python-1.2.4b4-py2.7-linux-x86_64.egg/MySQLdb/__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/MySQL_python-1.2.4b4-py2.7-linux-x86_64.egg/MySQLdb/connections.py", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' (111)")
看着应该是tornado框架