SQL Import Problem

Hallo,

ich versuche gerade meine Shopware Datenbank zu importieren, dabei wirft er mir bei einigen Tabellen immer diesen Fehler:

CREATE TABLE `s_multi_edit_filter` (
  `id` int(11) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Name of the filter',
  `filter_string` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'The actual filter string',
  `description` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'User description of the filter',
  `created` datetime DEFAULT '0000-00-00 00:00:00' AS `COMMENT`
)

 

MySQL meldet:  Dokumentation

#1064 - Fehler in der SQL-Syntax. Bitte die korrekte Syntax im Handbuch nachschlagen bei 'AS COMMENT )' in Zeile 6

 

Was stimmt denn daran nicht?

Vielen Dank

Also im Original (SW 5.3.x) sieht es so aus:

CREATE TABLE `s_multi_edit_filter` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL COMMENT 'Name of the filter' COLLATE 'utf8_unicode_ci',
`filter_string` TEXT NOT NULL COMMENT 'The actual filter string' COLLATE 'utf8_unicode_ci',
`description` TEXT NOT NULL COMMENT 'User description of the filter' COLLATE 'utf8_unicode_ci',
`created` DATETIME NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Creation date',
`is_favorite` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Did the user mark this filter as favorite?',
`is_simple` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'Can the filter be loaded and modified with the simple editor?',
PRIMARY KEY (`id`)
)
COMMENT='Holds all multi edit filters'
COLLATE='utf8_unicode_ci'
ENGINE=InnoDB
AUTO_INCREMENT=1
;

Verwenung auf eigene Gefahr.

oh ok arg, was ist denn da passiert?

Also in der original DB sind die Felder auch so vorhanden wie du schreibst.

Warum gibt es denn beim export der db solch ein Problem, dass ich die Tabelle nicht mehr importieren kann?

Gibt es noch eine andere Möglichkeit die DB zu übertragen ohne phpmyadmin export?

Ich weis nicht was du genau vor hast. Ich persönlich benutze HeidiSQL.

1 „Gefällt mir“

ja genau das wars werde ich auch mal testen, danke