Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backup.pl fails when source db is mysql 5.7 and destination db is mysql 8.0 #884

Closed
OlliW opened this issue Mar 24, 2021 · 4 comments
Closed
Assignees
Labels
bug Something isn't working as intended
Milestone

Comments

@OlliW
Copy link

OlliW commented Mar 24, 2021

then i have to set the parameter column-statistics

image

mysqldump --column-statistics=0

@bschmalhofer bschmalhofer self-assigned this Mar 25, 2021
@bschmalhofer bschmalhofer added the bug Something isn't working as intended label Mar 25, 2021
@bschmalhofer
Copy link
Contributor

Hi @OlliW ,

it looks like the problem is that on some versions of mysqldump the column-statistics feature is turned on by default. And on some versions of mysqldump this leads to an error when the table information_schema.COLUMN_STATISTICS does not exist. Under MySQL 5.7 this table usually does not exists.

As this is an effect that occurs only under specific circumstances I'm hesitant to add --column-statistics=0 permanently to the dump command. Instead I'll add an apption for passing extra options to the dump command. Adding a --dry-run option for printing out the dump commands seems to be useful too.

bschmalhofer added a commit that referenced this issue Mar 25, 2021
Avoid that file scoped vars are used accidentally.
@bschmalhofer
Copy link
Contributor

Hi @OlliW ,

I adapted scripts/backup.pl in the branch https://github.com/RotherOSS/otobo/tree/issue-%23884-no_column_statistics . The plan is to integrate this into OTOBO 10.0.10, but we need to test first.

Best regards,
Bernhard

bschmalhofer added a commit that referenced this issue Apr 19, 2021
In order to have manageable diffs with the rel-10_0 branch.
At least start on a Main function.
bschmalhofer added a commit that referenced this issue Apr 19, 2021
@bschmalhofer
Copy link
Contributor

Changes are merged now. Tests are pending.

@bschmalhofer bschmalhofer added this to the OTOBO 10.0.10 milestone Apr 19, 2021
@svenoe
Copy link
Contributor

svenoe commented Apr 21, 2021

At least a standard migration passed.

@svenoe svenoe closed this as completed Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

3 participants