Still having database problems - Getting bad - Can't add attachments

I’m still getting these errors when trying to attach large files (around
4MB) to tickets:

[Mon May 20 13:52:12 2013] [warning]: RT::Handle=HASH(0xb62468c8)
couldn’t execute the query ‘INSERT INTO Attachments (Subject,
ContentType, Filename, Headers, MessageId, Creator, Parent, Created,
ContentEncoding, Content, TransactionId) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?)’ at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm
line 600.

I decided to switch back to MySQL from MariaDB and now when I try to do
file attachments, I sometimes get a white screen or the file “uploads”
but it won’t attach. I’m not seeing the following errors in my logs:

[Mon May 20 13:44:56 2013] [warning]: DBD::mysql::st execute failed:
MySQL server has gone away at
/usr/local/share/perl/5.14.2/Apache/Session/Store/DBI.pm line 67.
(/usr/local/share/perl/5.14.2/Apache/Session/Store/DBI.pm:67)
[Mon May 20 13:44:56 2013] [warning]: (in cleanup) DBD::mysql::st
execute failed: MySQL server has gone away at
/usr/local/share/perl/5.14.2/Apache/Session/Store/DBI.pm line 67.

[Mon May 20 13:44:56 2013] [warning]: DBD::mysql::st execute failed:
MySQL server has gone away at
/usr/local/share/perl/5.14.2/Apache/Session/Lock/MySQL.pm line 71.
(/usr/local/share/perl/5.14.2/Apache/Session/Lock/MySQL.pm:71)
[Mon May 20 13:44:56 2013] [warning]: (in cleanup) DBD::mysql::st
execute failed: MySQL server has gone away at
/usr/local/share/perl/5.14.2/Apache/Session/Lock/MySQL.pm line 71.

What is happening???

Stephen Cena
QVII
MIS/IT Dept
850 Hudson Ave.
Rochester, NY. 14620
585-544-0450 x300
sjc@qvii.com
“Thank you for helping us help you help us all.”
–For email related issues, please contact postmaster@qvii.com

I’m still getting these errors when trying to attach large files (around
4MB) to tickets:

Did you look at the max_attachment_size parameter to mysql?

I suspect you’re running into that.