Posts: 228
Joined: Nov 2009
Reputation:
16
Thank you for continually updating this thread for each new Kodi version. For the longest time I've been running 16.1 with the multi-user MySQL setup (needed to keep a SPMC installation synchronized). But now thanks to new hardware, I'll be moving to 19.1. I've already run your scripts to create and modify the 119 schema databases.
For the next step, do I simply run an instance of Kodi 19.1 and let it migrate my existing library on its own? Or do I have to export the library in Kodi 16.1, and then import it using 19.1? Or do I have to run each major version migration one at a time, 16 -> 17 -> 18 -> 19?
Posts: 115
Joined: Feb 2009
Reputation:
0
If we are already running 116 an want to upgrade... I first start with 1.) Create the default table, make all the new DB tables/views... then run the new version of Kodi and let it upgrade itself? Will that allow the old data that was stored transfer over to the new one?
Posts: 15
Joined: Dec 2016
Reputation:
0
palym
Junior Member
Posts: 15
Ok, fixed it by starting with an empty DB.
The next thing I'm struggeling with is that the clean library function doesn't work as intended anymore. How do you work around that?
Thanks!
Posts: 115
Joined: Feb 2009
Reputation:
0
I started here:
Create the default tables
If you have already got a Multi-User setup then start here as Kodi will fail to update the database
So I ran the scripts, got that all created. Started Kodi, and the database upgrade failed.
MYSQL: Connected to version 10.0.38-MariaDB-0+deb8u1
2022-03-13 12:08:20.016 T:5904 INFO <general>: Running database version MyMusic82
2022-03-13 12:08:20.127 T:5904 ERROR <general>: Can't update database Kodi_U01_Video_119 from version 0 - it's too old
2022-03-13 12:08:20.142 T:5904 ERROR <general>: Unable to open database: Kodi_U01_Video_118 [1049](Unknown database 'Kodi_U01_Video_118')
2022-03-13 12:08:20.157 T:5904 ERROR <general>: Unable to open database: Kodi_U01_Video_117 [1049](Unknown database 'Kodi_U01_Video_117')
2022-03-13 12:08:20.217 T:5904 INFO <general>: Old database found - updating from version 116 to 119
2022-03-13 12:08:20.317 T:5904 ERROR <general>: SQL: Can't create database for copy: 'Kodi_U01_Video_116' (1007)
2022-03-13 12:08:20.317 T:5904 ERROR <general>: Unable to copy old database Kodi_U01_Video_116 to new version Kodi_U01_Video_119
2022-03-13 12:08:20.319 T:5904 INFO <general>: Running database version TV38
2022-03-13 12:08:20.320 T:5904 INFO <general>: Running database version Epg13
The 1007 error is because the database already exists. So while this guide is good from a new start, I don't see how it possibly lets anyone upgrade from an old database to a new one. Any ideas?