I have been updating from MW 1.19.4 to 1.33.1. This is in consequence of a rather belated upgrade from Ubuntu 14 to 16.
Updatng to a new version of Mediawiki is not all that obvious, especially if you have several wikis. It is generally safer to make a complete copy of all the files and DB tables than to update in place. The sequence below ensures that you do not alter any currently working files.
// mw.v 1.24.x or less require_once "$IP/skins/Vector/Vector.php"; // mw.v 1.25.x or above wfLoadSkin( 'Vector' );
You now have two complete copies of your wikis. When you are confident that the new versions are correct you can drop the old DB(s) and delete the old file trees.