关于 PHP PDO INFORMIX 错误的问题

发布于 2024-11-08 11:39:42 字数 750 浏览 0 评论 0原文

上安装了 PDO_INFORMIX 和 CSDK

我已经在 CentOS5.6 32 位和 index.php

<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);

$db = new PDO("informix:host=172.30.179.81; service=5000;database=cms; EnableScrollableCursors=1", "myuser", "mypassword");
print("OK");
?>

,但我仍然收到此错误

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE=HY000, SQLDriverConnect: -11060 [Informix][Informix ODBC Driver]General error.' in /usr/local/apache/htdocs/index3.php:5 Stack trace: #0 /usr/local/apache/htdocs/index3.php(5): PDO->__construct('informix:host=1...', 'myuser', 'mypassword') #1 {main} thrown in /usr/local/apache/htdocs/index3.php on line 5

有人知道它是什么吗? 谢谢

I have installed PDO_INFORMIX and CSDK already on CentOS5.6 32bits

and index.php have

<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);

$db = new PDO("informix:host=172.30.179.81; service=5000;database=cms; EnableScrollableCursors=1", "myuser", "mypassword");
print("OK");
?>

but i still got this error

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE=HY000, SQLDriverConnect: -11060 [Informix][Informix ODBC Driver]General error.' in /usr/local/apache/htdocs/index3.php:5 Stack trace: #0 /usr/local/apache/htdocs/index3.php(5): PDO->__construct('informix:host=1...', 'myuser', 'mypassword') #1 {main} thrown in /usr/local/apache/htdocs/index3.php on line 5

Have anyone know what it is ?
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白云悠悠 2024-11-15 11:39:42

哎哟!查找有关错误的更多信息的标准技术是:

$ finderr -11060
-11060  General error.

An error occurred that has no specific SQL_STATE. In this case,
additional text is provided that identifies the source of the problem.
This IBM Informix CLI error code is the same as SQLSTATE value S1000.

$

这不是很有帮助 - 对此要有礼貌。

  • 连接字符串中有空格;删除它们有帮助吗?
  • 您可以telnet到主机172.30.179.81吗?
  • 您可以telnet到主机上的端口(服务)5000吗?
  • 您可以使用任何其他 Informix 工具从这台机器进行连接吗?
  • 您可以使用相同的连接字符串从其他计算机进行连接吗?

在绝望的情况下,您能否追踪所有共享库是否都正确加载?

Ouch! The standard technique for finding out more about errors is:

$ finderr -11060
-11060  General error.

An error occurred that has no specific SQL_STATE. In this case,
additional text is provided that identifies the source of the problem.
This IBM Informix CLI error code is the same as SQLSTATE value S1000.

$

That is not very helpful - to be polite about it.

  • There are spaces in the connect string; does removing them help at all?
  • Can you telnet to the host 172.30.179.81?
  • Can you telnet to the port (service) 5000 on the host?
  • Can you connect from this machine using any other Informix tool?
  • Can you connect from other machines using the same connect string?

In case of desparation, can you track down whether all the shared libraries are loading correctly?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文