Issue 2417 publishing upgrade task fails mysql

This is for issue #2417 - I failed to put that info in the commit message