silverstripe / sspak

Tool for managing bundles of db/assets from Silverstripe environments
http://silverstripe.github.io/sspak/
BSD 3-Clause "New" or "Revised" License
47 stars 34 forks source link

sspak save bails with mysqldump: unknown variable 'column-statistics=0' #90

Closed bumbus closed 1 year ago

bumbus commented 2 years ago

It looks like this flag was added to mysqldump with this commit: https://github.com/silverstripe/sspak/commit/36add95cfd281a4318c77aa551114dbae6dbb34a

However, it looks like this causes an error while dumping the DB for some versions, e.g.:

mysqldump Ver 10.19 Distrib 10.3.35-MariaDB, for debian-linux-gnu (x86_64) mysql Ver 15.1 Distrib 10.3.35-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

Maybe it might help to expose this flag to the sspak command itself, so that the user can decide which mysql dump flags to use?

Acceptance Criteria

PRs

emteknetnz commented 2 years ago

PR https://github.com/silverstripe/sspak/pull/91

LoveDuckie commented 1 year ago

Also encountering this problem with MariaDB 10.5

sabina-talipova commented 1 year ago

PR has been tested with MySQL 5.7.4 / 8.0.31, MariaDB 10.9.3. Issue was solved.