I did install MySQL on my RPi3 running latest OSMC.
did the following:
and changed the bind-address to 0.0.0.0 in my.cnf file, restarted mysql… and everything went well.
I scanned my database and it took a while to bring all the Movie information from Universal Movie Database and it was all done.
Now on my computer I wanted to test if the mysql is set up OK or not, (before I set the other two RPi’s in the house to bring the movie info through mysql), I deleted the MyVideos99.db (KODI on the computer) and add this to advancedsettings.xml
But what happens now is that the kodi on the computer is scanning the movies list that is pointed to my RPi3 running the mysql server, and is bringing the movie information from Universal Movie Database.
Shouldn’t it just read from the RPi3’s MyVideosXX.db ?
Is it not this the whole point with the mysql to not scan everytime for every in my case RPi’s?
No need to do that it will just be ignored when you have MYSQL configured.
Well not from your MyVideosXX.db but from your MYSQL database.
So to troubleshoot I suggest you first start on the Pi that has your MYSQL server running.
Enable debug logging
Browse a bit thru your library (e.g. play a movie shortly)
Upload logs with grab-logs -A and share the URL
You also manually can check if the databases are correctly created. Log into OSMC with ssh and run mysql -h localhost -u osmc -p
when connected that run show databases;
Go in Video and re-set your Media Sources using Samba/NFS shares instead of Local paths
This is very important, right now any source you want to add in your Media Library must be done using Samba shares, files paths must use UNC patchs to be able to be shared.
It is getting a bit confusing, but I like challenges.
As mentioned let’s start on the OSMC box that is your server/client. So enable debug logging on your OSMC machine that you have configured to update the database first time.
Sure, all machines that use Kodi and that share a database need that configuration. That your OSMC machine also acts as a MYSQL server doesn’t mean that Kodi directly uses it.
Actually I guess that is your simple issue, you sofar only have configured it on your PC. Means that when after you configured it on your PC it started to scrap into you Database. Now if you configure it on OSMC it will directly use the database.
Just a reminder depending on your file sharing you might also have to look into path substitution.
I did enable debugging, or at least part of it was already enabled.
Then on my server side (RPi3 running osmc) removed my Video Sources and had it remove/clean the library, which took some time. (+45 minutes)
Checked the privileges for user osmc in mysql:
mysql> show grants for osmc;
±-------------------------------------------------------------------------------------------------------------------------------+
| Grants for osmc@% |
±-------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON . TO ‘osmc’@‘%’ IDENTIFIED BY PASSWORD ‘*8E44CD9F572EA1139FD00A97A85731AA7B0338D4’ WITH GRANT OPTION |
±-------------------------------------------------------------------------------------------------------------------------------+
Restarted the mysql service and are going to reboot and start adding the Video sources again. Going to report back.
How can I not share my Video list/paths through grab-logs?
@fzinken Thank you so much for your time. I truly appreciate it.
I added my Movies now, add adding the folder not locally but through samba. Now it is scanning. How do I know that it’s saving it in sql database and not the old way?
You are right. I will change the <host> for my server machine.
While it’s adding the movies, one by one, I did open the Movies tab and started a movie that is scraped. Now I am going to share the log
My RPi is the machine that is connected to the 2 hard drives which have all my videos.
PC machine was suppose to be my client test machine before I changed other RPi machines in the house.
So if the scanning goes well. Then on the PC (client machine) I just need to add the sql tags in advancedsettings and it should not scan anymore, is that correct?
When I restarted, kodi took a long time to start, and when I went in the Videos tab, it acted like it was the first time I am using it. (confluence) first time use popped up. Is there something wrong in the advancedsettings that screwed things up?!
I think it is taking time to start and looking like a first attempt because you are removing the old .db files. There is no need to do this, the MySQL entries in the advancedsettings.xml will always take priority over any local files. Maybe this is triggering your re-scanning every time?
Once you have one up and running on MySQL, on each other one add the advancedsettings.xml (or add the settings through the GUI in MyOSMC), tick the “wait for network” setting and then reboot it and it should automatically pick up the MySQL library with no re-scans.
Yes assuming that they use the same sources or have the respective path substitution
Well that it takes a long time is normal as it would need to create the initial database structure.
While it should not have reset the skin or other settings as they are stored in guisettings.xml