Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] MySQL Connection On Boot
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: MySQL Connection On Boot
9th Feb, 2013, 08:47 PM
Post: #1
Swiss Offline
Registered
Posts: 2
Joined: Feb 2013
Reputation: 0
MySQL Connection On Boot
Morning All,

I'll start with this as a configuration query rather than a bug as is more likely to simply be I've done something wrong Undecided

Setup:
1x D-Link Share-Centre NAS
1x Debian Server Running MySQL
1x Windows 7 Ultimate PC
2x Raspberry Pi Model B 512Mb

Media is on the NAS
XBMC database is on the Debian Server Setup From Here
Raspberry Pi are both running XBian Alpha 4 + Frodo 12 Update From Here
XBMC 12.0 Git:20130127-fb595f2 is the current version on all Devices

Firstly and probably a little strange, everything work perfectly. All devices share the database, I can updated it from my PC and the PIs just work.

However the PIs always need a kick when powered on or rebooted because they cant find the MySQL DB (Log Below)
To get the PIs working all I need to to is SSH in and run /etc/init.d/xbmc restart and boom all is good in my world, however this is just a little irritating Big Grin

Initial thought was, ok it's not waiting for the network...
Updated /etc/init.d/xbmc
Modified
Terminal
# Required-Start: bootlocal
To
Terminal
# Required-Start: bootlocal $network $named $remote_fs
And
Terminal
# Required-Start: $all
Run update-rc.d accordingly - no change

Tweaked /etc/init.d/xbmc
Terminal
### END INIT INFO

sleep 10

DESC=XBMC
Now my Pi boots, twiddles its fingers for a few moments, carries on and everything is good.

Obviously this isn't the best solution because when I come to do the next update I will have completely forgotten about this and it will all implode again. Is there a blatantly obvious setting that I'm missing to handle this ??

------------------ XMBC Log From Boot Up------------------------
Log Details
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
MySQL Connection On Boot - Swiss - 9th Feb, 2013 08:47 PM
RE: MySQL Connection On Boot - CurlyMo - 9th Feb, 2013, 09:14 PM
RE: MySQL Connection On Boot - bacobart - 9th Feb, 2013, 09:46 PM
RE: MySQL Connection On Boot - Swiss - 20th Feb, 2013, 05:23 AM
RE: MySQL Connection On Boot - connorpb - 15th May, 2013, 03:54 PM
RE: MySQL Connection On Boot - mk01 - 19th May, 2013, 08:55 AM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Boot USB - No Network Connection kgoerbig 10 27,456 28th Jul, 2014 01:21 AM
Last Post: IriDium

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 3rd Jun, 2025, 03:25 AM Powered By MyBB, © 2002-2025 MyBB Group.