ibase_connect:Windows上的远程计算机主机和共享的db文件 [英] ibase_connect: remote computer host and shared db file from windows

查看:137
本文介绍了ibase_connect:Windows上的远程计算机主机和共享的db文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Linux红帽,通过安装到/mnt/databases将驱动器连接到远程服务器(192.168.0.103) 然后尝试连接

Linux red hat, connect the drive to a remote server (192.168.0.103) via mount to /mnt/databases Then trying to connect

$idbh = ibase_connect("192.168.0.103/3050:/mnt/databases/XXX.IB", "SYSDBA", "masterkey", "WIN1251") or die(ibase_errmsg().' on line: '.__LINE__);

结果

 ibase_connect(): I/O error for file "/mnt/databases/XXX.IB" Error while trying to open file unknown Win32 error 3

尝试统计/mnt/databases/XXX.IB

Try stat /mnt/databases/XXX.IB

  File: `/mnt/databases/XXX.IB'
  Size: 46415872        Blocks: 90752      IO Block: 16384  regular file
Device: 17h/23d Inode: 1970324836974627  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2013-07-16 16:04:08.470709400 +0400
Modify: 2013-06-17 13:03:03.600143300 +0400
Change: 2013-06-17 13:03:03.600143300 +0400

为什么我不能连接?

推荐答案

请勿尝试通过任何形式的安装来访问Firebird或Interbase数据库.服务器进程应与包含数据库的磁盘位于同一台计算机上.

Do not attempt to access a Firebird or Interbase database via any form of mount. The server process should be on the same machine as the disk containing the database.

您的客户端随后将与服务器进程进行通信以与数据库进行交互.

Your client would then communicate with the server process to interact with the database.

这篇关于ibase_connect:Windows上的远程计算机主机和共享的db文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆