Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ibase_connect: local computer host, can't figure out working path

Tags:

path

php

firebird

I may be dumb. Not sure yet.

Trying to do something that should be simple:

$database = '10.10.10.81:?????';
$username = 'admin';
$password = 'pw';

$conn = ibase_connect($database, $username, $password);
if (!$conn)
{
    echo "Error while connecting: ".ibase_errmsg();
    exit();
}

echo 'workan';

We hit the error: connection rejected by remote interface. From another question here I read that this comes from various things: Could be a user/password problem, could be a host ($database) problem, something else that I forget.

I believe my host string is terribly wrong and can't figure out how I should be going about this. Perhaps my google-fu is not up to par.

Trying to get to E:\fishbowl\database\data\base.fdb on 10.10.10.81, a separate local computer

Tried a bunch of combinations but can't seem to make anything work.

Edit: Just a heads up, this is a firebird database. Not sure if that changes things

like image 711
Remm Avatar asked Nov 04 '22 07:11

Remm


1 Answers

For windows, it should look like this:

localhost/10095:C:/Data/SKLADFD.FDB.

See how port (in this case 10095) is specified.

In your case:

10.10.10.81/3050:E:/fishbowl/database/data/base.fdb

Path to the file must be local file on server, not windows share on connecting machine.

like image 137
jasir Avatar answered Nov 15 '22 12:11

jasir