I\'m using red5 1.0.0rc1 to create an online game. I\'m connecting to a MySQL database using a jdbc mysql connector v5.1.12
it seems that after several hours of idle
You can check here for a similar issue.
Append '?autoReconnect=true' to the end of your database's JDBC URL (without the quotes) worked for me.