How can Flask / SQLAlchemy be configured to create a new database connection if one is not present?
I have an infrequently visited Python / Flask server which uses S
When I encountered this error I was storing a LONGBLOB / LargeBinary image ~1MB in size. I had to adjust the max_allowed_packet config setting in MySQL.
LONGBLOB
LargeBinary
max_allowed_packet
I used mysqld --max-allowed-packet=16M
mysqld --max-allowed-packet=16M