Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Multiple Devices accessing the Mysql Library
#1
Well ive just installed Debian 9 on my main media center and droped my mysql databases as they was just a test environment to make sure it was working properly.

So th mysql database is populated and everything is set up i juat have one problem.

The xbox one version of kodi is 18.1 and the one from debian is 17.1

do i just adjust the name tag in my advanced settings xml on the xbo to databasename107 as that's the database name in the mysql database
Reply
#2
(2019-04-07, 18:52)yoda2018 Wrote: Well ive just installed Debian 9 on my main media center and droped my mysql databases as they was just a test environment to make sure it was working properly.

So th mysql database is populated and everything is set up i juat have one problem.

The xbox one version of kodi is 18.1 and the one from debian is 17.1

do i just adjust the name tag in my advanced settings xml on the xbo to databasename107 as that's the database name in the mysql database
You can't share mysql databases between different kodi versions.  You'll end up with 2 independent databases on mysql (no shared content / watched status) after setting content and scanning on v17.
Reply
#3
(2019-04-07, 19:32)trogggy Wrote:
(2019-04-07, 18:52)yoda2018 Wrote: Well ive just installed Debian 9 on my main media center and droped my mysql databases as they was just a test environment to make sure it was working properly.

So th mysql database is populated and everything is set up i juat have one problem.

The xbox one version of kodi is 18.1 and the one from debian is 17.1

do i just adjust the name tag in my advanced settings xml on the xbo to databasename107 as that's the database name in the mysql database
You can't share mysql databases between different kodi versions.  You'll end up with 2 independent databases on mysql (no shared content / watched status) after setting content and scanning on v17.
ok so how do i go about fixing this?

im assuming if i upgrade the debian distro some how
ill have to re-create the mysql db

could i some how export the database contents and then import them in the new db?
Reply
#4
(2019-04-07, 19:51)yoda2018 Wrote: could i some how export the database contents and then import them in the new db?

https://kodi.wiki/view/Settings/Media/Li...rt_library

Be aware that you have to manually set a tag at the advancedsettings.xml to include the watched state during import:

https://kodi.wiki/view/Advancedsettings....deolibrary

specifically for the watched-state:

xml:

<advancedsettings>
  <videolibrary>
    <importwatchedstate>true</importwatchedstate>
  </videolibrary>
</advancedsettings>
Reply
#5
(2019-04-07, 20:10)DaVu Wrote:
(2019-04-07, 19:51)yoda2018 Wrote: could i some how export the database contents and then import them in the new db?

https://kodi.wiki/view/Settings/Media/Li...rt_library

Be aware that you have to manually set a tag at the advancedsettings.xml to include the watched state during import:

https://kodi.wiki/view/Advancedsettings....deolibrary

specifically for the watched-state:

xml:

<advancedsettings>
  <videolibrary>
    <importwatchedstate>true</importwatchedstate>
  </videolibrary>
</advancedsettings>
thanks bro ill keep that to hand for future reference.
Reply
#6
Well i lost power during a system update so rather than stick with debian 9 i opted to give debian 10 a push out of the gate.

so ive got debian 10 installed with Kodi 18.

i dropped my previous mysql databases and populated the new database using kodi 18 [emoji4]

just a wrap up question, if and when the next major stable main-line release is out. will i need to use the backup and import method as described above or will it "just work"?
Reply
#7
(2019-04-08, 00:49)yoda2018 Wrote: Well i lost power during a system update so rather than stick with debian 9 i opted to give debian 10 a push out of the gate.

so ive got debian 10 installed with Kodi 18.

i dropped my previous mysql databases and populated the new database using kodi 18 [emoji4]

just a wrap up question, if and when the next major stable main-line release is out. will i need to use the backup and import method as described above or will it "just work"?
It should just work.
Install the update, start it and mysql should make a new database.  Any older versions will carry on using the original.
Reply

Logout Mark Read Team Forum Stats Members Help
Multiple Devices accessing the Mysql Library0