When using Kodi with MariaDB, where are the databases?



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.