Forum
[PROBLEM] MySQL server starts after Kodi (to late) - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: [PROBLEM] MySQL server starts after Kodi (to late) (/thread-3853.html)



MySQL server starts after Kodi (to late) - Harald654 - 28th Oct, 2016 12:23 AM

Hello,

i installed MySQL on my RPi2 with XBian (sudo apt-get install mysql-server) to have one local DB for all my Kodi clients.

With my extral clients ist works well, but the local acess (with XBian) doesn´t working. The Logfile says:
Terminal
15:59:19 29.582113 T:1953940192 NOTICE: Running database version Textures13
15:59:19 29.593109 T:1953940192 ERROR: Unable to open database: MyMusic60 [2002](Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))
15:59:19 29.594126 T:1953940192 ERROR: Unable to open database: MyMusic59 [2002](Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))
...
15:59:19 29.615755 T:1953940192 ERROR: Unable to open database: MyMusic60 [2002](Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))
15:59:19 29.616129 T:1953940192 ERROR: Unable to create new database
15:59:19 29.617022 T:1953940192 ERROR: Unable to open database: MyVideos107 [2002](Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))
15:59:19 29.618168 T:1953940192 ERROR: Unable to open database: MyVideos106 [2002](Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))
...
15:59:19 29.644346 T:1953940192 ERROR: Unable to open database: MyVideos107 [2002](Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))
15:59:19 29.644705 T:1953940192 ERROR: Unable to create new database

But after i restarting Kodi manual it works well:
Terminal
xbian@RPi2 ~ $ kodi stop
xbmc stop/waiting
xbian@RPi2 ~ $ kodi start
xbmc start/running, process 4944

So it think Xbian strats Kodi bevor the MySQl-server and so Kodi can´t access it.
Is there a possibility that Xbian start the mysql-server bevor Kodi?

Greeting,
H.


RE: MySQL server starts after Kodi (to late) - Nachteule - 28th Oct, 2016 01:27 AM

(28th Oct, 2016 12:23 AM)Harald654 Wrote:  So it think Xbian strats Kodi bevor the MySQl-server and so Kodi can´t access it.
Is there a possibility that Xbian start the mysql-server bevor Kodi?

Yes, there is Tongue


RE: MySQL server starts after Kodi (to late) - Nachteule - 28th Oct, 2016 01:30 AM

Look into file /etc/default/xbmc

Code:
# Put name of all processes which XBMC should wait for before it will be started.
# e.g. WAITFOR=""
WAITFOR=""



RE: MySQL server starts after Kodi (to late) - Harald654 - 28th Oct, 2016 02:46 AM

it's magicCool
thanks!


RE: MySQL server starts after Kodi (to late) - rikardo1979 - 28th Oct, 2016 03:07 AM

(28th Oct, 2016 02:46 AM)Harald654 Wrote:  it's magicCool
thanks!






RE: MySQL server starts after Kodi (to late) - Nachteule - 28th Oct, 2016 03:11 AM

Oh yeah - the good old time Angel