• May 31, 2024, 09:32:53 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Please help! MySQL and KODI  (Read 3726 times)

PC_Arcade

  • Level 1 Member
  • *
  • Posts: 3
Please help! MySQL and KODI
« on: October 10, 2015, 10:57:27 AM »

I'm attempting to use MySQL as the database for Kodi on my 320L - I've successfully ( I believe) installed MySQL using FFP but neither MyPHPAdmin nor xbmc seem to be able to see it.

I've set up kodi as a user on the database, but I don't think it's allowing access from anywhere other that 127.0.0.1 and myPHPadmin doesn't work at all, but it's not asked me WHERE the database is so I'm not sure where it's attepting to connect to.

I'm a total noob when it comes to setting this up (and to Linux generally) so any help would be appreciated!

Thank in adavance!
Logged

masterxilef

  • Level 2 Member
  • **
  • Posts: 51
Re: Please help! MySQL and KODI
« Reply #1 on: October 10, 2015, 06:14:49 PM »

Are you using ffp for anything more than mysql?, because if not, I would recommend uninstalling ffp, and just using the phpmyadmin addon which enables mysql and it's easier to setup for Kodi.
Logged

PC_Arcade

  • Level 1 Member
  • *
  • Posts: 3
Re: Please help! MySQL and KODI
« Reply #2 on: October 11, 2015, 02:44:41 AM »

Thanks for your help so far, I'm, connected and  should be good to go now :)
« Last Edit: October 11, 2015, 02:57:26 AM by PC_Arcade »
Logged

philphil61

  • Level 3 Member
  • ***
  • Posts: 256
Re: Please help! MySQL and KODI
« Reply #3 on: November 02, 2015, 10:21:45 AM »

After reading this thread (and several previous threads on similar topic of Kodi and mysql) I decided to have another go

pfffft

I got phpMyAdmin installdd and actually running....yippeeee
I got Kodi With advancedsettings.xml to create a database.....yippeee

And then... wtf am I doing wrong?

I have Kodi (main) on pc
I have Kodi an a tablet and android smart tv box

I was hoping that if I watched something on one of the devices they'd be removed in all the devices once powered up and Kodi is started and scanned for updates.

Basically the database (mysql) is pointless - below is my advancedsettings.xml

Quote
<advancedsettings>
     <videolibrary>
       <importwatchedstate>true</importwatchedstate>
     </videolibrary>
     <videodatabase>
       <type>mysql</type>
       <host>192.xxx.x.x</host>
       <port>3306</port>
       <user>xbmc</user>
       <pass>xbmc</pass>
       <name>xbmc_video</name>
    </videodatabase>
    <musicdatabase>
       <type>mysql</type>
       <host>192.xxx.x.x</host>
       <port>3306</port>
       <user>xbmc</user>
       <pass>xbmc</pass>
       <name>xbmc_music</name>
    </musicdatabase>
</advancedsettings>

What I want/wish is to have one location for media with Kodi seeing any updates (new files/watched)

Anybody help please
Logged

laomai

  • Level 1 Member
  • *
  • Posts: 3
Re: Please help! MySQL and KODI
« Reply #4 on: November 03, 2015, 09:59:47 PM »

Hi Philip

I just did this for my Kodi on raspberry pi recently and was successful.
I installed the myphpadmin package for v1.02 for DNS320L and followed the instructions at http://kodi.wiki/view/MySQL
Did you do an export and import of your library? Also your advanced settings look a bit different.
Logged

philphil61

  • Level 3 Member
  • ***
  • Posts: 256
Re: Please help! MySQL and KODI
« Reply #5 on: November 05, 2015, 09:42:33 PM »

Fixed
Several issues
advancedsettings.xml
the first bit needs moving to the end but read as follows
<videolibrary>
       <importwatchedstate>true</importwatchedstate>
       <importresumepoint>true</importresumepoint>
     </videolibrary>
     <pathsubstitution>
       <substitute>
          <from>special://profile/Thumbnails/</from>
          <to>smb://"name of nas"/Volume_1/Thumbs</to>
       </substitute>
     </pathsubstitution>
Create folder Thumbs on NAS and copy contents of Thumbnails folder (userdata) to new folder

Also more importantly make sure all versions of kodi are the same and dont update - this is because phpmyadmin will shown different databases for different versions of kodi
Logged