2020-07-18, 14:27
Hi,
I have setup Kodi to work at home using an SQL database which i host on my NAS (Qnap). The NAS is connected to my home network which runs under domain 192.168.1.xx. Now i have two separate WiFi networks running. One uses the same network where the NAS is connected to but has a weaker signal and one is connected to a different network in my house using domain 192.168.0.xx.
In my advancedsettings.xml file the access to the MySQL database is setup.
<videodatabase>
<type>mysql</type>
<host>192.168.1.xx</host>
<port>3306</port>
<user>kodi</user>
<pass>mypass</pass>
</videodatabase>
When i connect with my secondary Kodi device (Android platform) to the weaker WiFi network (192.168.1.xx) then Kodi launches without an issue and can access everything.
When i connect to the stronger WifI network (192.168.0.xx) then Kodi won't launch for minutes and also cannot access the videos.
In the log it gives also following error message:
"2020-07-18 14:17:56.741 T:9469 ERROR: Unable to open database: MyVideos116 [2002](Can't connect to MySQL server on '192.168.1.xx' (115))"
In the MySQL database i have following setup for user Kodi:
User account: kodi@%
Global Privilages ticked for everything (Data, Structure, Admin).
Not big on networking setups but if i had to guess the issue is that trying to access the SQL database from outside local network where its hosted on is somehow not working. I don't see any specific setup option in the MySQL database admin page which i could set to allow access from outside local network if thats the issue.
Any help would be appriciated.
Thanks!
I have setup Kodi to work at home using an SQL database which i host on my NAS (Qnap). The NAS is connected to my home network which runs under domain 192.168.1.xx. Now i have two separate WiFi networks running. One uses the same network where the NAS is connected to but has a weaker signal and one is connected to a different network in my house using domain 192.168.0.xx.
In my advancedsettings.xml file the access to the MySQL database is setup.
<videodatabase>
<type>mysql</type>
<host>192.168.1.xx</host>
<port>3306</port>
<user>kodi</user>
<pass>mypass</pass>
</videodatabase>
When i connect with my secondary Kodi device (Android platform) to the weaker WiFi network (192.168.1.xx) then Kodi launches without an issue and can access everything.
When i connect to the stronger WifI network (192.168.0.xx) then Kodi won't launch for minutes and also cannot access the videos.
In the log it gives also following error message:
"2020-07-18 14:17:56.741 T:9469 ERROR: Unable to open database: MyVideos116 [2002](Can't connect to MySQL server on '192.168.1.xx' (115))"
In the MySQL database i have following setup for user Kodi:
User account: kodi@%
Global Privilages ticked for everything (Data, Structure, Admin).
Not big on networking setups but if i had to guess the issue is that trying to access the SQL database from outside local network where its hosted on is somehow not working. I don't see any specific setup option in the MySQL database admin page which i could set to allow access from outside local network if thats the issue.
Any help would be appriciated.
Thanks!