Меню Закрыть

Failed to locate host machine

Usually Firebird install should add the gdb_db service to your system. However, if you install manually, or don’t have required privileges or some other software deletes it — it may happen that gdb_db service is not defined. It can also happen if you try to access Firebird on another machine. To fix this on Windows, add the following line to %windir%system32driversetcservices:

gds_db 3050/tcp fb #Firebird

%windir% is the installation directory of your Windows, for example C:WINNT. On Linux, add the following line to /etc/services:

gds_db 3050/tcp # Firebird

You might need to restart the application that reported the error after these changes. Please note that you should add this line on the computer where the error is reported.

I try to run an ibase_connect to an firebird database.

The database is NOT on my localhost. It run on an network windows server.

I have windows too and have an connection to the shared folder:

I have XAMPP installed with

  • ibase extension
  • pdo firebird extension .

I copied the fbclient.dll into my XAMPP/php folder.

But if i run this code:

gives this error

firebird.log:

I added gds_db 3050/tcp to the service file on my localhost and the server (have restarted both) and it is the same error.

Windows Firewall is deactivated on server. Service for firebird server and firebird guardian is running.

1 Answer 1

Firebird can only use a database file local to the database server. You can’t connect to a Firebird database on a network share*. You need to connect to the Firebird server instead.

So if the database of ‘Z:/Folder_WITH_DB/database.fdb’ is on server firebirdsrv in folder D:datadatabase.fdb, then you need to connect to firebirdsrv/3050:D:datadatabase.fdb . I strongly suggest to remove the networkshare.

Читайте также:  Canon digital ixus 9515

*: Technically a share can be used, but it is disabled by default because accessing a database from multiple servers through a network share can corrupt a database.

При подключении к базе выходит ошибка ‘Unable to complete network request to host . Failed to locate host machine. Undefined service gds_db/tcp error?’ Сначала проверяем на работоспособность сервера и его сетевую доступность:

Если вссе ок, а ошибка продолжает сыпаться,то:

Рекомендуем к прочтению

Добавить комментарий

Ваш адрес email не будет опубликован.