MariaDB connection timeout

Hello all,

I would like to ask if someone can help me.

I have my raspberry configured to use an external database hosted on my Synology. Everything works fine. The problem is when my Syno is off, the database not available, the raspeberry takes around 10min to start. As he’s triyng a lot of times to connect.

I would like to find a way to change the number of retries or to put a connection timeout. But I found nothing on that…

Many thanks

17:05:39.410 T:1938813936 ERROR: Unable to open database: MyMusic60 [2003](Can’t connect to MySQL server on ‘192.168.1.30’ (110))
17:07:52.530 T:1938813936 ERROR: Unable to open database: MyMusic59 [2003](Can’t connect to MySQL server on ‘192.168.1.30’ (110))
17:10:05.650 T:1938813936 ERROR: Unable to open database: MyMusic58 [2003](Can’t connect to MySQL server on ‘192.168.1.30’ (110))
17:12:18.770 T:1938813936 ERROR: Unable to open database: MyMusic57 [2003](Can’t connect to MySQL server on ‘192.168.1.30’ (110))
17:14:31.890 T:1938813936 ERROR: Unable to open database: MyMusic56 [2003](Can’t connect to MySQL server on ‘192.168.1.30’ (110))
17:16:45.010 T:1938813936 ERROR: Unable to open database: MyMusic55 [2003](Can’t connect to MySQL server on ‘192.168.1.30’ (110))
17:18:58.130 T:1938813936 ERROR: Unable to open database: MyMusic54 [2003](Can’t connect to MySQL server on ‘192.168.1.30’ (110))

I don’t think Kodi can work properly without the underlying database.
Also to change that you would need to reconfigure and rebuild Kodi not sure if you want to do that work.

Someone had the question on Kodi Forum a few years ago
https://forum.kodi.tv/showthread.php?tid=237944&pid=2099132#pid2099132