Replace .my.cnf with column-statistics.cnf at the system level for mysqldump #10579
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #10176
Replace .my.cnf with column-statistics.cnf at the system level for mysqldump
The
column-statistics.cnf
file is copied to/etc/mysql/conf.d/column-statistics.cnf
for each Dockerfile that exists.This puts it as a system level mysql client change, so the web ui interface also works.
Description
Adds a mysql configuration file that disables column-statistics for mysqldump, which allows the snipe-it backup to run as expected. As well as the web ui for making backups, as pointed out by @aduzsardi
Fixes # 10176
Type of change
How Has This Been Tested?
Try running backup from existing container, to a mysql 5.x database server. It fails. Add the
column-statistics.cnf
to /etc/mysql/conf.d/column-statistics.cnf with the following contents:Run backup from web ui.
Checklist: