Memory availability error on upgrade

There are some tips here on tuning MySQL to reduce the memory use. I have not tried them myself.