Open topic with navigation

# Configure Media Server

To configure Media Server to use an external database

1. Stop Media Server, if it is running.
2. Open the Media Server configuration file (`mediaserver.cfg`) with a text editor.

3. Find the `[Database]` section of the configuration file. Create this section if it does not exist.

4. Set the following parameters:

   `DatabaseType` | The type of database to use, either `mysql` or `postgres`.
   `ODBCConnectionString` | The ODBC Connection string to use to connect to the database. For example:
       DSN=MyDatabase;
   `Driver = {PostgreSQL UNICODE}; Server = IPAddress; Port = port; Database = myDatabase; Uid = myUsername; Pwd = myPassword;` `Driver = {MySQL ODBC 5.x UNICODE Driver}; Server = IPAddress; Database = myDatabase; User = myUsername; Password = myPassword; Option = 3;`

   For example:

       [Database]
       DatabaseType=postgres
       ODBCConnectionString=DSN=MyDatabase;

5. If you are running Media Server on Linux, set the following parameter:

   `ODBCDriverManager` | The unixODBC Driver Manager shared object file.

   For example:

       ODBCDriverManager=libodbc.so

6. Save and close the configuration file.
7. Start Media Server.

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm