Web2py 基于 Firebird 数据库的连接失败

2024-09-30 01:35:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图将一个web2py应用程序连接到另一个服务器上的firebird数据库。在

这是输出消息:

Ticket ID 127.0.0.1.2016-01-11.12-27-33.cdefb9f6-3cc5-46ce-85dc-a2a12220e7f6

Failure to connect, tried 5 times: Traceback (most recent call last): File "/home/filhofilha/Documents/Deployment/Web2Py/web2py/gluon/packages/dal/pydal/base.py", line 435, in init self._adapter = ADAPTERSself._dbname File "/home/filhofilha/Documents/Deployment/Web2Py/web2py/gluon/packages/dal/pydal/adapters/base.py", line 53, in call obj = super(AdapterMeta, cls).call(*args, **kwargs) File "/home/filhofilha/Documents/Deployment/Web2Py/web2py/gluon/packages/dal/pydal/adapters/firebird.py", line 121, in init if do_connect: self.reconnect() File "/home/filhofilha/Documents/Deployment/Web2Py/web2py/gluon/packages/dal/pydal/connection.py", line 105, in reconnect self.connection = f() File "/home/filhofilha/Documents/Deployment/Web2Py/web2py/gluon/packages/dal/pydal/adapters/firebird.py", line 119, in connector return self.driver.connect(**driver_args) File "/home/filhofilha/Documents/Deployment/Web2Py/web2py/gluon/contrib/pypyodbc.py", line 2434, in init self.connect(connectString, autocommit, ansi, timeout, unicode_results, readonly) File "/home/filhofilha/Documents/Deployment/Web2Py/web2py/gluon/contrib/pypyodbc.py", line 2483, in connect check_success(self, ret) File "/home/filhofilha/Documents/Deployment/Web2Py/web2py/gluon/contrib/pypyodbc.py", line 988, in check_success ctrl_err(SQL_HANDLE_DBC, ODBC_obj.dbc_h, ret, ODBC_obj.ansi) File "/home/filhofilha/Documents/Deployment/Web2Py/web2py/gluon/contrib/pypyodbc.py", line 964, in ctrl_err raise Error(state,err_text) Error: (u'IM012', u'[IM012] [unixODBC][Driver Manager]DRIVER keyword syntax error')

我的代码:

dbExternal = DAL('firebird://user:password@localhost/C:\\DB.FDB', migrate_enabled=False)

我怎样才能修好它?在

谢谢


Tags: inpyselfhomepackagesconnectlinedeployment

热门问题