kellerkinderde / shopware6-database-dump Goto Github PK
View Code? Open in Web Editor NEWDump a Shopware 6 database for your local environments (and filter GDPR data)
License: MIT License
Dump a Shopware 6 database for your local environments (and filter GDPR data)
License: MIT License
hi,
first off thank you a lot for providing this script.
I want to use it to sync a production instance with a development instance under dockware.
SW6 is 6.4.17.2
Source DB is mysqld Ver 10.3.37-MariaDB-0ubuntu0.20.04.1, mysqldump Ver 10.19 Distrib 10.3.37-MariaDB
Target DB is mysqld Ver 5.7.40-0ubuntu0.18.04.1. (dockware)
Dump was created with --gdpr option.
On import i get error:
The value specified for generated column 'variant_listing_config' in table 'product' is not allowed
On removing the product table inserts from the dump, the import finished without errors.
Yet users table was empty (had to create new admin user on console)
I suspect MariadDB is not supported by this script?
MariaDB 10.3.22 or higher is officially supported by shopware, so it should be 'Standard DB' ?
Could we extend script to write product table into temporary table without column variant_listing_config and dump that table instead? Or maybe a view?
Or maybe mysqldump version is to blame?
Please advise howto proceed.
TIA
tom
There seems to be a portability issue (not sure if this is something you want to address, feel free to close the PR if not).
When using mysqldump
from the mariadb package, one cannot use the script since it exits with:
>> Creating structure dump...
mysqldump: unknown variable 'column-statistics=0'
Apparently the option --column-statistics=0
was only added for MySQL 8.0 and leads to an error if using some other version.
Currently the only not to complicated solution I could think of is to just configure this option in the ~/.my.cnf
(or globally) for mysqldump
and remove it from the script:
[mysqldump]
column-statistics=0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.