The upgrading process is described in the following link:
http://manual.mantisbt.org/manual.installation.upgrading.php