Git Product home page Git Product logo

shopware6-database-dump's People

Contributors

aragon999 avatar kleinmann avatar lx-wnk avatar mindulace avatar xndrdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

shopware6-database-dump's Issues

generated column 'variant_listing_config' in table 'product'

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

Not usable with `mysqldump` from mariadb or older MySQL version than 8.0

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.