# Internal Server Error beim importDatabase

**URL:** https://forum.shopware.com/t/internal-server-error-beim-importdatabase/61112
**Category:** Installation/Einstieg
**Created:** [15. August 2019 um 14:22 UTC](https://forum.shopware.com/t/internal-server-error-beim-importdatabase/61112 "2019-08-15T14:22:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alteserien](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@alteserien](https://forum.shopware.com/u/alteserien)
#### Post date: [15. August 2019 um 14:22 UTC](https://forum.shopware.com/t/internal-server-error-beim-importdatabase/61112/1 "2019-08-15T14:22:39Z")

</div>

Hi,

ich bekomme leider einen Fehler bei der Installation.  
Ich habe einen dedicated Server mit PHP 7.3 und MySQL 5.7.26. Das sollte über den Systemanforderungen liegen. Was kann ich machen ?  
&nbsp;

Error

Received an error message.  
**URL:** importDatabase  
**Message:** 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"}
```

---

<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: [15. August 2019 um 15:19 UTC](https://forum.shopware.com/t/internal-server-error-beim-importdatabase/61112/2 "2019-08-15T15:19:51Z")

</div>

Das ist aber Shopware 6?

Je nach Hosting kann das aktuell am Installer liegen, siehe:&nbsp;[https://issues.shopware.com/issues/NEXT-4072](https://issues.shopware.com/issues/NEXT-4072?_ga=2.193909999.333022990.1565790299-345959159.1565790298)
