Add pool_recycle and pool_size to avoid stale mysql connections.