是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]
==============================================================================
我在Google上搜索了很多,但是找不到合适的答案。有人可以帮我吗?
最佳答案
我使用以下步骤解决了问题。
为mysql使用了适当的凭据(用户名,密码),并为testlink安装使用了相同的凭据。
如果您的凭据正确无误,直到遇到相同的问题,请执行以下步骤。
导航到\ testlink-code-testlink_1_9 \ install \ sql \ mysql文件夹并打开文件'testlink_create_tables.sql'
将creation_ts datetime NOT NULL默认'CURRENT_TIMESTAMP'修改为creation_ts datetime NOT NULL默认'2016-11-30 11:26:36'。
不应有两列的默认值为“ CURRENT_TIMESTAMP”。如果可用,请更改默认值“ 2016-11-30 11:26:36”,而不是“ CURRENT_TIMESTAMP”
提供适当的数据库凭据,然后继续。希望它能工作!