Tools and other software [How To] [User Exp] Update MySQL (2 Viewers)

azzuro

Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    • Thread starter
    • Moderator
    • #51
    How can i look, if my DB have error ?
    command line / log ?
    because i think i don't have error ...

    i have switched to InnoDB from Workbench directly. after copy-paste DB (5.1 to 5.6) as described in #1

    For information : on Workstation system
    Updated to 1.3 (final test build), select "Use existing DB" in deploy tool, MP ask correctly for connect to DB / and connection is an sucess. :)
    Radio (already scanned) working / No can't test TV on the System ...
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    How can i look, if my DB have error ?
    command line / log ?
    because i think i don't have error ...

    I don't know but i use the command line to repair db and all was ok but before latest commit, i have the same error as @megahorst : 'Error Code: 1071. Specified key was too long; max key length is 767 bytes'
     

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany
    @azzuro:
    You should try this:
    SHOW TABLE STATUS FROM mptvdb;

    The output will show you the details off your tables.

    @Sebastiii:
    I made an error yesterday evening. My mptvdb schema was not propperly dropped. It was still there and the new MySQL 5.6 installation which came with the installation of your build took these files. This leaded to the errors.
    This morning I have installed your build from again and know everything is ok.
    Is there a need to test the build from today?
     

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany
    Ok!

    The missing tvmovieprogram table is not part of the original tv-server installation. It is created by the tv-server plugin "TV Movie EPG import++"
    So this issue is not an error too.
     

    SkinsFan0521

    Portal Pro
    October 19, 2011
    54
    1
    Home Country
    United States of America United States of America
    i have switch to InnoDB in Workbench directly !
    For that
    • Open Workbench
    • Left Menu (select Edit tables)
    • Open mptvdb scheme
    • Right click on one table
    • select "Alter Table"
    • Switch Myisiam -> InnoDB
    • Select "Apply" & Close Tables
    • Make this for all tables (one by one)
    Row_format : Dynamic (not changed)
    Character_set : UTF8 default (not changed)
    No error message in Workbench

    For test : i have scanned DVB-S (2500 channel), i think configuration.exe freeze less compared to 5.1+Mysiam (my HTPC is really slow)
    but many channel have 10000 as channel Number.

    I know this was from a couple weeks ago, but I'm wondering how you got this to change through Workbench? When I do it, it says "No Changes Detected" and then when I open the table back up in Alter to verify, it still shows as 'MyISAM'

    I'd prefer to do it through Workbench if possible, so I'm just wondering what I'm missing.

    Thanks!
     

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Hi,

    here is my solution for change mysql 5.1 to 5.6 and change the mptvdb database to innodb.

    FOR TEST ONLY!

    1. extract the mp_change from mysql 5.1 to 5.6.zip
    2. run the backup_mptvdb.bat
    3. uninstall mysql 5.1
    4. install mysql-5.6.10-win32.msi
    5. open the c:\mptvdb.sql with notepade and replace MyISAM texts to InnoDB
      save and exit
    6. run the restore_mptvdb.bat

    The mysqld will start default paramaterest, so it needs some tunning!
     

    Attachments

    • mp_change from mysql 5.1 to 5.6.zip
      722 bytes
    Last edited:

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany
    In fact, in this branch i didn't do migration of DB in InnoDB, i only backup current 5.1 and restore to 5.6, so the DB stay in MyISAM. But on fresh installation (read no db existing) the new TV DB is configured as InnoDB.

    @Sebastiii: I'm using your branch since several weeks now. It is working without any problems. TV-server plugins (TvWisLlist, TV Movie epg import ++) are also working fine with the new database. With the InnoDb as backend I have not seen corrupt tables anymore.

    Is it possible to have the new db within the 1.40 release?
     

    Users who are viewing this thread

    Top Bottom