Hi,
i have several PCs and Tablets / Phones in my home and have a NAS (Zyxel 325) that hosts all my video files. The NAS also runs a mysql server with a shared database so i have everything synced on all devices. That works really well and all versions run on the newest Kodi release (16.1).
i’ve recently reactivated my Raspberry Pi 2, plugged a wlan stick in it and did a clean install of OSMC. I copied my advancedsettings.xml from one of my other devices, but the Raspberry Pi 2 can’t seem to access the mysql database.
As a test, i removed the advancedsettings.xml and used a local database which worked without a problem. The Pi can connect to the NAS and can scrape the files anew for a local database. Playback isn’t a problem either.
But i would really like to be able to sync with the rest of my devices, any tipps?
i could not run the mysql command you specified (“command not found”) but i have no experience with databases so i’m not sure what i was supposed to do.
Not sure what you mean with that.
You should run it on OSMC. Install the mysql-client package on OSMC and then run the command to check if you can connect.
Hello,
I have installed mysql on the pi now and tried to run the command you specified:[quote=“fzinken, post:2, topic:17698”]
mysql -h 192.168.178.32 -uxbmc -pxbmc
[/quote]
The server seems to accept the connection coming from the Pi2 which leaves me even more baffled than before.
I posted the results here: http://paste.osmc.io/rehesumogo.vhdl
I shows several databases:
information_schema
MyVideo99 <- should be the right one
mysql
osmc <- one i generated when i created a new user some time ago on a different device
phpmyadmin
Ok, actually you had misstyped in one of your posts here. Actually your database is correctly named MyVideos99. So either just not add any name tag to your advancedsettings or use <name>MyVideos</name>
While anyhow we are back to step 0 as that was already correct in your first attempt.
I just had an idea - the bootup takes quite a while, probably because of the wlan stick. Could it be that the Pi tries to connect before the network connection is up?