1

我是 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]
     ============================================================================== 

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

4

2 回答 2

2

我使用以下步骤解决了这些问题。为 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. 提供适当的数据库凭据并继续。希望它会奏效!
于 2016-11-30T07:29:38.763 回答
0

这得到了解决。当我使用相同的凭据使用 xampp 安装 testlink 时,我安装了带有凭据 username:"root" 和 password: (blank) 的 mysql 。收到此错误“数据库访问错误”。最后我卸载了 mysql 和 xampp 。

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

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

于 2013-04-16T11:07:36.457 回答