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

A issue about the max-allowed-packet #186

Open
eshaoye opened this issue Sep 7, 2017 · 0 comments
Open

A issue about the max-allowed-packet #186

eshaoye opened this issue Sep 7, 2017 · 0 comments

Comments

@eshaoye
Copy link

eshaoye commented Sep 7, 2017

Hi,

I have a large "insert" sentence that is about 17MB. when I use mysql_api:execute/2 to execute the "insert", the return value is: "{error, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''/data/jenk' at line 1"}"
I am sure there is NOT a real syntax error in the "insert", I think the reason is that the "insert" is cut by the mysql server or by emysql driver.

But if I delete some part from the "insert" to make it less than 16MB, the "insert" can be executed successfully.

I have checked the parameter "max-allowed-packet" in mysql server, it is set to 20M.

And I can also see the macro "MAXPACKETBYTES" in emysql.hrl, it is 50000000, about 48MB.

Attached my large "insert" sentence.
1.txt

So is there any other parameters about this issue?

Thanks,
Michael

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

Successfully merging a pull request may close this issue.

1 participant