2023-07-09, 03:20
Hell all. I just moved my mariadb to another machine. Got everything done correctly but when I log back in to kodi with the new ip in the advanced settings, my library is empty. All my sources are obviously there since the files are still in the original location but it want's me to set the content for each of the folders I have. I don't really want to do that as it will rescan all of the media in those folders and I will lose all of my watched statuses I assume which negates the reason for exportin/importing my sql data over. Did I miss a step? Any thoughts?
To recap, it seems to be connecting to the db just fine and everything was migrated over. It's just wanting me to set the content again (each Files folder says none now) which I think will rescan everything as new. If I change the advancedsettings file to point back to the original sql server then everything in the Shows and Movies section populates. The process I used was:
First: I had an empty host and restored from backup and both the DBs were then showing (MyMusic82 and MyMusic121) when I tried this was, I got errors in the kodi log saying it couldn't find the 2 DBs and it ultimately created new ones with the same name but empty so I dropped them
Second: I started with empty host and opened kodi so it would create the 2 DBs itself. I then closed kodi and just ran the backup script and had it insert all the rows to the existing DBs without dropping them first.
python:2023-07-08 19:44:32.308 T:7 info <general>: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>192.168.1.**</host> (new host IP is here)
<port>3306</port>
<user>*****</user>
<pass>*****</pass>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>192.168.1.**</host> (new hoat IP is here)
<port>3306</port>
<user>*****</user>
<pass>*****</pass>
</musicdatabase>
<videolibrary>
<importwatchedstate>true</importwatchedstate>
<importresumepoint>true</importresumepoint>
</videolibrary>
<pathsubstitution>
<substitute>
<from>special://profile/favourites.xml</from>
<to>smb://USERNAME[email protected]/F/Media/favourites.xml</to>
</substitute>
</pathsubstitution>
</advancedsettings>
python:2023-07-08 19:44:32.663 T:17 info <general>: Running database version Addons33
2023-07-08 19:44:32.663 T:17 info <general>: Running database version ViewModes6
2023-07-08 19:44:32.663 T:17 info <general>: Running database version Textures13
2023-07-08 19:44:32.665 T:17 info <general>: MYSQL: Connected to version 10.11.4-MariaDB-log
2023-07-08 19:44:32.669 T:17 info <general>: Running database version MyMusic82
2023-07-08 19:44:32.674 T:17 info <general>: Running database version MyVideos121
2023-07-08 19:44:32.674 T:17 info <general>: Running database version TV40
2023-07-08 19:44:32.674 T:17 info <general>: Running database version Epg16
To recap, it seems to be connecting to the db just fine and everything was migrated over. It's just wanting me to set the content again (each Files folder says none now) which I think will rescan everything as new. If I change the advancedsettings file to point back to the original sql server then everything in the Shows and Movies section populates. The process I used was:
First: I had an empty host and restored from backup and both the DBs were then showing (MyMusic82 and MyMusic121) when I tried this was, I got errors in the kodi log saying it couldn't find the 2 DBs and it ultimately created new ones with the same name but empty so I dropped them
Second: I started with empty host and opened kodi so it would create the 2 DBs itself. I then closed kodi and just ran the backup script and had it insert all the rows to the existing DBs without dropping them first.