MySQLdb._exceptions.OperationalError: (2005, "Unknown MySQL server host 'mysql' (2)")
扩展应用调用栈:
1. /usr/lib64/python2.7/site-packages/MySQLdb/connections.py, 第 179 行
super(Connection, self).__init__(*args, **kwargs2)
2. /usr/lib64/python2.7/site-packages/MySQLdb/__init__.py, 第 84 行
return Connection(*args, **kwargs)
3. /usr/lib64/python2.7/site-packages/relstorage/adapters/drivers.py, 第 172 行
return self._connect(*args, **kwargs)
4. /usr/lib64/python2.7/site-packages/relstorage/adapters/mysql/drivers/__init__.py, 第 164 行
return super(AbstractMySQLDriver, self).connect(*args, **kwargs)
5. /usr/lib64/python2.7/site-packages/relstorage/adapters/mysql/drivers/mysqldb.py, 第 86 行
return AbstractMySQLDriver.connect(self, *args, **kwargs)
6. /usr/lib64/python2.7/site-packages/relstorage/adapters/mysql/connmanager.py, 第 103 行
conn = self._db_connect(**params)
7. /usr/lib64/python2.7/site-packages/relstorage/adapters/mysql/connmanager.py, 第 133 行
replica_selector=self.ro_replica_selector)
8. /usr/lib64/python2.7/site-packages/relstorage/adapters/connmanager.py, 第 319 行
conn, cursor = self._do_open_for_load()
9. /usr/lib64/python2.7/site-packages/relstorage/adapters/connections.py, 第 158 行
new_conn, new_cursor = self._new_connection()
10. /usr/lib64/python2.7/site-packages/relstorage/adapters/connections.py, 第 244 行
self._open_connection()
11. /usr/lib64/python2.7/site-packages/relstorage/adapters/connections.py, 第 221 行
return self.call(callback, True, *args, **kw)
12. /usr/lib64/python2.7/site-packages/relstorage/storage/__init__.py, 第 738 行
self.__on_load_first_use
13. /usr/lib/python2.7/site-packages/ZODB/Connection.py, 第 737 行
invalidated = self._storage.poll_invalidations()
14. /usr/lib/python2.7/site-packages/ZODB/Connection.py, 第 921 行
self.newTransaction(None, False)
15. /usr/lib/python2.7/site-packages/ZODB/DB.py, 第 777 行
result.open(transaction_manager)
16. /usr/lib/python2.7/site-packages/zope/app/publication/zopepublication.py, 第 158 行
conn = self.db.open()
17. /usr/lib/python2.7/site-packages/zope/publisher/publish.py, 第 140 行
obj = publication.getApplication(request)
18. /usr/lib/python2.7/site-packages/zope/publisher/publish.py, 第 154 行
obj, request, exc_info, True)
19. /usr/lib/python2.7/site-packages/zope/app/wsgi/__init__.py, 第 65 行
request = publish(request, handle_errors=handle_errors)
20. /opt/workonline/zopen.frs4wsgi/zopen/frs4wsgi/filter.py, 第 180 行
self.response = self.app(self.env, self.start_response)
21. /opt/workonline/zopen.frs4wsgi/zopen/frs4wsgi/filter.py, 第 86 行
return resp(env, start_response)