Possible to restore a deleted table from mptvdb? (1 Viewer)

Holzi

Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    Hello!
    I 'accidently' deleted a table from mptvdb (MySQL). Is it possible to restore it (without content) or does there only help a complete reinstall of MediaPortal and/or MySQL?

    Thanks! :)
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Ooops! :p

    Yeah, it is possible to restore without content. If you tell me the table name, I can supply the SQL to run to recreate it.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Here's the SQL:

    CREATE TABLE `program` (
    `idProgram` int(11) NOT NULL AUTO_INCREMENT,
    `idChannel` int(11) NOT NULL,
    `startTime` datetime NOT NULL,
    `endTime` datetime NOT NULL,
    `title` varchar(2000) NOT NULL,
    `description` text NOT NULL,
    `seriesNum` varchar(200) NOT NULL,
    `episodeNum` varchar(200) NOT NULL,
    `genre` varchar(200) NOT NULL,
    `originalAirDate` datetime NOT NULL,
    `classification` varchar(200) NOT NULL,
    `starRating` int(11) NOT NULL,
    `parentalRating` int(11) NOT NULL,
    `episodeName` text NOT NULL,
    `episodePart` text NOT NULL,
    `state` int(11) NOT NULL DEFAULT '0',
    PRIMARY KEY (`idProgram`),
    UNIQUE KEY `idProgramBeginEnd` (`idChannel`,`startTime`,`endTime`),
    KEY `IDX_Program_State` (`state`)
    ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC$$
     

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #5
    Here's the SQL:

    Tried that with the workbench and command line but both times there seems to be a syntax error. I am on MySQL 5.6. Thanks!

    Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DYNAMIC$$' at line 21

    1.jpg
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Sorry for the delayed response - cooking.

    Try removing the "row_format..." part. It isn't important.
     

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #7
    Sorry for the delayed response

    No problem. :)
    The program.ibd gets created (even with the row_format part) but it is missing the .frm file. And I cant see the table in the MySQL workbench. I think I will give up for today. ;)
     

    Users who are viewing this thread

    Similar threads

    I have added a scheduled task to MariaDB to delete all entries with the same start and end date
    I have added a scheduled task to MariaDB to delete all entries with the same start and end date
    Hello, I'm encountering an issue after importing EPG data into the TV-Server/Database. The Problem: After importing an XMLTV...
    Replies
    7
    Views
    2K
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team will create a Jira ticket, and for each ticket, you’ll make the changes and submit a pull request. This will be transparent and straightforward.
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team...
    I'm very glad to see that mediaportal 1 is on github, where ordinary devs with github accounts can make contributions. Please can...
    Replies
    7
    Views
    1K
    Your timing is great.....I just got home myself!! :) A little confusion for me here! There are 2 x files in the folder......one is x86, and other is x64 Wondering if I should be selecting the x64.....since I'm installing the 64bit version? UPDATE Transferred both files to the destination folder, and labelled appropriately. This way...
    Your timing is great.....I just got home myself!! :) A little confusion for me here! There are 2 x files in the folder......one is...
    Am a long time MP1 user, and have successfully been running the x64 version since it first appeared. Recently, problem of black...
    Replies
    10
    Views
    2K
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting power settings for "Intel Graphics". I set it to Maximum Performance. I tried many other things so it could be a combination of them, but this was the last thing I did and I haven't had the problem return...
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    5
    Views
    2K
    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve this would be to use an auto-resume feature in your external player itself. (MPC-HC can do that, I don't know about VLC)
    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve...
    Hello Folks, Is it possible to enable MP to resume in an External Player, where it left off ? I guess the question also is, can...
    Replies
    2
    Views
    1K
    Top Bottom