Sign-up our Newsletter  Register on our LinkedIn  Follow us on Twitter  Check out our Facebook  Follow us on Google+
Follow

I can't upload files bigger than 1MByte.

MySql default configuration prevents from uploading files bigger than 1MByte.

In this case you may encounter errors such as:
java.sql.SQLNonTransientConnectionException: Could not send query: Connection reset by peer: socket write error or similar.


To change this, edit the file my.ini and add the configuration parameter max_allowed_packet=100M in the [mysqld] section.

 

e.g. When using MariaDB, the file is in C:\Program Files\MariaDB 10.0\data

You then need to restart the DB engine

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.