# SQL Import Problem

**URL:** <https://forum.shopware.com/t/sql-import-problem/50854>\
**Category:** Programmierung\
**Created:** [1. Februar 2018 um 19:19 UTC](https://forum.shopware.com/t/sql-import-problem/50854 "2018-02-01T19:19:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)\
**Post date:** [1. Februar 2018 um 19:19 UTC](https://forum.shopware.com/t/sql-import-problem/50854/1 "2018-02-01T19:19:39Z")

</div>

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`
)

```

&nbsp;

**MySQL meldet:&nbsp;** [![Dokumentation](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/2/2daeaa8b5f19f0bc209d976c02bd6acb51b00b0a.gif "Dokumentation")](http://v815.timmehosting.de/phpmyadmin/url.php?url=https%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.7%2Fen%2Ferror-messages-server.html)

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

&nbsp;

`Was stimmt denn daran nicht?`

`Vielen Dank`

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [2. Februar 2018 um 08:04 UTC](https://forum.shopware.com/t/sql-import-problem/50854/2 "2018-02-02T08:04:37Z")

</div>

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.**

---

<div class="post-metadata">

**Author:** ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)\
**Post date:** [2. Februar 2018 um 08:19 UTC](https://forum.shopware.com/t/sql-import-problem/50854/3 "2018-02-02T08:19:43Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [2. Februar 2018 um 08:26 UTC](https://forum.shopware.com/t/sql-import-problem/50854/4 "2018-02-02T08:26:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![livaro2014](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@livaro2014](https://forum.shopware.com/u/livaro2014)\
**Post date:** [2. Februar 2018 um 08:38 UTC](https://forum.shopware.com/t/sql-import-problem/50854/5 "2018-02-02T08:38:10Z")

</div>

ja genau das wars werde ich auch mal testen, danke
