Tools and other software [How To] [User Exp] Update MySQL (1 Viewer)

azzuro

Test Group
  • Team MediaPortal
  • May 10, 2007
    9,601
    5,224
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #1
    Hi,
    After long search, we found 2 methods for update or install MySQL.
    This is User Expérience ! ;)

    ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
    1st : Copy-paste (for existing database)
    • Stop Tvservice + Mysqlservice
    • Unintall MySQL 5.1
    • install Mysql 5.6
    set root "root" + password "MediaPortal"
    set name of services : "MySQL"
    Set Mysql as Standard Services, if you have error on setup, verify in Services.msc MySQL services is Standard services not ""WINDOWS-NT authority ..." (read
    • copy-paste "MPtvDB" folder in Data folder
    • start Mysql
    • Start TVserver, if connection failed go to Workbench
    • (verify with workbench, right user) as Wiki replace "1::" by "%"
    • execute mysql_upgrade.exe
    • Start Tv serveur config, and try to connect to DB
    • If DB connect Succes, update to 1.3 R

    ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
    2nd: Clean install (backup files is optionnal)
    (by @megahorst)
    • do a backup with huhas Backup plugin
      worked without any problems
    • remove 1.30 beta + TV-server completely
      worked without any problems
    • uninstall MySQL 5.1
      worked without any problems
    • install MySQL 5.6
      Here I had some trouble.
      I did not have a running MySQL service at first. I had to reinstall MySQL.
      Than the service was there but not up and running. The MySQL installer inserted a "WINDOWS-NT authority ..." username. I have changed this to local system user. Than the service started.
      No trouble with the MySQL-connection at this point.
      At this point it does not make sense to go ahead without running MySQL-service or not working connection.
      Perhaps a more experienced MySQL user can give some hints here how to avoid errors.
    • have a look how to switch from MyISAM to InnoDBnothing to do here
    • install 1.30RC and choose the option "I do already have a database-server"
      Here I had some trouble again.
      During installation I was asked for the database connection attributes. The installer did not accept 127.0.0.1 or localhost as address of the server that hosts the database. It always said "give propper IP or hostname"
      At this point I had to go back to MySQL workbench and had to add a user/hostname combination "root / <full hostname of htpc>" and to give DBA rights to this user.
      After this the MePo installer created all MePo tables in the MySQL 5.6 DB.
    • restore my backup
      I had a little problem here also. After the restore all TV-channels now have channel number 1000 (or 10000?)
      @huha: Are you aware of this?
    • hope everything works as before
      I did a quick check last evening. So far no shop stoppers until now. I will do some regression tests the next evenings and check the logs for errors.
    ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
    For update to InnoDB,
    link to post in thread :


    Thanks to @Paranoid Delusion for helping ...
     
    Last edited:

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,601
    5,224
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #3
    No, i don't understand, install MySQL 5.5 is easy but after, i don't understand how switch 5.1 to 5.5 ....
    I know, MySQL not update itself 5.1 > 5.5, and need use Command line for this

    Link on Mysql forum
    https://dev.mysql.com/doc/refman/5.5/en/upgrading-from-previous-series.html


    i must test on my Workstation, because, i have lost 5 Hours about it on HTPC last night ... :mad:
     

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Germany Germany
    Country flag
    From time to time I have the problem that my htpc hangs and I have to switch it off. In these cases the MySQL DB often is corrupted. I have understood, that the InnoDB backend does not does not get corrupted in these cases.

    I have planned this:
    • do a backup with huhas Backup plugin
    • remove 1.30 beta completely
    • install MySQL 5.6
    • have a look how to switch from MyISAM to InnoDB
    • install 1.30RC and choose the option "I do already have a database-server"
    • hope that MePo installer creates the MePo db with InnoDB under 5.6 environment
    • restore my backup
    • hope everything works as before
    Do you think that this will work?
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    United Kingdom United Kingdom
    Hi Guys

    I switched to 5.5 (current release, 5.6 is still work in progress) weeks ago, gave up on the old db, just could not get it to import cleanly, so started off with a clean database from scratch.

    Manually had to setup server and connection using Workbench, this can be confusing at first, so take your time and everything should work, InnodDB is the default, so you do not have to change anything there.
     

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Germany Germany
    Country flag
    Hi Guys

    I switched to 5.5 (current release, 5.6 is still work in progress) weeks ago, gave up on the old db, just could not get it to import cleanly, so started off with a clean database from scratch.

    Manually had to setup server and connection using Workbench, this can be confusing at first, so take your time and everything should work, InnodDB is the default, so you do not have to change anything there.
    @Paranoid Delusion: What do you mean with "just could not get it to import cleanly" ?

    Have you tried the MySQL update script or have you used huhas backupPlugin?
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    United Kingdom United Kingdom
    I used script, tables that should have had information in were blank :(

    ps. I spent 5 days trying to get this to work before I gave up, but do not let that stop you from trying,
     
    Last edited:

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,601
    5,224
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #9
    From time to time I have the problem that my htpc hangs and I have to switch it off. In these cases the MySQL DB often is corrupted. I have understood, that the InnoDB backend does not does not get corrupted in these cases.

    I have planned this:
    • do a backup with huhas Backup plugin
    • remove 1.30 beta completely
    • install MySQL 5.6
    • have a look how to switch from MyISAM to InnoDB
    • install 1.30RC and choose the option "I do already have a database-server"
    • hope that MePo installer creates the MePo db with InnoDB under 5.6 environment
    • restore my backup
    • hope everything works as before
    Do you think that this will work?
    I have tested and no work ! MP don't create "MpTVdb" database. when you set "I do already have a database-server"

    @Paranoid Delusion : MySQL 5.6 is out ;) (release 05/02/2013), you must restart update lol, as 5.6 is not compatible with 5.5 ... ( ils sont cons !!!)
    have you an solution, or an Tuto, MySQL is planned for be updated in MP deployTool ? because MP is based on MySQL 5.1.39 (2009-09-04) ( little old )
     
    Last edited:

    megahorst

    Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Germany Germany
    Country flag
    From time to time I have the problem that my htpc hangs and I have to switch it off. In these cases the MySQL DB often is corrupted. I have understood, that the InnoDB backend does not does not get corrupted in these cases.

    I have planned this:
    • ...
    Do you think that this will work?
    I have tested and no work ! MP don't create "MpTVdb" database. when you set "I do already have a database-server"

    @Paranoid Delusion : MySQL 5.6 is out ;) (release 05/02/2013), you must restart update lol, as 5.6 is not compatible with 5.5 ... ( ils sont cons !!!)
    have you an solution, or an Tuto, MySQL is planned for be updated in MP deployTool ? because MP is based on MySQL 5.1.39 (2009-09-04) ( little old )
    I think the creation of the db should work. I had such a setup in the past with a linux server that hosted the db. And I did the installation in this way.
    Perhaps the problem with the connection that Paranoid Delusion mentioned? To create the db the installer has to connect to the db backend.
    Do you have any errors in a installation logfile?
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    F MediaPortal 1.16 server crashing due to user error? General Support 5
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    HTPCSourcer [fixed] [MP2-815] User not logged in when resuming from standby MediaPortal 2 17
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    BigGranu [Help Me!] User Info Popup/Dialog or ??? MediaPortal 2 1
    V Some Issues with MP2 (ex MCE User) General 1
    R New MP2 user issues: software encoders for analog & plug-in/extension installation General 2
    Stephen O'Kane MP1.20 - Stuttering Recordings (EXP-Upgrage_555_MM_Owlsroost) Watch / Listen Media 1
    M.Hulot After Update 1.25 internal blu-ray-player doesn't work General Support 8
    M.Hulot Interner Blu-ray-Player spielt nach Update auf 1.25 keine Discs mehr ab Allgemeines Supportforum 2
    E retaining Watch Status when updating? Newcomers Forum 1
    J Update .NET framework? Improvement Suggestions 9
    G Update von MediaPortal Installationsprobleme? 0
    morpheus_xx [Evaluate] Update to VS 2019? MediaPortal 2 4
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    B MPEM update list never completes. General Support 0
    JJDoherty Updated DTT frequencies for Ireland... Submit: EPG-Grabbers and tuningdetails 1
    Dark Eyes Updated to Windows 10, now TVServer won't work Installation, configuration support 1
    R [solved] Files moved to new location - Easy way to update database? My TVSeries 7
    M.Hulot Moving Pictures lässt sich nach Windows-Update nicht mehr öffnen Plugins & Erweiterungen 1
    R Files moved to different location - Easy way to update database? Moving Pictures 2
    k12158 [solved] Kein direkter Wechsel von TV-Kanal zu TV-Kanal mehr nach Update? Allgemeines Support- und Diskussionsforum 16
    ajs Mediaportal update to .Net 4.6.2+ MediaPortal 1 13
    Mr6686 [solved] Titan skin broken since update to 1.23 Installation, configuration support 6
    B TV-Server Auto-Update mptvdb after x hours General Support 0
    Similar threads

























    Top Bottom