2020-03-09, 19:52
I'm running kodi on a rpi4 but I can't get the mysql part working. I'm running mysql on my ubuntu NAS where I followed the guide from https://kodi.wiki/view/MySQL/Setting_up_MySQL with a bind-address 0.0.0.0 to make sure it accepts everything. I then did:
My advanced settings on the rpi kodi:
I have no firewall and I can login to mysql from the ubuntu machine using user kodi pw kodi.
Looking through the log of the rpi kodi I see a lot of this:
The complete log is posted here: http://ix.io/2dP2
The databases in mysql:
Trying from another ubuntu machine shows:
I don't understand why it thinks I want to connect to 'kodi' and why it asks for a password when I'm using the -p option?
The mysql log on the ubuntu machine shows:
It looks like some sort of permission error or network error?
Code:
CREATE USER 'kodi' IDENTIFIED BY 'kodi';
GRANT ALL ON *.* TO 'kodi';
flush privileges;
My advanced settings on the rpi kodi:
Code:
<advancedsettings>
<loglevel hide="true">1</loglevel>
<videodatabase>
<type>mysql</type>
<host>192.168.0.16</host>
<port>3306</port>
<user>kodi</user>
<pass>kodi</pass>
</videodatabase>
<videolibrary>
<importwatchedstate>true</importwatchedstate>
<importresumepoint>true</importresumepoint>
</videolibrary>
</advancedsettings>
I have no firewall and I can login to mysql from the ubuntu machine using user kodi pw kodi.
Looking through the log of the rpi kodi I see a lot of this:
Code:
2020-03-09 18:28:18.768 T:2876646256 ERROR: Unable to open database: MyVideos116 [1045](Plugin caching_sha2_password could not be loaded: lib/mariadb/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory)
The complete log is posted here: http://ix.io/2dP2
The databases in mysql:
Code:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)
Trying from another ubuntu machine shows:
Code:
mysql -u kodi -p kodi -h 192.168.0.16 -P 3306 -D sys
Enter password:
ERROR 1049 (42000): Unknown database 'kodi'
I don't understand why it thinks I want to connect to 'kodi' and why it asks for a password when I'm using the -p option?
The mysql log on the ubuntu machine shows:
Code:
2020-03-09T17:28:18.688185Z 9 [Warning] [MY-010056] [Server] Host name 'kodi.local' could not be resolved: Name or service not known
2020-03-09T18:02:47.612005Z 98 [Warning] [MY-010055] [Server] IP address '192.168.0.20' could not be resolved: Name or service not known
It looks like some sort of permission error or network error?