Posts: 8
Joined: Jan 2020
Reputation:
0
Hello
I have a problem with kodi 18.5.
I have a Mysql MariaDB base for kodi, it has been updated and since kodi can no longer find the base ...
The given database is well started and I find it in mariaDB, the port is also correct.
How do I get kodi to find her? Have you ever had this problem?
Posts: 8
Joined: Jan 2020
Reputation:
0
Ok i just found the line
2020-01-11 13:30:45.273 T:14272 ERROR: Unable to open database: MyVideos116 [2002](Can't connect to MySQL server on '192.168.0.21' (10061))
He cannot connect to the base but the advancesetting file has not changed however
2020-01-11 13:29:18.328 T:6596 NOTICE: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>192.168.0.21</host>
<port>3308</port>
<user>kodi</user>
<pass>*****</pass>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>192.168.0.21</host>
<port>3308</port>
<user>kodi</user>
<pass>*****</pass>
</musicdatabase>
<videolibrary>
<importwatchedstate>true</importwatchedstate>
<importresumepoint>true</importresumepoint>
</videolibrary>
</advancedsettings>
How can I give you the full log file?
Posts: 3,925
Joined: Sep 2013
Reputation:
365
Ha yes, permissions issue or mariadb is not running.
Learning Linux the hard way !!
Posts: 8
Joined: Jan 2020
Reputation:
0
I don't understand, the base is well started, I access it from PHPMyAdmin, I am good on MariaDB 10.4.7 and I find MyVideos116.
I connect well on the base with the user kodi.
I really don't understand what's blocking ...
Posts: 3,925
Joined: Sep 2013
Reputation:
365
Error 2002 means "can't connect through local socket", 10061 means "connection refused". So, if the server is up and running, make sure that there is no firewall blocking the port and that MariaDB is configured to use the port you specified in your advancedsettings.xml (3308) because the default port is 3306.
Note that if you change the port in my.cnf you must restart mariadb for it to be applied.
Learning Linux the hard way !!
Posts: 14,208
Joined: Nov 2009
Reputation:
710
Klojum
Lost connection
Posts: 14,208
2020-01-11, 21:52
(This post was last modified: 2020-01-11, 21:53 by Klojum.)
Is your MariaDB allowed to do remote connections?
Better re-check your database user credentials of the user 'kodi'.
Hosting allowed should be from '%', not just the localhost.
Also re-check as well the "GRANT ALL" privileges.
Posts: 8
Joined: Jan 2020
Reputation:
0
I checked, the port is set to 3308.
the Kodi user is correct, I recreated it in case but without change.
I must check the firewall of my NAS (where mariadb is installed).
For the remote access parameter on mariadb, where can I check this?
Posts: 14,208
Joined: Nov 2009
Reputation:
710
Klojum
Lost connection
Posts: 14,208
You seem to have 2 users named 'kodi', with different Host values. Heck, there are multiple entries of several database users, even. Why? (Or did your paste go wrong?)
I'd remove the localhost one for 'kodi' for starters.
Posts: 8
Joined: Jan 2020
Reputation:
0
I deleted all unnecessary users, I left only kodi% and root but no change.
Question: on my QNAP NAS, I therefore have QPHPMyAdmin and QMariaDB to install. Everything must be started or only QMariaDB?