MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2007-01-15, 10:06   #11 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 37
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

sounds good!
please upload the modified/new sources here:
http://sourceforge.net/tracker/?grou...97&atid=647927

or mail them to e.beckers@gmail.com
frodo is offline   Reply With Quote
Old 2007-01-15, 12:33   #12 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 28
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

I have the code at home, so i'll send it when I get home from work
dunkstar is offline   Reply With Quote
Old 2007-01-15, 20:45   #13 (permalink)
Portal Member
 
THDBASED's Avatar
 
Join Date: Jan 2006
Posts: 468
Thanks: 72
Thanked 2 Times in 2 Posts

Country:

My System

Default

Quote:
Originally Posted by dunkstar View Post
I've already cahnged the SetupDatabaseForm so you can choose MySQL.
I have made it so the .net script converts the database.sql to a MySQL compatilble sql file, so when they update the MSSQL file, the script just converts it.
BUT they use some tables that MySQL dont support, and I cannot see where they are used.
Maybe we can just leave them out.

Anybody interested in seeing my work?
I would love to test this out, I will install this on my mini Epia Server...
THDBASED is offline   Reply With Quote
Old 2007-01-15, 22:54   #14 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 28
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Ok I can see some new things have been added in the new revision.
I'll just update my work and send you the code tomorrow.
dunkstar is offline   Reply With Quote
Old 2007-01-18, 21:41   #15 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 28
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

OK there are several issues with the version 20 of the database.sql
Too long table names is the biggest issue.

For now i'll stop my coding until we find a universal solution.

Sorry...I know some of you hoped I could make an universal setup for MySQL...
dunkstar is offline   Reply With Quote
Old 2007-01-19, 21:57   #16 (permalink)
Portal Member
 
THDBASED's Avatar
 
Join Date: Jan 2006
Posts: 468
Thanks: 72
Thanked 2 Times in 2 Posts

Country:

My System

Default

Oh dammit too bad, I really thought this would be the ONE, Again, maybe one of the devs (Frodo ) could help out, maybe this can be solved very easy with the help of one of the devs...
THDBASED is offline   Reply With Quote
Old 2007-01-20, 10:46   #17 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 37
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

Quote:
Too long table names is the biggest issue.
WTF ???
is mysql that bad that it dont even support a table name of 16 characters
(the table names 'CanceledSchedule' is the longest atm in the tvserver)
frodo is offline   Reply With Quote
Old 2007-01-20, 12:40   #18 (permalink)
Portal Member
 
THDBASED's Avatar
 
Join Date: Jan 2006
Posts: 468
Thanks: 72
Thanked 2 Times in 2 Posts

Country:

My System

Default

I also thought that was kind of strange, I am going to do some searching to see if this is true...

Well take a look at this page:

http://dev.mysql.com/doc/refman/5.0/en/identifiers.html

I thought it was 64 and I was right, so the "too long table names" error isn't correct I guess...

Last edited by THDBASED; 2007-01-20 at 12:46.
THDBASED is offline   Reply With Quote
Old 2007-01-20, 13:46   #19 (permalink)
Portal Member
 
samposoft's Avatar
 
Join Date: Jan 2007
Age: 32
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Send a message via Skype™ to samposoft
Smile TVEngine on MySQL

I currently use TVEngine on MySQL 5.0.26 and it's works.

you can download my sql script to create db from
http://www.samposoft.it/database.zip

I have use MyIsam table for best performance.

I have made some modification to the TVLibraty project to add the latest reference to
Gentle-1.2.9 DLL because in SVN are 2 missing dll
Gentle.Provider.MySQL.dll
MySql.Data.dll

I have removed in all project reference to
Gentle.Provider.SQLServer.dll
because Gentle.Framework load dynmically these dll based on Gentle.config configuration.


http://www.samposoft.it/Gentle129Dll.zip

The only bug that i found in source code is in

TVLibrary\TVDatabase\Channel.cs
TVLibrary\TVDatabase\TvBusinessLayer\BusinessLayer .cs

that format bad datetime string in query "yyyyMMdd HH:mm:ss"
I've changed to "yyyy-MM-dd HH:mm:ss"
I think that SQLserver support this format (is more flexible).

I have also commented code in

TVLibrary\SetupTv\Startup.cs

Code:
      //SetupDatabaseForm dlg = new SetupDatabaseForm();
      //if (!dlg.TestConnection())
      //{
      //  dlg.ShowDialog();
      //}
      //if (dlg.ShouldDoUpgrade())
      //{
      //  dlg.CreateDatabase();
      //}
because the SetupDatabaseForm works only for SQLServer and use System.Data.SqlClient.

The next step is to create a new SetupDatabaseForm for support MySQL or SQLServer.
I think that is very simple...

Last edited by samposoft; 2007-01-20 at 13:50.
samposoft is offline   Reply With Quote
Old 2007-01-20, 14:05   #20 (permalink)
Portal Member
 
THDBASED's Avatar
 
Join Date: Jan 2006
Posts: 468
Thanks: 72
Thanked 2 Times in 2 Posts

Country:

My System

Default

Sweet I will try this, maybe you should send this code to Frodo, he was going to put this into the SVN if it worked....or maybe he can just download it from here

Thanks a lot for you work!

THDBASED
THDBASED is offline   Reply With Quote
Reply

Bookmarks

Tags
mysql, option

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Codec isntall option in SVN Glith Improvement Suggestions 2 2006-10-24 23:12
REQ: Auto-View option for music (other) folders ala XBMC HappyTalk Improvement Suggestions 1 2006-08-29 18:43
MyPrograms view option (really small request) Waltz Improvement Suggestions 0 2006-08-09 01:03
Internal SVN update option? nst6563 Improvement Suggestions 13 2006-05-29 10:38
WDM Drivers Internal Sound Source Option! dbx Improvement Suggestions 1 2005-07-06 19:37


All times are GMT +1. The time now is 10:56.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden