forked from PyMySQL/PyMySQL
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
Does not seem to handle blobs larger than 8M. #13
Comments
Thanks. |
Umm, My modification does not work well.... |
I'm not sure I understand your question, could you please elaborate? |
I think COM_QUERY can send long query string, |
Closes as a specification limitation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've got a
files
table with aMEDIUMBLOB
column, which is set up to hold up to 12M large blobs. Here is a test program which consistently fails for meRunning this program results in the following:
I've spent a lot of time trying to configure my DB thinking this is a MySQL setup problem, and I ended up with the following
my.cnf
:This should be sufficient.
However, the MySQL documentation states that both server and client have to support large packet sizes (see documentation link). Above configuration is server side only, with cymysql being the client's driver.
Looking at the PyMySQL implementation of the connection setup (source code) I see a default parameter
max_allowed_packet=16*1024*1024
which is missing from the CyMySQL implementation (source code). So I switched toimport pymysql
and everything works as expected!I think that this issue needs to be investigated, and probably fixed by CyMySQL.
The text was updated successfully, but these errors were encountered: