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

Split insert query during export when they exceed a configurable length #30

Open
nicolasriousset opened this issue Jun 22, 2023 · 0 comments

Comments

@nicolasriousset
Copy link

nicolasriousset commented Jun 22, 2023

When exporting a large datebase, the generated insert sql statements may exceed the system limits. Trying to execute the query on MariaDB triggers the following error :
SQL Error (1153): Got a packet bigger than 'max_allowed_packet' bytes

Increasing the 'max_allowed_packet' value is a workaround, hower, adding an "insert size" limit, like in HeidiSQL, would be a better way to solve the issue by splitting the insert statement in several ones.

A default 0 value for this limit would keep the current behaviour.

nicolasriousset added a commit to nicolasriousset/mysql-backup4j that referenced this issue Jun 22, 2023
… when they exceed a given size. Default value keeps the existing behaviour.
@nicolasriousset nicolasriousset changed the title Split insert query size during export when they exceed a configurable length Split insert query during export when they exceed a configurable length Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant