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