简体   繁体   English

从Delphi应用程序连接到同一台计算机上的Interbase服务器

[英]Connecting from a Delphi app to an Interbase server on the same machine

I have an XE8 project that (is supposed to) access an Interbase server running on the same machine. 我有一个XE8项目,该项目应该(应该)访问在同一台计算机上运行的Interbase服务器。 A few days ago it was working fine, but has developed the problem that if I attempted to set the Connected property of a TIBDatabase component to True , either in the IDE or in code at run-time, I get the error: 几天前它运行良好,但是出现了一个问题,如果我试图在IDE或运行时的代码TIBDatabase组件的Connected属性设置为TrueTIBDatabase出现错误:

Connection rejected by remote interface

Attempting to connect to the server using the IBConsole utility also produces this error. 尝试使用IBConsole实用程序连接到服务器也会产生此错误。

I've cleared as much of Interbase as I can find from the machine & its registry and re-installed it but the problem persists. 我已经从机器及其注册表中找到了尽可能多的Interbase,然后重新安装了它,但问题仍然存在。 Googling the message text finds a modest number of things, but I've tried the few suggested solutions to no useful effect. 谷歌搜索消息文本发现适量的东西,但是我尝试了一些建议的解决方案,但没有起到任何作用。

Btw, the PortQry utility confirms that port 3050 is open and that the gds_db server is listening. 顺便说一句,PortQry实用工具确认端口3050已打开并且gds_db服务器正在侦听。

My question, obviously, is does anyone recognise this symptom and know how to fix it? 显然,我的问题是,有人能识别出这种症状并知道如何解决吗?

I eventually found the cause of this problem. 我最终找到了这个问题的原因。 I have an instance of the Firebird server installed on the problem machine and set up as a service, and at some point recently, its Startup Type had been changed from Disabled to Automatic and the fact that it was running was evidently causing the IB server to misbehave. 我在问题机器上安装了Firebird服务器的实例并将其设置为服务,最近在某个时候,其Startup Type已从“ Disabled更改为“ Automatic并且它正在运行的事实显然导致IB服务器胡作非为。 Reverting it to `Disabled' caused the problem to vanish. 将其恢复为“禁用”会导致问题消失。

I imagine that it was actually the FB server that was the 'remote interface' that was rejecting the connection. 我想实际上是FB服务器拒绝了该连接的“远程接口”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM