Forum

Full Version: MySQL server starts after Kodi (to late)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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
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=""
it's magicCool
thanks!
(28th Oct, 2016 02:46 AM)Harald654 Wrote: [ -> ]it's magicCool
thanks!



Oh yeah - the good old time Angel
Reference URL's