Overview

Currently MySQL 5.1 gets shipped with the MediaPortal installation if you choose MySQL as database server. Due to performance and stability improvements we updated to MySQL 5.6.

Description of Change

With the switch to MySQL 5.6 we also change to InnoDB as database engine (on new install and/or database ONLY!). It is more reliable than MyISAM which was the cause of many TV database crashes. For the user not much has changed during the installation process.

If you choose One Click Installation, both the client and server software is installed on your system and you get forwarded to the installation window where MySQL 5.6 is downloaded and installed automatically.


If you select Advanced Installation you are able to choose the path where to install MySQL 5.6 before you get forwarded to the installation window.


Note: If you have installed an earlier version of MediaPortal which came with MySQL 5.1 and update to MediaPortal 1.6 or higher then MySQL 5.6 _will not be installed but instead _MySQL 5.1 will be kept. This is because users might still want use MySQL 5.1 for other purposes than just MediaPortal.

If you make a clean installation of MediaPortal_, MySQL 5.6_ and InnoDB as default database engine gets installed instead of MySQL 5.1.

Troubleshooting (fixed if default root MySQL password was the original one)

If you get a MySQL error (set password error) during installation of MediaPortal which ends up closing the installation process because it fails to install the application, make sure you have MySQL 5.6 removed completely. 


It is NOT enough to remove MySQL from Add/Remove Programs in the Windows Control Panel. Steps for a complete uninstall are:

  1. Uninstall MySQL server from Add/Remove Programs
  2. Delete the

    C:\Program Files\MySQL

    folder or

    C:\Program Files (x86)\MySQL

    folder (if you are on Windows x64)

  3. Delete the

    C:\ProgramData\MySQL

    folder

After that the installation process should work without any issues.

Missing TV/Radio channels after upgrade

It definitely should not happen but it could be that you will see an empty channel list. No need to panic! Your database settings are not deleted. You can easily copy them from MySQL 5.1 to MySQL 5.6.

Steps to do:

  1. Stop MySQL 5.6 (e.g. kill the process via TaskManager)
  2. Copy the

    mptvdb

    folder from 

    C:\ProgramData\MySQL\MySQL Server 5.1\data\

    to 

    C:\ProgramData\MySQL\MySQL Server 5.6\data\

    # Restart the MySQL service (e.g. by rebooting)

    Useful information

    If you wanna know if your database engine for MySQL 5.6 is using InnoDB you can do the following: # Open a command prompt and then navigate to your MySQL bin folder (type:

    cd C:\Program Files\MySQL\MySQL Server 5.6\bin

    )

  3. Then type:

    mysql -u root -p
  4. You will get asked for a password, by default it is: MediaPortal (case sensitive)
  5. Once you have done that type:

    SHOW ENGINES;
  6. InnoDB should be set as default engine


Additional Information and References

Issue #:

MP1-2803

Issue Component:

TVServer

Type of Change:

Rework

Related Wiki page(s):

Getting Started > Installing MediaPortal > Installer (Deploy Tool) > Advanced Installation

Author:

Sebastiii

Date added:

Mon, 05 Aug 2013