Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Information When using Kodi with MariaDB, where are the databases?
#1
I have Kodi 21 installed via flatpack on Ubuntu 24.04. The database is shared with a Kodi 21 install on my Nvidia Shield as per the official Kodi instructions. It's all working well.

I just have one question.

Are the active databases stored here:

/var/lib/mysql

or here:

/home/<user>/.var/app/tv.kodi.Kodi/data/userdata/Database

I absolutely cannot find this answer. There are Kodi databases in both locations.
Reply
#2
Have you reviewed the information here?
Reply
#3
I did follow these instructions for setting up MariaDB with Kodi and it did work perfectly.

I could not find the answer to my question however.
Reply
#4
Not sure I understand exactly what you did. The reason to use an external DB (in this specific MariaDB) is so that you can share your library DB(s) between multiple instances of Kodi. If done correctly you should have your DB(s) shared not duplicated on each device running Kodi. For example in my case I have my DBs on my Synology NAS and all my devices that run Kodi access the library DBs there. They don’t have separate DBs.
Reply
#5
(2024-05-20, 12:44)benyjr Wrote: Are the active databases stored here:
I don't use MySQL, but from a process of elimination, it would not be in data/userdata/Database as this is the local sql database.
Simple to check. Open the database in both locations and see what is inside and which is current.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#6
I agree. Just based on the file revision date, the computer where MariaDB is installed, is using the local database.

Though the shield is still displaying an up to date library without having to force a scan.

It's weird.
Reply
#7
Yeah,

I think this is what I will do.
Reply
#8
(2024-05-20, 21:55)wags1 Wrote: Not sure I understand exactly what you did. The reason to use an external DB (in this specific MariaDB) is so that you can share your library DB(s) between multiple instances of Kodi. If done correctly you should have your DB(s) shared not duplicated on each device running Kodi. For example in my case I have my DBs on my Synology NAS and all my devices that run Kodi access the library DBs there. They don’t have separate DBs.

So I clearly misunderstood what I was looking at in /var/lib/mysql.

MyVideos131 and such are not databases themselves but folders, which explains why the modified dates aren's updating.

Inside this folder, various files were modified yesterday, which is the last time new shows were added.

I appreciate your response and your help.  Thank you for taking the time to respond.
Reply
#9
(2024-05-20, 22:07)Karellen Wrote:
(2024-05-20, 12:44)benyjr Wrote: Are the active databases stored here:
I don't use MySQL, but from a process of elimination, it would not be in data/userdata/Database as this is the local sql database.
Simple to check. Open the database in both locations and see what is inside and which is current.
You were correct.  They were in /var/lib/mysql.  I just didnt understand what I was looking at when I listed the contents of this folder, but I have figured it out now.

I appreciate you taking the time to offer help.
Reply
#10
(2024-05-21, 02:50)benyjr Wrote: I appreciate you taking the time to offer help.
You are welcome Smile
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#11
(2024-05-21, 02:43)benyjr Wrote:
(2024-05-20, 21:55)wags1 Wrote: Not sure I understand exactly what you did. The reason to use an external DB (in this specific MariaDB) is so that you can share your library DB(s) between multiple instances of Kodi. If done correctly you should have your DB(s) shared not duplicated on each device running Kodi. For example in my case I have my DBs on my Synology NAS and all my devices that run Kodi access the library DBs there. They don’t have separate DBs.

So I clearly misunderstood what I was looking at in /var/lib/mysql.

MyVideos131 and such are not databases themselves but folders, which explains why the modified dates aren's updating.

Inside this folder, various files were modified yesterday, which is the last time new shows were added.

I appreciate your response and your help.  Thank you for taking the time to respond.

YW…glad you got it sorted.
Reply

Logout Mark Read Team Forum Stats Members Help
When using Kodi with MariaDB, where are the databases?0