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,577
    8,224
    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,577
    8,224
    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,577
    8,224
    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 removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem - unable to connect to any of the specified MySQL hosts. And Hostname is still in red. I don't understand - this is a dedicated TV computer. Unless an update did this I don't know why there's a problem in the...
    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem -...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    2
    Views
    455
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP and set logs and rebooted and ran TVServer. Didn't do anything in regard to S Loopback adapter. I've been using NextPvr since the problem became insurmountable. Only reason it's not a good long term...
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    24
    Views
    2K
    @doskabouter That fixed it, thanks!
    @doskabouter That fixed it, thanks!
    I just upgraded to 1.32 and now, when I start TV-Service Config, I get this error: [2024-01-31 09:33:13,138] [Log ] [SetupTv...
    Replies
    2
    Views
    581
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live stream from server to MP. If anyone has a similar problem - disable all old plugins and then enable one after another :-)
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live...
    After using MP for more than 10 years with regularly updates - this is the first time that after an update MP is not working...
    Replies
    3
    Views
    1K
    • Sticky
    MP1 MP2 [News] MediaPortal 2 - 2.5 Release DE
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    We are proud to present MediaPortal 2.5 MediaPortal 2.5 is a full-blown media center software that addresses most common user...
    Replies
    70
    Views
    5K
    Top Bottom