Informix 问题 (ifx_connect)
您好,我在安装 informix 客户端 sdk 后遇到问题(参考:http://www.debian-administration.org/article/651/Connect_to_Informix_using_PHP5_on_Lenny_x86_64)
操作系统:CentOS
这是我用来连接的 .php 文件
$db_conn = ifx_connect("dbname@ IPHost","用户","通行证");
这里有一些错误, 警告:ifx_connect() [function.ifx-connect]: E [SQLSTATE=IX 001 SQLCODE=-1829] in /var/www/html/index.php on line 5
有人知道解决方案吗? 谢谢
Hi I have a problem after installed informix client sdk (Ref : http://www.debian-administration.org/article/651/Connect_to_Informix_using_PHP5_on_Lenny_x86_64)
OS : CentOS
Here is the .php file that i use to connect
$db_conn = ifx_connect("dbname@IPHost","user","pass");
There is some error here,
Warning: ifx_connect() [function.ifx-connect]: E [SQLSTATE=IX 001 SQLCODE=-1829] in /var/www/html/index.php on line 5
is anyone know the solution ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 Informix 中查找有关错误的更多信息的方法通常是:(
给出或去掉一些空行。)
finderr
命令位于 $INFORMIXDIR/bin 中。您需要在环境中设置 $INFORMIXDIR ,除非/usr/informix
正确 - 它可能是实际软件目录的符号链接。有两种可能性:
在这两者中,我认为原因 1 的可能性更大。
SQLSTATE 的 IX001 值没有多大用处 - 它是通用的“Informix 出了问题”消息。 SQLCODE 更重要、更有帮助。
The way you find more about errors from Informix is often:
(Give or take some blank lines.) The
finderr
command is found in $INFORMIXDIR/bin. You need $INFORMIXDIR set in the environment unless/usr/informix
is correct - it could be a symlink to the actual software directory.There are two possibilities:
/usr/informix
) is being used but the software is not installed there.Of the two, I think reason 1 is much the more likely.
The IX001 value for SQLSTATE is of minimal use - it is the generic 'something went wrong with Informix' message. The SQLCODE is much more significant and helpful.