Zum Inhalt springen

Umzug Typo3 SQL syntax

Erstellt am 14. Februar 2012 · 1 Antwort · letzte Antwort am 14. Februar 2012

Tags: Frage

schtebo ·

Hi zusammen,

ich habe von einem Typo3 4.2 auf Typo3 4.5 umgezogen + Serverwechsel durchgeführt.
Beim Update erhalte ich aber immer eine Fehlermeldung:

SQL-Befehl des Database Analyser

CREATE TABLE tx_crawler_queue ( qid int(11) NOT NULL auto_increment, page_id int(11) NOT NULL default '0', parameters text NOT NULL, parameters_hash varchar(50) NOT NULL default '', configuration_hash varchar(50) NOT NULL default '', scheduled int(11) NOT NULL default '0', exec_time int(11) NOT NULL default '0', set_id int(11) NOT NULL default '0', result_data longtext NOT NULL, process_scheduled int(11) NOT NULL default '0', process_id varchar(50) NOT NULL default '', process_id_completed varchar(50) NOT NULL default '', configuration varchar(50) NOT NULL default '', _ KEY exec_time (exec_time), PRIMARY KEY (qid), KEY page_id (page_id), KEY process_id (process_id), KEY parameters_hash (parameters_hash), KEY configuration_hash (configuration_hash) ) ENGINE=InnoDB;

Fehlermeldung des Database Analyser

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 'KEY exec_time (exec_time), PRIMARY KEY (qid), KEY page_id (page_id), KEY process' at line 15

Folgende Einstellung habe ich bereits in der localconf.php eingefügt.

Es handelt sich um einen Windows Server Apache 2.2.22, PHP 5.3.10 & MySQL 5.5
http://wiki.typo3.org/Windows

$TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET sql-mode="MYSQL40"';
LuP ·

Hallo,

beim ersten Hinsehen fällt ein Unterstrich auf, der nicht hinein passt.

Die Zeile:

_ KEY exec_time (exec_time)

Normal müsste /typo3conf/ext/crawler/ext_tables.sql so sein:

CREATE TABLE tx_crawler_queue (
  qid int(11) DEFAULT '0' NOT NULL auto_increment,
  page_id int(11) DEFAULT '0' NOT NULL,
  parameters text NOT NULL,
  parameters_hash varchar(50) DEFAULT '' NOT NULL,
  configuration_hash varchar(50) DEFAULT '' NOT NULL,
  scheduled int(11) DEFAULT '0' NOT NULL,
  exec_time int(11) DEFAULT '0' NOT NULL,
  set_id int(11) DEFAULT '0' NOT NULL,
  result_data longtext NOT NULL,
  process_scheduled int(11) DEFAULT '0' NOT NULL,
  process_id varchar(50) DEFAULT '' NOT NULL,
  process_id_completed varchar(50) DEFAULT '' NOT NULL,
  configuration varchar(50) DEFAULT '' NOT NULL,

  PRIMARY KEY (qid),
  KEY page_id (page_id),
  KEY set_id (set_id),
  KEY exec_time (exec_time),
  KEY process_id (process_id),
  KEY parameters_hash (parameters_hash),
  KEY configuration_hash (configuration_hash)
) ENGINE=InnoDB;

VG,
LuP