# Error

**URL:** https://forum.shopware.com/t/error/60901
**Category:** Installation / Einstieg
**Created:** [6. August 2019 um 18:12 UTC](https://forum.shopware.com/t/error/60901 "2019-08-06T18:12:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![simonm](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simonm/32/19738_2.png) [@simonm](https://forum.shopware.com/u/simonm)
#### Post date: [6. August 2019 um 18:12 UTC](https://forum.shopware.com/t/error/60901/1 "2019-08-06T18:12:08Z")

</div>

Hallo zusammen,

habe jetzt versucht, SW6 zu installieren, bei Schritt 70 von 250 kommt diese Fehlermeldung.&nbsp;  
Kann mir jemand sagen, was das für ein Fehler ist?

Error

Received an error message.  
**URL:** &nbsp;importDatabase  
**Message:** &nbsp;Internal Server Error

Please try to fix this error and restart the update.

Response

```
 {"valid":false,"errorMsg":"An exception occurred while executing '\n CREATE TABLE `custom_field` (\n `id` BINARY(16) NOT NULL PRIMARY KEY,\n `name` VARCHAR(255) NOT NULL,\n `type` VARCHAR(255) NOT NULL,\n `config` JSON NULL,\n `active` TINYINT(1) NOT NULL DEFAULT 1,\n `set_id` BINARY(16) NULL,\n `created_at` DATETIME(3) NOT NULL,\n `updated_at` DATETIME(3) NULL,\n CONSTRAINT `uniq.custom_field.name` UNIQUE (`name`),\n CONSTRAINT `json.custom_field.config` CHECK(JSON\_VALID(`config`)),\n CONSTRAINT `fk.custom_field.set_id` FOREIGN KEY (set\_id)\n REFERENCES `custom_field_set` (id) ON UPDATE CASCADE ON DELETE CASCADE\n ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4\_unicode\_ci;\n ':\n\nSQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint"}

```

Vielen Dank

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [6. August 2019 um 18:20 UTC](https://forum.shopware.com/t/error/60901/2 "2019-08-06T18:20:40Z")

</div>

Welche Datenbank Version hast du im Einsatz?

Es muss mindestens MySQL 5.7 oder MariaDB 10.3 sein.

---

<div class="post-metadata">

### Author: ![simonm](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simonm/32/19738_2.png) [@simonm](https://forum.shopware.com/u/simonm)
#### Post date: [6. August 2019 um 19:42 UTC](https://forum.shopware.com/t/error/60901/3 "2019-08-06T19:42:53Z")

</div>

MySQL 5.7 ich weiß nicht das beste.
