python fdb, trying to connect to an external firebird 1.5 super server

独自空忆成欢 提交于 2019-12-06 16:50:36

Assuming that the IP 192.168.40.28 is correct my next quess would be that you don't have the port 3050 open (thats the default port for Firebird). Check your server's firewall and open the port. You can use some other port instead of 3050 by seting the RemoteServicePort parameter in the firebird.conf file, but then you have to set the port parameter in the connect method too.

As other answers have stated, check that port 3050 is open.

However, fdb only supports Firebird 2.0 or higher. For Firebird 1.5, you can use either pyodbc or pyfirebirdsql

Note that, among other issues (like not handling Firebird INTEGER datatypes properly), pyfirebirdsql isn't 100% compliant with PEP 249 -- Python DB API 2.0 as calls to Cursor.rowcount always return -1.


Edit: After posting this, I took it upon myself to write the code for pyfirebirdsql's rowcount function, so now it works as expected, instead of always returning 1. Shortly after that, the pyfirebirdsql author fixed the INTEGER issues as well.

You must to check the port open in your host as ain said. BTW, fdb is just for firebird 2.0 and higher. Check it out. https://fdb.readthedocs.org/en/latest/getting-started.html#installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!