【问题标题】:Updating an old site from DB to MDB2 connection, getting a lot of call to undefined function errors将旧站点从 DB 更新到 MDB2 连接,大量调用未定义函数错误
【发布时间】:2015-07-02 22:13:44
【问题描述】:

将旧站点迁移到我们的服务器,该服务器使用 DB 连接 (PEAR)

更新到MDB2,下载安装包和mysql驱动,现在网站报错

Call to undefined function: MDB2_Driver_mysql::execute()

Call to undefined method MDB2_Error::execute()

Call to undefined method MDB2_Error::numRows()

这里有什么我错过的吗?

【问题讨论】:

    标签: php mysql pear


    【解决方案1】:

    MDB2_Error 类没有 execute 或 numRows 方法,因此 MDB2 驱动程序很可能返回该类的实例以指示从您的 RDBMS 返回的错误。 我建议您检查您的代码并确保它正确处理错误。

    有关如何在代码中执行此操作的更多详细信息,请参见 the manual pages for MDB2

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-25
      • 1970-01-01
      • 1970-01-01
      • 2015-02-04
      • 2017-07-25
      • 2015-08-10
      相关资源
      最近更新 更多