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-20, 18:27   #21 (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 samposoft View Post
I currently use TVEngine on MySQL 5.0.26 and it's works.
Could you by any change maybe toss that changed installable version of the TVServer to your Server so I can try it out and maybe even help you out...
If you are not able to do this then you don't have to go to any big trouble to do this then I will just wait until it is in SVN realease....

Thanks!

THDBASED
THDBASED is offline   Reply With Quote
Old 2007-01-20, 19:10   #22 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 28
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

The biggest problem is actually:

CREATE INDEX _dta_index_TuningDetail_7_709577566__K2_1_3_4_5_6_ 7_8_9_10_11_12_13_14_15_16_17_18_19_20_21_22_23_24 _25_26 ON TuningDetail
(
idChannel ASC
)
INCLUDE ( idTuning,
name,
provider,
channelType,
channelNumber,
frequency,
countryId,
isRadio,
isTv,
networkId,
transportId,
serviceId,
pmtPid,
freeToAir,
modulation,
polarisation,
symbolrate,
diseqc,
switchingFrequency,
bandwidth,
majorChannel,
minorChannel,
pcrPid,
videoSource,
tuningSource)

And MySQL doesn't support INCLUDE among others.
I've tried to make an universal setupdatabaseform which converts the database.sql into MySQL friendly SQL.
But if people are satisfied with changing the database.sql themselves you can just make the changes samposoft proposes.
dunkstar is offline   Reply With Quote
Old 2007-01-20, 19:17   #23 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 28
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

One of the solutions I have done is this:

sql = sql.Replace("---", "#"); //Added by Dunkstar, MySQL dont use --- as comments
sql = sql.Replace("use master", " "); //Added by Dunkstar, there is no master database in MySQL
sql = sql.Replace("IF EXISTS (SELECT name FROM sysdatabases WHERE name = N'TvLibrary')", " "); //Added by Dunkstar, dont work in MySQL
sql = sql.Replace("IDENTITY(1,1) NOT NULL", "NOT NULL AUTO_INCREMENT"); //Added by Dunkstar, MySQL uses Auto_increment
sql = sql.Replace("IDENTITY(1,1)NOT NULL", "NOT NULL AUTO_INCREMENT"); //Added by Dunkstar, MySQL uses Auto_increment
sql = sql.Replace(" Version(", " Version ("); //Added by Dunkstar
sql = sql.Replace(" version(", " version ("); //Added by Dunkstar
sql = sql.Replace(" WITH CHECK ADD ", "ADD"); //Added by Dunkstar

Dont know what your thoughts are on this.
dunkstar is offline   Reply With Quote
Old 2007-01-20, 19:24   #24 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 28
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

I can see that samposoft have just dropped "CREATE INDEX", "CREATE STATISTICS" and it looks like also the foreign keys...
dunkstar is offline   Reply With Quote
Old 2007-01-22, 12:14   #25 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 28
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

I can see that somebody else is implementing MySQL option int the newest revisions, so I'll just stop

I look forward seeing how it works...
dunkstar is offline   Reply With Quote
Old 2007-01-22, 14:08   #26 (permalink)
Portal Member
 
THDBASED's Avatar
 
Join Date: Jan 2006
Posts: 468
Thanks: 72
Thanked 2 Times in 2 Posts

Country:

My System

Default

Great! Is it already available in latest SVN? Or will this be in there overnight?
THDBASED is offline   Reply With Quote
Old 2007-01-22, 21:46   #27 (permalink)
Portal Member
 
Noelix's Avatar
 
Join Date: Feb 2006
Location: Salt Lake City, UT
Age: 26
Posts: 392
Thanks: 11
Thanked 1 Time in 1 Post

Country:

My System

Send a message via MSN to Noelix
Default

I'm too inexperienced at SQL server stuff, is there anybody who would be willing to put together a "how-to" for installing MySQL and getting it working with the tv server for us users?
__________________
Noelix is offline   Reply With Quote
Old 2007-01-22, 22:31   #28 (permalink)
Portal Member
 
THDBASED's Avatar
 
Join Date: Jan 2006
Posts: 468
Thanks: 72
Thanked 2 Times in 2 Posts

Country:

My System

Default

Once the code is in the SVN it shoudn't be that hard to implement...SQL is SQL, the same for Mysql as for MSSQL...
THDBASED is offline   Reply With Quote
Old 2007-01-22, 22:32   #29 (permalink)
Portal Member
 
Join Date: Jul 2005
Location: Copenhagen
Age: 35
Posts: 99
Thanks: 5
Thanked 0 Times in 0 Posts

Country:

My System

Send a message via MSN to Flerbizky
Default

Quote:
Originally Posted by Noelix View Post
I'm too inexperienced at SQL server stuff, is there anybody who would be willing to put together a "how-to" for installing MySQL and getting it working with the tv server for us users?
Don't hold your breath for it, but I'll be transforming our setup from HTPC w. Cathode tube to TV Server based with 1920x1080 LCD over the next couple of weeks - and I'll definitely switch to MySQL as it is far superior to MSSQL in more ways than I can shake a stick at..

So I might as well put together a HowTo while doing so..

Cheers,
Steff
__________________
Well, a bloke needs a hobby, I always say. And hey, in this big
old world there's always plenty of dung out there to be collected:
after all, I hear the Ducati factory is working longer shifts now.
Flerbizky is offline   Reply With Quote
Old 2007-01-23, 07:17   #30 (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:
I'll definitely switch to MySQL as it is far superior to MSSQL in more ways than I can shake a stick at..
I disagree, in my tests mysql is way slower then MSSQL
frodo 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 11:40.


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