# Upgrade Media Server

If you have previously installed Media Server and need to upgrade to the latest version, follow these steps.

To upgrade to the latest version of Media Server

1. Make a backup of the following files from your current installation:

   - The Media Server configuration file, `mediaserver.cfg`.
   - Any session configuration files, from the `configurations` folder.
   - Any scene analysis training data, from the scene analysis training directory.

   - If you are using an internal database, the Media Server database which contains your training data. By default, the database is named `mediaserver.db`.

2. Perform a clean installation of the latest version of Media Server.

3. If a patch has been released for the latest version of Media Server, download and install the latest patch. Patches are cumulative, so you only need to download the latest.

   1. Download the latest patch from Micro Focus.
   2. Unzip the files into the Media Server installation directory, overwriting any files that already exist.
4. Copy your configuration files into the new installation, overwriting the configuration files that were installed.

5. Restore or upgrade the database:

   - If you are using an internal database, copy the database file into the new installation.
   - If you are using an external database, you might need to run a script to upgrade the database schema. For more information, see Upgrade the Database Schema.

_FT_HTML5_bannerTitle.htm