# Mysqldump einspielen

**URL:** <https://forum.shopware.com/t/mysqldump-einspielen/61016>\
**Category:** Installation / Einstieg\
**Created:** [12. August 2019 um 12:10 UTC](https://forum.shopware.com/t/mysqldump-einspielen/61016 "2019-08-12T12:10:49Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)\
**Post date:** [4. Juni 2021 um 12:22 UTC](https://forum.shopware.com/t/mysqldump-einspielen/61016/38 "2021-06-04T12:22:05Z")

</div>

seit SW 6.4 hab ich auch das problem und löse es wie folgt:

mysqldump wie immer erstellen

```auto
mysqldump -u$MYSQL_USR -p$MYSQL_PASS -h$MYSQL_HOST $MYSQL_DB > backup.sql

```

mit suchen&ersetzen die spalte verändern

```auto
sed -i 's/COLLATE utf8mb4_unicode_ci GENERATED ALWAYS AS/GENERATED ALWAYS AS/g' backup.sql

```

die spalte per `ALTER TABLE` hat das problem nicht behoben.  
die einstellungen bleiben bestehen.

```auto
ALTER TABLE `order` CHANGE `tax_status` `tax_status` VARCHAR(255) GENERATED ALWAYS AS (json_unquote(json_extract(`price`,'$.taxStatus'))) VIRTUAL;

```

---

_[View the full topic](https://forum.shopware.com/t/mysqldump-einspielen/61016)._
