2

将typo3 版本6 升级到8.7.3 时出现此数据库错误...

An exception occurred while executing 'SELECT `pid` FROM `sys_template` WHERE (root = 1 AND deleted = 0 AND hidden = 0 AND starttime <= :starttime AND (endtime = 0 OR endtime > :endtime)) AND ((`sys_template`.`deleted` = 0) AND (`sys_template`.`hidden` = 0) AND (`sys_template`.`starttime` <= 1500543000) AND ((`sys_template`.`endtime` = 0) OR (`sys_template`.`endtime` > 1500543000)))': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':starttime AND (endtime = 0 OR endtime > :endtime)) AND ((`sys_template`.`delete' at line 1 

请查看屏幕截图。

升级项目时出错

执行数据库分析器时出现错误

4

1 回答 1

2

数据库配置变量已从 TYPO3 v7 更改为 v8 ^^

它不是

$GLOBALS['TYPO3_CONF_VARS']['DB']['database'] $GLOBALS['TYPO3_CONF_VARS']['DB']['host'] $GLOBALS['TYPO3_CONF_VARS']['DB']['username'] $GLOBALS['TYPO3_CONF_VARS']['DB']['password']

不再,但是

$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['host'] $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['dbname'] $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['user'] $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['password']

在通过 AdditionalConfiguration.php 配置其他环境时尤其如此

于 2017-07-20T14:28:16.340 回答