【问题标题】:DB Access Error During TestLink InstallationTestLink 安装期间的数据库访问错误
【发布时间】:2016-11-30 15:29:38
【问题描述】:

我是 testlink 的新手。我只是在我的本地主机上使用 xampp 创建 testlink 安装。在安装 testlink 期间。我得到了以下错误

 ============================================================================== 
     DB Access Error - debug_print_backtrace() OUTPUT START 
     ============================================================================== 
    #0  database->exec_query() called at [C:\xampp\htdocs\testlink\lib\functions\logger.class.php:852]
    #1  tlEvent->writeToDB() called at [C:\xampp\htdocs\testlink\lib\functions\logger.class.php:986]
    #2  tlDBLogger->writeEvent() called at [C:\xampp\htdocs\testlink\lib\functions\logger.class.php:548]
    #3  tlTransaction->writeEvent() called at [C:\xampp\htdocs\testlink\lib\functions\logger.class.php:469]
    #4  tlTransaction->add() called at [C:\xampp\htdocs\testlink\lib\functions\logging.inc.php:68]
    #5  tLog() called at [C:\xampp\htdocs\testlink\lib\functions\database.class.php:208]
    #6  database->exec_query() called at [C:\xampp\htdocs\testlink\lib\functions\logger.class.php:705]
    #7  tlEventManager->deleteEventsFor() called at [C:\xampp\htdocs\testlink\lib\functions\logger.class.php:132]
    #8  tlLogger->deleteEventsFor() called at [C:\xampp\htdocs\testlink\login.php:215]
    #9  renderLoginScreen() called at [C:\xampp\htdocs\testlink\login.php:198]
    #10 doBlockingChecks() called at [C:\xampp\htdocs\testlink\login.php:34]
     ============================================================================== 
     ============================================================================== 
     DB Access Error - debug_print_backtrace() OUTPUT START 
     ============================================================================== 
    #0  database->exec_query() called at [C:\xampp\htdocs\testlink\lib\functions\logger.class.php:705]
    #1  tlEventManager->deleteEventsFor() called at [C:\xampp\htdocs\testlink\lib\functions\logger.class.php:132]
    #2  tlLogger->deleteEventsFor() called at [C:\xampp\htdocs\testlink\login.php:215]
    #3  renderLoginScreen() called at [C:\xampp\htdocs\testlink\login.php:198]
    #4  doBlockingChecks() called at [C:\xampp\htdocs\testlink\login.php:34]
     ============================================================================== 

我搜索了很多,但找不到合适的答案。有人可以帮我吗?

【问题讨论】:

    标签: testing installation testlink


    【解决方案1】:

    我使用以下步骤解决了这些问题。 为 mysql 使用了正确的凭据(用户名、密码),并为 testlink 安装使用了相同的凭据。

    如果您的凭据是正确的,并且在您遇到相同的问题之前,请执行以下步骤。

    1. 导航到 \testlink-code-testlink_1_9\install\sql\mysql 文件夹并打开文件“testlink_create_tables.sql”
    2. 修改creation_ts datetime NOT NULL default 'CURRENT_TIMESTAMP'为creation_ts datetime NOT NULL default '2016-11-30 11:26:36'。
    3. 不应有两列默认为“CURRENT_TIMESTAMP”。如果可用,请更改默认值“2016-11-30 11:26:36”而不是“CURRENT_TIMESTAMP”
    4. 提供正确的数据库凭据并继续。希望它会奏效!

    【讨论】:

      【解决方案2】:

      这已经解决了。我安装了带有凭据的mysql 用户名:“root”和密码:(空白), 当我使用相同的凭据使用 xampp 进行 testlink 安装时。 收到此错误“数据库访问错误”。 最后我把mysql和xampp都卸载了。

      使用 mysql 的有效凭据(而不是使用“空白”作为密码) 并使用相同的凭据来使用 xampp 安装 testlink。

      所以这是由于“数据库登录凭据”引起的

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2016-04-25
        • 1970-01-01
        • 2023-01-26
        • 1970-01-01
        • 2020-08-23
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多