Posts: 2,040
Joined: Jan 2015
Reputation:
149
ksooo
Team-Kodi Developer
Posts: 2,040
> 2024-10-23 09:54:05.522 T:867 error <general>: Unable to open database: MyMusic83 [2002](Can't connect to server on '192.158.1.52' (115))
Kodi cannot connect to your db at the given endpoint.
Please ensure that you configured servername/IP + port + user + pass correct in advancedsettings.xml
Posts: 6
Joined: Oct 2024
Reputation:
0
I've already checked that. Server is 192.168.1.52 , Port is 3306 as per default and I've created the kodi user on Mariadb. Could this be an issue on MariaDB side?
Posts: 6
Joined: Oct 2024
Reputation:
0
update: I've tried connecting with root user from MariaDB. Same result. I'm really lost here.
Posts: 2,040
Joined: Jan 2015
Reputation:
149
ksooo
Team-Kodi Developer
Posts: 2,040
You do not face a Kodi problem. Something is misconfigured in your setup. advancedsettings.xml entry for server has to match the IP address of the machine hosting your db and ofc. the machine must be accessible via your network. db configuration (port, user, pass) must match what you enter in advancedsettings.xml.
Posts: 1,440
Joined: Apr 2010
Reputation:
120
CrystalP
Team-Kodi Developer
Posts: 1,440
Those permissions look ok.
I read the last log too quickly and assumed the server connection problem was solved but that's probably still the problem (the error 115).
Could be on the Kodi PC (advancedsettings.xml file) or on the server side. To confirm which, you can install a mysql frontend on the Kodi computer and attempt a connection with the kodi user.
There could be a firewall, mariadb doesn't always come configured to listen to network connections, ...
Posts: 6
Joined: Oct 2024
Reputation:
0
I found the solution! It might sound super stupid be it did take me a while to find it so I'll share:
First off, MariaDb has to accept connection, the only config that worked for me was to add bind-address = 0.0.0.0.0 in the .cnf file. This is clearly not the safest way, but it worked
Secondly, and more importantly, to make create the user on a Debian based Mariadb server, kodi wiki recommends to add:
CREATE USER 'kodi' IDENTIFIED VIA mysql_native_password USING PASSWORD('kodi123#');
And, of course, I was stupid enough not to also change the password in the advancedsettings.xml as I just copied the version proposed by the wiki.
I feel stupid for that, but at the same time, it might help a lost soul like mine.